Commit Graph

23 Commits

Author SHA1 Message Date
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
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. 2019-11-10 19:55:01 +01:00
Deukhoofd d8332f9e40 Another rework for scripthooks, for better performance.
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
Deukhoofd 3488784409 Furter rework on script hooks, simplifying required logic. 2019-11-10 14:32:05 +01:00
Deukhoofd fc675efdf5
More work on basic turn layout. 2019-11-02 13:57:43 +01:00
Deukhoofd d7fee13002
Fix memory leak in unit tests 2019-10-31 13:33:32 +01:00
Deukhoofd 7da87956cf
Priority tests 2019-10-31 13:03:41 +01:00
Deukhoofd 42c1623985
Fully handle turn ordering 2019-10-31 12:31:31 +01:00
Deukhoofd 972af35ecf
Initial support for ordering choices and getting them ready for execution. 2019-10-31 12:02:23 +01:00
Deukhoofd 99315174a8
Initial support for setting battle choices. 2019-10-29 11:19:25 +01:00