Deukhoofd
fa5184ad77
Tweaks for EventHook.
continuous-integration/drone/push Build is passing
Details
2020-07-31 19:52:12 +02:00
Deukhoofd
c3de280ebb
Fixes for EventHook corruptions, unit tests for EventHooks.
continuous-integration/drone/push Build is passing
Details
2020-07-31 18:39:47 +02:00
Deukhoofd
0eaae43444
Reworked event hook to a system with pre-allocated memory, owned by the battle. This deals with cleaning up event data memory.
continuous-integration/drone/push Build is passing
Details
2020-07-31 16:19:39 +02:00
Deukhoofd
436e68293e
Support for passing a random seed.
continuous-integration/drone/push Build is passing
Details
2020-07-26 10:16:25 +02:00
Deukhoofd
772619db0f
Changed LoadScript to StringView.
continuous-integration/drone/push Build is failing
Details
2020-06-26 18:23:40 +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
66379bfa65
Initial support for handling multi target attacks.
continuous-integration/drone/push Build is failing
Details
2020-06-05 15:32:05 +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
f898698f49
Use smart pointers for BattleSide.
continuous-integration/drone/push Build is failing
Details
2020-06-02 13:06:24 +02:00
Deukhoofd
01f6e59cb6
Make battle class fields all smart pointers.
continuous-integration/drone/push Build is passing
Details
2020-05-31 19:01:45 +02:00
Deukhoofd
29cb4eac37
Make ChoiceQueue use smart pointers.
continuous-integration/drone/push Build is passing
Details
2020-05-31 18:00:39 +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
c056ddc6b3
Adds getter for parties to battle.
continuous-integration/drone/push Build is passing
Details
2020-05-24 12:57:12 +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
1eb751538d
Updated to latest Arbutils.
continuous-integration/drone/push Build is passing
Details
2020-04-25 10:41:15 +02:00
Deukhoofd
ddbf4c23b8
Fix for compilation issue when using NO_ASSERT.
continuous-integration/drone/push Build is passing
Details
2020-04-22 12:54:11 +02:00
Deukhoofd
a200c7cde8
Make Battle fields protected instead of private.
continuous-integration/drone/push Build is passing
Details
2020-04-18 15:22:38 +02:00
Deukhoofd
7ce3e6940d
Rework for C Interfaces to handle exceptions a bit better.
continuous-integration/drone/push Build is passing
Details
2020-03-25 19:09:17 +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
475392f9b6
Fixed issue where base stats of a variant got corrupted.
continuous-integration/drone/push Build is passing
Details
2020-03-22 15:25:38 +01:00
Deukhoofd
899e432271
Added lots of security using asserts.
continuous-integration/drone/push Build is failing
Details
2020-03-22 13:42:26 +01:00
Deukhoofd
5a976e4031
Added display text event hook.
2020-03-09 17:43:36 +01:00
Deukhoofd
ce2fc320bd
Tweaks for Battle and ScriptSet, added Battle C interface.
continuous-integration/drone/push Build is passing
Details
2020-03-09 10:16:57 +01:00
Deukhoofd
1d18066bcc
Made Battle take battleparties as a pointer instead of value for external use.
continuous-integration/drone/push Build is passing
Details
2020-03-07 11:00:48 +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
3802587313
Added HasVolatileScript function to Creature and Battle.
continuous-integration/drone/push Build is failing
Details
2020-02-23 16:17:57 +01:00
Deukhoofd
5f891cd4ed
Added Remove Volatile functions for battle and creatures.
continuous-integration/drone/push Build is passing
Details
2020-02-23 11:11:47 +01:00
Deukhoofd
645ba95bbc
Performance improvements for battle and creature AddVolatileScript methods when passing a string as parameter.
...
continuous-integration/drone/push Build is passing
Details
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
Deukhoofd
d4fd7282f5
Move ScriptCategory enum outside of class scope of ScriptResolver.
continuous-integration/drone/push Build is passing
Details
2020-02-20 13:05:15 +01:00
Deukhoofd
445f7eb3d5
Add virtual destructor to Battle.
2020-02-17 15:52:02 +01:00
Deukhoofd
65f054bfab
Added functions for battle to manipulate volatile scripts.
continuous-integration/drone/push Build is passing
Details
2020-02-16 17:44:41 +01:00
Deukhoofd
428483e73d
Make GetRandom in Battle class a pointer.
continuous-integration/drone/push Build is passing
Details
2020-02-16 17:24:33 +01:00
Deukhoofd
54e366fc1b
Implements BattleRandom class with support for Effect Chance, and script hooks to modify this.
continuous-integration/drone/push Build is passing
Details
2020-02-16 15:08:22 +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
db002c784f
Resolve memory issue with Event Hooks.
continuous-integration/drone/push Build is passing
Details
2019-12-15 12:27:56 +01:00
Deukhoofd
410487c86b
Initial support for Event Hooks.
continuous-integration/drone/push Build is failing
Details
2019-12-15 12:24:08 +01:00
Deukhoofd
6ba708ad12
Implements running from battle.
continuous-integration/drone/push Build is passing
Details
2019-12-15 11:52:10 +01:00
Deukhoofd
3baed93597
Implements marking opponents as seen.
continuous-integration/drone/push Build is passing
Details
2019-12-14 12:40:50 +01:00
Deukhoofd
262279bd2c
Support for ending battles when only one side has creatures that are available for battle.
2019-12-07 21:56:29 +01:00
Deukhoofd
0483e635ea
Reworks test suite, tweaks to Cmake config for Windows.
continuous-integration/drone/push Build is failing
Details
2019-12-07 13:45:44 +01:00
Deukhoofd
57f16bc420
Better handling of filling empty slots.
continuous-integration/drone/push Build is passing
Details
2019-12-07 12:13:12 +01:00
Deukhoofd
6f32d1245b
Implemented and fixed all code required to run at least a single turn.
continuous-integration/drone/push Build is passing
Details
2019-12-05 12:56:41 +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.
continuous-integration/drone/push Build is passing
Details
2019-11-28 12:55:22 +01:00
Deukhoofd
d8332f9e40
Another rework for scripthooks, for better performance.
...
continuous-integration/drone/push Build is passing
Details
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
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
Deukhoofd
fc675efdf5
More work on basic turn layout.
continuous-integration/drone/push Build is passing
Details
2019-11-02 13:57:43 +01:00
Deukhoofd
42c1623985
Fully handle turn ordering
continuous-integration/drone/push Build is passing
Details
2019-10-31 12:31:31 +01:00
Deukhoofd
972af35ecf
Initial support for ordering choices and getting them ready for execution.
continuous-integration/drone/push Build is passing
Details
2019-10-31 12:02:23 +01:00