Commit Graph

60 Commits

Author SHA1 Message Date
Deukhoofd 5970dc5d90
Switch unit test library from Catch2 to DocTest.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-09-25 12:43:08 +02:00
Deukhoofd a0ae9e8523
Removed unused variable
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-30 13:21:40 +02:00
Deukhoofd 3233daf9ab
More defensive programming.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-30 13:14:33 +02:00
Deukhoofd d2e72deeca
Fix nickname test
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-28 12:23:18 +02:00
Deukhoofd 98dacbccde
Use Arbutils exception Macros, instead of own ones.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-17 12:18:01 +02:00
Deukhoofd 64b08d4ff0
Cleaned up Events, added events on species and variant changes.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-14 13:52:22 +02:00
Deukhoofd 1807e720dd
Support for packing party.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-10 17:37:30 +02:00
Deukhoofd 3d21b7c42d
Remove event hook threads, as it caused issues when being called from dotnet.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 20:11:03 +02:00
Deukhoofd 5b1c73a2af
Fixed valgrind issues.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 12:27:46 +02:00
Deukhoofd 208bb097dd
Make event listeners threaded.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 12:20:59 +02:00
Deukhoofd 93b3847b31
Revert "Disable EventHook system for now for testing."
This reverts commit 84e03021
2020-08-03 17:28:43 +02:00
Deukhoofd 84e030213d
Disable EventHook system for now for testing. 2020-08-02 10:14:56 +02:00
Deukhoofd 670abd7229
Fixed Segfault when overriding talent. 2020-08-01 10:27:46 +02:00
Deukhoofd fa5184ad77
Tweaks for EventHook. 2020-07-31 19:52:12 +02:00
Deukhoofd c3de280ebb
Fixes for EventHook corruptions, unit tests for EventHooks. 2020-07-31 18:39:47 +02:00
Deukhoofd 36f1e5beeb
Further work on better exceptions. 2020-07-26 17:41:11 +02:00
Deukhoofd 61bf868583
Update to newer Arbutils. 2020-07-04 15:12:12 +02:00
Deukhoofd 48639eeee5
Update to new Arbutils 2020-06-26 17:08:23 +02:00
Deukhoofd fc74a7d4bd
Fixed broken test. 2020-06-05 18:10:58 +02:00
Deukhoofd fddf2cabab
Rework ScriptIterator to jump to first value on reset. 2020-06-05 18:06:45 +02:00
Deukhoofd 1ef50fd3a6
Use unique pointers in scriptset. 2020-06-02 15:03:31 +02:00
Deukhoofd e4b9550efa
Make all individual scripts smart pointers. 2020-06-02 13:43:44 +02:00
Deukhoofd f898698f49
Use smart pointers for BattleSide. 2020-06-02 13:06:24 +02:00
Deukhoofd 29cb4eac37
Make ChoiceQueue use smart pointers. 2020-05-31 18:00:39 +02:00
Deukhoofd 25f65eb47b
Update to newer Arbutils version. 2020-05-26 18:31:06 +02:00
Deukhoofd b17c0648ff
Make DataLibrary use unique_ptr. 2020-05-24 19:01:47 +02:00
Deukhoofd ed0171c911
Style fixes 2020-04-28 16:36:03 +02:00
Deukhoofd 734d056449
Performance improvement for collecting scripts, by reserving size in ScriptSource. 2020-04-25 11:33:25 +02:00
Deukhoofd dd668f2b1c
Cleanup of ScriptAggregator class. 2020-04-23 23:23:58 +02:00
Deukhoofd d2320fde3c
Unit tests for EffectParameters. 2020-04-10 20:09:15 +02:00
Deukhoofd 49e0f00237
Initialize CreateCreature with ConstString instead of std::string. 2020-04-10 16:44:25 +02:00
Deukhoofd 88eda6ef94
Update to new version of Arbutils. 2020-04-09 18:19:21 +02:00
Deukhoofd 1e0d00d3b7
Revert "Use smart pointers for basic libraries."
This reverts commit 214ff819
2020-04-04 13:37:06 +02:00
Deukhoofd 214ff81992
Use smart pointers for basic libraries. 2020-03-26 22:46:14 +01:00
Deukhoofd b5894ea8f2
Added C Interface for Script. 2020-03-25 19:47:37 +01:00
Deukhoofd 27288563cd
Replace most collections with Arbutils collections for more safety. 2020-03-22 19:21:40 +01:00
Deukhoofd 899e432271
Added lots of security using asserts. 2020-03-22 13:42:26 +01:00
Deukhoofd 5a05a2f4d3
Add ConstString to several other places where context isn't changed much during runtime. 2020-02-28 19:23:24 +01:00
Deukhoofd 412e0a4d63
Implements ConstString in several core places in the library, improving performance. 2020-02-27 18:23:23 +01:00
Deukhoofd 5e6572aca5
Move several classes from Core to Arbutils. 2020-02-26 13:51:16 +01:00
Deukhoofd a606fbbc7b
Make basic Script class abstract, require implementation of GetName function. 2020-02-23 12:58:13 +01:00
Deukhoofd 442d6cd5b1
Added Helper function to ChoiceQueue to move a specific creature's choice up next. 2020-02-22 14:16:38 +01:00
Deukhoofd d6ea16b467
Implement basic library class that other libraries inherit from for performance. 2020-02-15 18:51:21 +01:00
Deukhoofd e45a36d78e
Move Script ownership to script holder, added OnRemove script hook. 2020-02-05 14:52:50 +01:00
Deukhoofd 0483e635ea Reworks test suite, tweaks to Cmake config for Windows. 2019-12-07 13:45:44 +01:00
Deukhoofd 57f16bc420
Better handling of filling empty slots. 2019-12-07 12:13:12 +01:00
Deukhoofd 5d6ac316eb
Renamed Target class to CreatureIndex 2019-12-05 09:53:48 +01:00
Deukhoofd a8730d983f
Used ClangFormat style guide I'm happy with. 2019-11-28 12:55:22 +01:00
Deukhoofd 3e81784f6f
Fix memory leaks in unit tests. 2019-11-17 10:42:09 +01:00
Deukhoofd 3a2c9f4c61 Adds tests for ScriptSets 2019-11-17 10:27:18 +01:00