Commit Graph

97 Commits

Author SHA1 Message Date
Deukhoofd 69476b6f9d
Adds setter for nickname.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-22 16:11:23 +01:00
Deukhoofd 4367d1f5cf
Make HeldItem OptionalBorrowedPtr.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-12 13:40:30 +01:00
Deukhoofd 5c39694f19
Overhaul memory model to new Arbutils memory.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-12 12:22:48 +01:00
Deukhoofd 1dc3aafd33
Use vector instead of set for types.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-10-23 16:51:15 +02:00
Deukhoofd def38e98c6
Support for getting a creatures actual talent.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-09-05 14:51:06 +02:00
Deukhoofd 32f75f4a47
Store time in turn execution on battle class.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-28 12:24:10 +02:00
Deukhoofd 97c4856117
C Interface for several events.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-25 18:33:39 +02:00
Deukhoofd 482a0fc324
Add C Interface function to get number of hits of executingattack.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-24 20:37:36 +02:00
Deukhoofd 86ed173d30
Defensive programming for Party
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-24 20:37:22 +02:00
Deukhoofd 39e1295013
Compile time option to change bit size of level.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-19 20:11:00 +02:00
Deukhoofd ba97fa8579
C Interface to initialize creature.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-17 17:23:03 +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 73f48eab7a
C Interface for History.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-14 17:24:12 +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 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 b2931c0964
C Interface hook for getting number of creatures per side.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-11 16:56:39 +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 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