Commit Graph

77 Commits

Author SHA1 Message Date
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 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 665227a033
C Interface for new event hooks.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-07 11:51:43 +02:00
Deukhoofd 9d56aaa52a
Changed C Interface ChangeAttack to use C functionality.
continuous-integration/drone/push Build is passing Details
2020-08-04 17:59:50 +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 df0eca1716
C Interface explicit constructors for different events.
continuous-integration/drone/push Build is passing Details
2020-07-31 15:01:25 +02:00
Deukhoofd b1ecb56f10
Add C Interface for Battle::GetCurrentTurn.
continuous-integration/drone/push Build is passing Details
2020-07-31 14:21:46 +02:00
Deukhoofd a4c4cad59b
Merge the two different libs together into the same library.
continuous-integration/drone/push Build is passing Details
2020-07-31 10:51:03 +02:00
Deukhoofd 29013bb6ac
Fix issue with having two different libraries sharing the same CreatureLib Exception C Interface.
continuous-integration/drone/push Build is passing Details
2020-07-30 20:06:23 +02:00
Deukhoofd 8ba564d4b7
C Interface for getting party from BattleParty.
continuous-integration/drone/push Build is passing Details
2020-07-26 15:46:11 +02:00
Deukhoofd 7ed118e5de
Fixed issue in BattleParty C Interface.
continuous-integration/drone/push Build is passing Details
2020-07-26 15:29:16 +02:00
Deukhoofd a6ed6d63cc
Add individual C Interface destructors for turn choices.
continuous-integration/drone/push Build is passing Details
2020-07-26 11:37:05 +02:00
Deukhoofd 141f0338bf
Fixed naming in AttackTurnChoice C Interface.
continuous-integration/drone/push Build is passing Details
2020-07-26 11:24:31 +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 3f447a3e16
Add C Interface for Creature::GetActiveTalent.
continuous-integration/drone/push Build is passing Details
2020-07-24 10:16:57 +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 2225d32432
Cleanup of C Interface, remove use of operator->, as it will throw when null.
continuous-integration/drone/push Build is passing Details
2020-07-07 15:43:31 +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 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 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 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 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 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 25f65eb47b
Update to newer Arbutils version.
continuous-integration/drone/push Build is passing Details
2020-05-26 18:31:06 +02:00
Deukhoofd d746b3ecce
Make staticlib in battle library an unique ptr.
continuous-integration/drone/push Build is passing Details
2020-05-26 16:38:55 +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 6c40f4291d
Fixed C Interface for DamageLibrary returning floats instead of expected bytes.
continuous-integration/drone/push Build is passing Details
2020-05-20 15:02:53 +02:00
Deukhoofd 09ec643cf9
Fixes for Creature C Interface construct method having C++ classes.
continuous-integration/drone/push Build is failing Details
2020-05-02 14:14:29 +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 8eb22ad68d
Pass HitData as reference to damage calculation library, to prevent multiple lookup.
continuous-integration/drone/push Build is passing Details
2020-04-25 16:51:10 +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 04bf061115
Removed OnStatusMove hook, now just uses OnSecondaryEffect hook.
continuous-integration/drone/push Build is passing Details
2020-04-10 23:06:19 +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