27 Commits

Author SHA1 Message Date
3802587313
Added HasVolatileScript function to Creature and Battle.
Some checks failed
continuous-integration/drone/push Build is failing
2020-02-23 16:17:57 +01:00
5f891cd4ed
Added Remove Volatile functions for battle and creatures.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-23 11:11:47 +01:00
645ba95bbc
Performance improvements for battle and creature AddVolatileScript methods when passing a string as parameter.
All checks were successful
continuous-integration/drone/push Build is passing
Instead of loading a script, then passing it to the ScriptSet class and checking if it already exists before invoking stack, we now check whether the ScriptSet has that script. If one already exists we just invoke stack on it, if not we continue to the process of creating a new script instance.
2020-02-22 16:01:01 +01:00
d4fd7282f5
Move ScriptCategory enum outside of class scope of ScriptResolver.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-20 13:05:15 +01:00
445f7eb3d5
Add virtual destructor to Battle. 2020-02-17 15:52:02 +01:00
65f054bfab
Added functions for battle to manipulate volatile scripts.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 17:44:41 +01:00
428483e73d
Make GetRandom in Battle class a pointer.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 17:24:33 +01:00
54e366fc1b
Implements BattleRandom class with support for Effect Chance, and script hooks to modify this.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 15:08:22 +01:00
e45a36d78e
Move Script ownership to script holder, added OnRemove script hook.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-05 14:52:50 +01:00
db002c784f
Resolve memory issue with Event Hooks.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-15 12:27:56 +01:00
410487c86b
Initial support for Event Hooks.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-15 12:24:08 +01:00
6ba708ad12
Implements running from battle.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-15 11:52:10 +01:00
3baed93597
Implements marking opponents as seen.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-14 12:40:50 +01:00
262279bd2c Support for ending battles when only one side has creatures that are available for battle. 2019-12-07 21:56:29 +01:00
0483e635ea Reworks test suite, tweaks to Cmake config for Windows.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-07 13:45:44 +01:00
57f16bc420
Better handling of filling empty slots.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 12:13:12 +01:00
6f32d1245b
Implemented and fixed all code required to run at least a single turn.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-05 12:56:41 +01:00
5d6ac316eb
Renamed Target class to CreatureIndex 2019-12-05 09:53:48 +01:00
a8730d983f
Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-28 12:55:22 +01:00
d8332f9e40 Another rework for scripthooks, for better performance.
All checks were successful
continuous-integration/drone/push Build is passing
This new version caches pointers to the pointers to scripts, so that we can build the data once and then simply iterate over it whenever we want to run a hook.
2019-11-10 17:08:42 +01:00
3488784409 Furter rework on script hooks, simplifying required logic. 2019-11-10 14:32:05 +01:00
5fc2bf564a Support turn queue return prematurely when a creature is recalled, and the ability to resume it later. 2019-11-06 18:04:00 +01:00
fc675efdf5
More work on basic turn layout.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-02 13:57:43 +01:00
42c1623985
Fully handle turn ordering
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-31 12:31:31 +01:00
972af35ecf
Initial support for ordering choices and getting them ready for execution.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-31 12:02:23 +01:00
99315174a8
Initial support for setting battle choices.
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-29 11:19:25 +01:00
d580d81163
Initial work on battling
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-17 14:33:25 +02:00