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
|
93a763ab78
|
Rework exceptions.
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-15 16:34:52 +02:00 |
Deukhoofd
|
c921d3127b
|
Update to latest Arbutils, include stacktrace.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-15 15:10:48 +02:00 |
Deukhoofd
|
46ab060b99
|
C Interface to get targets array from ExecutingAttack.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-14 17:59:56 +02:00 |
Deukhoofd
|
cb4765e0cc
|
Adds support for History data, allowing us to store specific interesting occurrences in the data flow, and recall them later.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-14 15:18:00 +02:00 |
Deukhoofd
|
103c703208
|
Add cool new c++ 20 constraint to EventHook.
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-14 14:10:13 +02:00 |
Deukhoofd
|
64b08d4ff0
|
Cleaned up Events, added events on species and variant changes.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-14 13:52:22 +02:00 |
Deukhoofd
|
c484c376c3
|
When changing species, account for gender changes.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-13 12:23:49 +02:00 |
Deukhoofd
|
bb35248174
|
Support changing species for a creature.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-13 10:38:56 +02:00 |
Deukhoofd
|
51325943ab
|
Support swapping attacks.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-12 18:54:01 +02:00 |
Deukhoofd
|
9c6d149ad9
|
Support for adding and replacing attacks.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-12 17:51:06 +02:00 |
Deukhoofd
|
1807e720dd
|
Support for packing party.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-10 17:37:30 +02:00 |
Deukhoofd
|
48660f3a4c
|
Adds getter for UniqueIdentifier
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-09 11:48:40 +02:00 |
Deukhoofd
|
9cab330dbd
|
Update Arbutils.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-08 12:28:20 +02:00 |
Deukhoofd
|
d6335359eb
|
Style fix.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-08 11:38:11 +02:00 |
Deukhoofd
|
4ef24dd122
|
Helper method to restore all attack uses on a Creature.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-08 11:32:25 +02:00 |
Deukhoofd
|
3d21b7c42d
|
Remove event hook threads, as it caused issues when being called from dotnet.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-07 20:11:03 +02:00 |
Deukhoofd
|
208bb097dd
|
Make event listeners threaded.
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-07 12:20:59 +02:00 |
Deukhoofd
|
5aa04a4b15
|
Add TurnStart, TurnEnd and ExperienceGain event triggers.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-07 11:02:37 +02:00 |
Deukhoofd
|
3a170d8924
|
Adds creature Switch event.
continuous-integration/drone/push Build is passing
Details
|
2020-08-07 10:38:35 +02:00 |
Deukhoofd
|
5cd5a634e2
|
Further memory fixes for getting HitData in ExecutingAttack.
continuous-integration/drone/push Build is passing
Details
|
2020-08-04 12:45:11 +02:00 |
Deukhoofd
|
f38161f573
|
Fixed issue where hitdata read wrong memory.
continuous-integration/drone/push Build is passing
Details
|
2020-08-04 12:22:05 +02:00 |
Deukhoofd
|
d55a9e8494
|
Add more assertions to prevent segfaults.
continuous-integration/drone/push Build is passing
Details
|
2020-08-02 09:52:11 +02:00 |
Deukhoofd
|
301f9b9656
|
Removed StringView initialization, and use the default uninitialized pointer for it.
continuous-integration/drone/push Build is passing
Details
|
2020-08-01 10:34:40 +02:00 |
Deukhoofd
|
670abd7229
|
Fixed Segfault when overriding talent.
continuous-integration/drone/push Build is passing
Details
|
2020-08-01 10:27:46 +02:00 |
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
|
13c4609cdd
|
Tweaks for exception handling.
continuous-integration/drone/push Build is passing
Details
|
2020-07-28 19:37:03 +02:00 |
Deukhoofd
|
e2e706693b
|
Clearer errors for C Interface.
continuous-integration/drone/push Build is passing
Details
|
2020-07-28 17:22:43 +02:00 |
Deukhoofd
|
1d03adf0d1
|
Implements replacement attack when an attack can't be used anymore, adds clearer exception handling.
continuous-integration/drone/push Build is passing
Details
|
2020-07-26 18:00:58 +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
|
a4bb8864a0
|
When creating a CreatureParty with a size, don't just reserve the space, but append nullptr as well.
continuous-integration/drone/push Build is passing
Details
|
2020-07-26 16:08:41 +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
|
e6f84f182a
|
Add Creature getter for the library.
continuous-integration/drone/push Build is passing
Details
|
2020-07-25 15:02:11 +02:00 |
Deukhoofd
|
8f921ce89b
|
Add support for swapping in and out of a party.
continuous-integration/drone/push Build is passing
Details
|
2020-07-25 14:35:13 +02:00 |
Deukhoofd
|
be82abeece
|
Change nickname to string from string_view.
continuous-integration/drone/push Build is passing
Details
|
2020-07-19 12:15:14 +02:00 |
Deukhoofd
|
367ed7fcbb
|
Cleanup CMake file.
|
2020-07-17 13:12:21 +02:00 |
Deukhoofd
|
5032377554
|
Remove Random passes by pointer.
continuous-integration/drone/push Build is passing
Details
|
2020-07-12 15:26:00 +02:00 |
Deukhoofd
|
c6974b6b5b
|
Adds getter for Script for ExecutingAttack. Mostly useful for unit tests etc.
continuous-integration/drone/push Build is passing
Details
|
2020-07-04 18:13:36 +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
|
add77325a4
|
Several additional checks to ensure battle does not finish turn when ended.
continuous-integration/drone/push Build is passing
Details
|
2020-06-12 16:48:49 +02:00 |
Deukhoofd
|
fd1c6e9a0a
|
If no side is still alive, mark battle as inconclusive ended.
continuous-integration/drone/push Build is passing
Details
|
2020-06-12 16:25:21 +02:00 |
Deukhoofd
|
3358bf7378
|
Fixed comparing int32_t with uint32_t.
continuous-integration/drone/push Build is passing
Details
|
2020-06-10 14:46:45 +02:00 |
Deukhoofd
|
c8314d6018
|
Support for changing variants.
continuous-integration/drone/push Build is failing
Details
|
2020-06-10 14:39:20 +02:00 |
Deukhoofd
|
9e7607338f
|
Moved Creature types to creature itself, instead of using the variant types.
continuous-integration/drone/push Build is passing
Details
|
2020-06-05 16:38:27 +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
|
f463ba8496
|
Simplify check whether mon is on battle field.
continuous-integration/drone/push Build is passing
Details
|
2020-06-05 14:35:23 +02:00 |
Deukhoofd
|
44de4a0799
|
Use std::algorithm for Battle::CreatureInField
continuous-integration/drone/push Build is passing
Details
|
2020-06-05 14:15:20 +02:00 |
Deukhoofd
|
57e8595bdf
|
Make ExecutingAttack creature list a raw C array, as this is a hot spot and could use some optimization.
continuous-integration/drone/push Build is passing
Details
|
2020-06-04 21:58:28 +02:00 |
Deukhoofd
|
657d646fda
|
Make the last couple classes use smart pointers.
continuous-integration/drone/push Build is passing
Details
|
2020-06-02 18:30:37 +02:00 |
Deukhoofd
|
7262ae9e8b
|
Make ExecutingAttack use smart pointers.
|
2020-06-02 18:02:37 +02:00 |
Deukhoofd
|
a5a613ba5c
|
Make CreateCreature use smart pointers.
|
2020-06-02 17:19:23 +02:00 |
Deukhoofd
|
62583ecb17
|
Make Creature use smart pointers.
continuous-integration/drone/push Build is passing
Details
|
2020-06-02 16:20:47 +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
|
23e2bc73bc
|
Style fixes.
continuous-integration/drone/push Build is passing
Details
|
2020-06-02 14:14:24 +02:00 |
Deukhoofd
|
e8650e2a03
|
Fixed build error.
continuous-integration/drone/push Build is passing
Details
|
2020-06-02 14:02:32 +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
|
f898698f49
|
Use smart pointers for BattleSide.
continuous-integration/drone/push Build is failing
Details
|
2020-06-02 13:06:24 +02:00 |
Deukhoofd
|
49e8ff055d
|
Use smart pointer for BattleParty.
continuous-integration/drone/push Build is failing
Details
|
2020-06-02 12:16:26 +02:00 |
Deukhoofd
|
18203138d1
|
Use algorithm for IsResponsibleForIndex check.
continuous-integration/drone/push Build is failing
Details
|
2020-06-02 12:14:49 +02:00 |
Deukhoofd
|
69f6a89c0d
|
Make CreatureParty use smart pointers.
continuous-integration/drone/push Build is passing
Details
|
2020-05-31 19:04:40 +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
|
ff181204ae
|
Make LearnedAttack of Creature a smart pointer.
continuous-integration/drone/push Build is passing
Details
|
2020-05-31 17:26:39 +02:00 |
Deukhoofd
|
a9740cb1eb
|
Fixed memory leak in ExecutingAttack.
continuous-integration/drone/push Build is passing
Details
|
2020-05-27 18:29:52 +02:00 |
Deukhoofd
|
fcc6f2214e
|
Make ExecutingAttack have raw pointer array HitData, instead of a List. This is a very hot segment of code, and removing surrounding abstractions can give us a decent amount of performance.
continuous-integration/drone/push Build is failing
Details
|
2020-05-27 18:26:09 +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
|
16b67b0d54
|
Make most of the battle library use unique_ptr.
continuous-integration/drone/push Build is passing
Details
|
2020-05-26 15:11:04 +02:00 |
Deukhoofd
|
8418c814b4
|
Make SpeciesVariants smart pointers.
continuous-integration/drone/push Build was killed
Details
|
2020-05-26 14:35:18 +02:00 |
Deukhoofd
|
36208da2fb
|
Remove shared_ptr, instead use borrowed_ptr to more accurately depict ownership of the objects in the BaseLibraries.
continuous-integration/drone/push Build is passing
Details
|
2020-05-26 14:13:30 +02:00 |
Deukhoofd
|
d82792e27a
|
Make BaseLibraries use shared_ptr.
continuous-integration/drone/push Build is passing
Details
|
2020-05-24 20:57:22 +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
|
2e860192c7
|
Support for blocking a creature from gaining experience, don't give experience when a creature is fainted.
continuous-integration/drone/push Build is passing
Details
|
2020-05-20 15:18:27 +02:00 |
Deukhoofd
|
94d9d4f3d2
|
Performance improvement for running turns by reducing the number of lookups for the hitdata.
continuous-integration/drone/push Build is passing
Details
|
2020-04-25 20:20:30 +02:00 |
Deukhoofd
|
f602ea9358
|
Fixed Windows build issue.
continuous-integration/drone/push Build is passing
Details
|
2020-04-25 20:13:46 +02:00 |
Deukhoofd
|
7fd3687564
|
Cleanup of ExecutingAttack, removing TargetData, and reducing the number of allocations needed.
continuous-integration/drone/push Build is failing
Details
|
2020-04-25 20:09:20 +02:00 |
Deukhoofd
|
864a9d933d
|
Inlined get stats from Creature. These are frequently called one line methods.
continuous-integration/drone/push Build is passing
Details
|
2020-04-25 16:15:27 +02:00 |
Deukhoofd
|
0e874346bb
|
Pass ExecutingAttack values by reference instead of pointer.
continuous-integration/drone/push Build is passing
Details
|
2020-04-25 16:04:17 +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
|
dd668f2b1c
|
Cleanup of ScriptAggregator class.
continuous-integration/drone/push Build is passing
Details
|
2020-04-23 23:23:58 +02:00 |
Deukhoofd
|
742d0c772c
|
Handling for tie breaking
continuous-integration/drone/push Build is passing
Details
|
2020-04-22 23:09:54 +02:00 |
Deukhoofd
|
97fa37ea7d
|
Implements clamped statistics for stat boost.
continuous-integration/drone/push Build is passing
Details
|
2020-04-22 21:48:00 +02:00 |
Deukhoofd
|
75baf19ebd
|
Cleanup
|
2020-04-22 21:20:07 +02:00 |
Deukhoofd
|
d2cf26e950
|
Fixed issue where attack with 1 use remaining couldn't be used.
continuous-integration/drone/push Build is passing
Details
|
2020-04-22 15:03:09 +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
|
83f427368e
|
Pass LearnedAttack list to creature by reference.
continuous-integration/drone/push Build is passing
Details
|
2020-04-21 14:44:57 +02:00 |
Deukhoofd
|
88d55998d0
|
Change DamageSource enum to Arbutils Enum.
continuous-integration/drone/push Build is passing
Details
|
2020-04-19 12:59:25 +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
|
2e5d463e45
|
Throw clean exception when no volatile script is found when adding one.
continuous-integration/drone/push Build is passing
Details
|
2020-04-11 00:22:08 +02:00 |
Deukhoofd
|
49e0f00237
|
Initialize CreateCreature with ConstString instead of std::string.
continuous-integration/drone/push Build is passing
Details
|
2020-04-10 16:44:25 +02:00 |
Deukhoofd
|
70fc8d2d5f
|
Add C interface for ExecutingAttack.
continuous-integration/drone/push Build is passing
Details
|
2020-04-06 17:05:32 +02:00 |
Deukhoofd
|
e2675d06fb
|
C interface for Battle Random.
continuous-integration/drone/push Build is passing
Details
|
2020-04-04 18:24:59 +02:00 |
Deukhoofd
|
3dd5aeffd8
|
C interface for Battle Side.
continuous-integration/drone/push Build is passing
Details
|
2020-04-04 17:03:06 +02:00 |
Deukhoofd
|
1e0d00d3b7
|
Revert "Use smart pointers for basic libraries."
continuous-integration/drone/push Build is passing
Details
This reverts commit 214ff819
|
2020-04-04 13:37:06 +02:00 |
Deukhoofd
|
91bea44113
|
Added LearnedAttack C Interface.
continuous-integration/drone/push Build is passing
Details
|
2020-04-04 13:36:13 +02:00 |
Deukhoofd
|
214ff81992
|
Use smart pointers for basic libraries.
continuous-integration/drone/push Build is passing
Details
|
2020-03-26 22:46:14 +01: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 |