Commit Graph

475 Commits

Author SHA1 Message Date
9cab330dbd Update Arbutils.
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-08 12:28:20 +02:00
d6335359eb Style fix.
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-08 11:38:11 +02:00
4ef24dd122 Helper method to restore all attack uses on a Creature.
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-08 11:32:25 +02:00
3d21b7c42d Remove event hook threads, as it caused issues when being called from dotnet.
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 20:11:03 +02:00
5b1c73a2af Fixed valgrind issues.
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 12:27:46 +02:00
208bb097dd Make event listeners threaded.
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 12:20:59 +02:00
665227a033 C Interface for new event hooks.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 11:51:43 +02:00
5aa04a4b15 Add TurnStart, TurnEnd and ExperienceGain event triggers.
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 11:02:37 +02:00
3a170d8924 Adds creature Switch event.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-07 10:38:35 +02:00
9d56aaa52a Changed C Interface ChangeAttack to use C functionality.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-04 17:59:50 +02:00
9b9b644143 Tweak EventHook data allocation based on testing.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-04 13:43:51 +02:00
5cd5a634e2 Further memory fixes for getting HitData in ExecutingAttack.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-04 12:45:11 +02:00
f38161f573 Fixed issue where hitdata read wrong memory.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-04 12:22:05 +02:00
08ef84f6d6 Defensive programming.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-03 17:44:29 +02:00
93b3847b31 Revert "Disable EventHook system for now for testing."
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit 84e03021
2020-08-03 17:28:43 +02:00
84e030213d Disable EventHook system for now for testing.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-02 10:14:56 +02:00
d55a9e8494 Add more assertions to prevent segfaults.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-02 09:52:11 +02:00
1b9da9a721 Added more security to EventHook.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-01 11:34:25 +02:00
301f9b9656 Removed StringView initialization, and use the default uninitialized pointer for it.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-01 10:34:40 +02:00
670abd7229 Fixed Segfault when overriding talent.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-01 10:27:46 +02:00
fa5184ad77 Tweaks for EventHook.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 19:52:12 +02:00
c3de280ebb Fixes for EventHook corruptions, unit tests for EventHooks.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 18:39:47 +02:00
077c00a1a3 Set shared library on if so requested.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 17:31:23 +02:00
2b86e2cb95 Fixed conan cpp_info.libs.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 17:05:09 +02:00
0eaae43444 Reworked event hook to a system with pre-allocated memory, owned by the battle. This deals with cleaning up event data memory.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 16:19:39 +02:00
3e8f9340f3 Dont delete events after triggering the event listener. Once they're in the event listeners hands, it's their responsibility to properly clean up the memory. 2020-07-31 15:47:18 +02:00
df0eca1716 C Interface explicit constructors for different events.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 15:01:25 +02:00
b1ecb56f10 Add C Interface for Battle::GetCurrentTurn.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 14:21:46 +02:00
bd7ecb6b33 More work on exceptions.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 14:17:38 +02:00
9c93ca6995 Fixed exception messages being wrong.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 11:23:23 +02:00
a4c4cad59b Merge the two different libs together into the same library.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 10:51:03 +02:00
5a41208fdb Further clearer error handling.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-31 10:45:20 +02:00
b56226076e Fixed issue where multiple targets would cause the same target to be hit over and over again.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-30 20:15:58 +02:00
b3b9698831 More clearer exception messages. 2020-07-30 20:15:27 +02:00
29013bb6ac Fix issue with having two different libraries sharing the same CreatureLib Exception C Interface.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-30 20:06:23 +02:00
99a562812d Fixed issue where initial exception in the C Interface kept being blank.
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-30 18:41:38 +02:00
13c4609cdd Tweaks for exception handling.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-28 19:37:03 +02:00
e2e706693b Clearer errors for C Interface.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-28 17:22:43 +02:00
1d03adf0d1 Implements replacement attack when an attack can't be used anymore, adds clearer exception handling.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 18:00:58 +02:00
36f1e5beeb Further work on better exceptions.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 17:41:11 +02:00
29eb7c603a More reworks of exceptions. 2020-07-26 17:29:06 +02:00
9ec41fdd2d Rework how the C Interface shows exceptions
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 17:22:36 +02:00
418d811d18 Rework of C Interface exception handler.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 16:30:00 +02:00
a4bb8864a0 When creating a CreatureParty with a size, don't just reserve the space, but append nullptr as well.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 16:08:41 +02:00
8ba564d4b7 C Interface for getting party from BattleParty.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 15:46:11 +02:00
7ed118e5de Fixed issue in BattleParty C Interface.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 15:29:16 +02:00
a6ed6d63cc Add individual C Interface destructors for turn choices.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 11:37:05 +02:00
141f0338bf Fixed naming in AttackTurnChoice C Interface.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 11:24:31 +02:00
436e68293e Support for passing a random seed.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-26 10:16:25 +02:00
e6f84f182a Add Creature getter for the library.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-25 15:02:11 +02:00