Commit Graph

33 Commits

Author SHA1 Message Date
Deukhoofd 949fc67831
Add support for saving and getting the owner of a script in script.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 21:31:01 +02:00
Deukhoofd 5fd8abb3a8
Reworks ScriptSources so we can get individual scripts on a source. Fixed OnEndTurn making no sense.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 19:31:08 +02:00
Deukhoofd be10b3515c
Reworks script aggregator. Cleans up API and code, and now handles scripts being removed from a set while we're iterating.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-04-18 12:50:48 +02:00
Deukhoofd 13df99a6cc
Try and catch more edge cases where setIndex would be invalid.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-04-17 16:31:03 +02:00
Deukhoofd 8f9f2b2b8d
Fixes issue with iterating over two script sets.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-04-17 16:23:29 +02:00
Deukhoofd 9f091308b0
Reset on initialization in ScriptAggregator, fixes segfault when calling Reset on an empty Aggregator.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-04-17 15:08:26 +02:00
Deukhoofd 84a14cff2b
Support for cloning battles for AI purposes.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-04-11 15:20:50 +02:00
Deukhoofd 5178d5dcc0
Renamed Script --> BattleScript, some cleanup on it.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-07 10:26:41 +01:00
Deukhoofd e642f374b9
Update to latest Arbutils.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-13 12:15:40 +01:00
Deukhoofd 5c39694f19
Overhaul memory model to new Arbutils memory.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-12 12:22:48 +01:00
Deukhoofd 5970dc5d90
Switch unit test library from Catch2 to DocTest.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-09-25 12:43:08 +02:00
Deukhoofd 98dacbccde
Use Arbutils exception Macros, instead of own ones.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-17 12:18:01 +02:00
Deukhoofd 36f1e5beeb
Further work on better exceptions.
continuous-integration/drone/push Build is passing Details
2020-07-26 17:41:11 +02:00
Deukhoofd 61bf868583
Update to newer Arbutils.
continuous-integration/drone/push Build is passing Details
2020-07-04 15:12:12 +02:00
Deukhoofd 48639eeee5
Update to new Arbutils
continuous-integration/drone/push Build is passing Details
2020-06-26 17:08:23 +02:00
Deukhoofd fc74a7d4bd
Fixed broken test.
continuous-integration/drone/push Build is passing Details
2020-06-05 18:10:58 +02:00
Deukhoofd fddf2cabab
Rework ScriptIterator to jump to first value on reset.
continuous-integration/drone/push Build is failing Details
2020-06-05 18:06:45 +02:00
Deukhoofd 1ef50fd3a6
Use unique pointers in scriptset.
continuous-integration/drone/push Build is passing Details
2020-06-02 15:03:31 +02:00
Deukhoofd e4b9550efa
Make all individual scripts smart pointers.
continuous-integration/drone/push Build is failing Details
2020-06-02 13:43:44 +02:00
Deukhoofd 25f65eb47b
Update to newer Arbutils version.
continuous-integration/drone/push Build is passing Details
2020-05-26 18:31:06 +02:00
Deukhoofd 734d056449
Performance improvement for collecting scripts, by reserving size in ScriptSource.
continuous-integration/drone/push Build is passing Details
2020-04-25 11:33:25 +02:00
Deukhoofd dd668f2b1c
Cleanup of ScriptAggregator class.
continuous-integration/drone/push Build is passing Details
2020-04-23 23:23:58 +02:00
Deukhoofd 88eda6ef94
Update to new version of Arbutils.
continuous-integration/drone/push Build is failing Details
2020-04-09 18:19:21 +02:00
Deukhoofd b5894ea8f2
Added C Interface for Script.
continuous-integration/drone/push Build is passing Details
2020-03-25 19:47:37 +01:00
Deukhoofd 27288563cd
Replace most collections with Arbutils collections for more safety.
continuous-integration/drone/push Build is passing Details
2020-03-22 19:21:40 +01:00
Deukhoofd 5a05a2f4d3
Add ConstString to several other places where context isn't changed much during runtime.
continuous-integration/drone/push Build is passing Details
2020-02-28 19:23:24 +01:00
Deukhoofd a606fbbc7b
Make basic Script class abstract, require implementation of GetName function.
continuous-integration/drone/push Build is passing Details
2020-02-23 12:58:13 +01:00
Deukhoofd e45a36d78e
Move Script ownership to script holder, added OnRemove script hook.
continuous-integration/drone/push Build is passing Details
2020-02-05 14:52:50 +01:00
Deukhoofd a8730d983f
Used ClangFormat style guide I'm happy with.
continuous-integration/drone/push Build is passing Details
2019-11-28 12:55:22 +01:00
Deukhoofd 3e81784f6f
Fix memory leaks in unit tests.
continuous-integration/drone/push Build is passing Details
2019-11-17 10:42:09 +01:00
Deukhoofd 3a2c9f4c61 Adds tests for ScriptSets
continuous-integration/drone/push Build is failing Details
2019-11-17 10:27:18 +01:00
Deukhoofd fd16152121 Make scriptset return scripts in order of insertion, unit tests for ScriptSource 2019-11-12 18:38:09 +01:00
Deukhoofd 859cd02478 Tests for script aggregator.
continuous-integration/drone/push Build is failing Details
2019-11-10 19:55:01 +01:00