Deukhoofd
2dea2e6cd0
Add newlines after MacroUtils to hopefully keep the build happy.
continuous-integration/drone/push Build is failing
Details
2020-02-12 19:53:42 +01:00
Deukhoofd
2732a904c4
Add easy to use macro to generate enum helper functions for parsing, stringifying and iteration.
continuous-integration/drone/push Build is failing
Details
2020-02-12 19:48:56 +01:00
Deukhoofd
a8944e2026
Fix AttackData constructor to use signed byte for priority instead of unsigned.
2020-02-12 10:11:25 +01:00
Deukhoofd
80708040a4
When setting variant of species with the same name of already existing variant, delete previous variant.
continuous-integration/drone/push Build is passing
Details
2020-02-09 12:04:59 +01:00
Deukhoofd
3f57051219
Made CreatureSpecies destructor virtual.
continuous-integration/drone/push Build is passing
Details
2020-02-09 10:47:18 +01:00
Deukhoofd
f973259bef
Force insertion when setting species variant, as to prevent memory leaks.
continuous-integration/drone/push Build is passing
Details
2020-02-08 20:16:47 +01:00
Deukhoofd
3303dfd82d
Move header files to CreatureLib subdirectory.
continuous-integration/drone/push Build is passing
Details
2020-02-08 19:04:04 +01:00
Deukhoofd
52d24922ff
Make type library work case insensitive.
continuous-integration/drone/push Build is passing
Details
2020-02-08 17:50:27 +01:00
Deukhoofd
925763752f
Add function to set variants for a species, and a function to get the count of species in a species library.
continuous-integration/drone/push Build is failing
Details
2020-02-08 14:52:45 +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
cd7ddcf78e
Actually implement handling of StopBeforeAttack script hook
continuous-integration/drone/push Build is passing
Details
2020-02-03 19:11:44 +01:00
Deukhoofd
c6620021a7
Fix issues.
continuous-integration/drone/push Build is passing
Details
2020-02-03 18:32:03 +01:00
Deukhoofd
59f7d3aa4f
Make Script functions pass out parameters by pointer instead of reference.
continuous-integration/drone/push Build is failing
Details
2020-02-03 18:27:39 +01:00
Deukhoofd
c4d0a73df6
Remove display script hook functions, replace them with easy to use interface on Creature class.
continuous-integration/drone/push Build is passing
Details
2020-02-03 16:49:28 +01:00
Deukhoofd
07700008f7
Slight tweaks for CreatureException, add tests to see if what() works.
2020-02-03 13:05:46 +01:00
Deukhoofd
c3b573c7da
Initialize Battle pointers with nullptr in Create class.
continuous-integration/drone/push Build is passing
Details
2020-02-02 14:39:57 +01:00
Deukhoofd
fc5826edb1
Check whether a battle has been set when calling Damage function.
continuous-integration/drone/push Build is passing
Details
2020-02-02 12:34:02 +01:00
Deukhoofd
bb9b9609a6
Implements TryGet functions on several libraries.
continuous-integration/drone/push Build is passing
Details
2020-02-01 15:33:44 +01:00
Deukhoofd
dba271681d
Change LibrarySettings to be a pointer instead of value, to allow for overriding in implementations.
continuous-integration/drone/push Build is passing
Details
2020-02-01 13:30:51 +01:00
Deukhoofd
7e0a1ec033
Make SpeciesVariant virtual
continuous-integration/drone/push Build is passing
Details
2020-01-26 13:11:50 +01:00
Deukhoofd
23c4e89c2d
Removed unused function from ExecutingAttack
2020-01-26 13:10:45 +01:00
Deukhoofd
faaafb5e1d
Make AttackData polymorphic
continuous-integration/drone/push Build is passing
Details
2020-01-25 13:09:09 +01:00
Deukhoofd
1256d7d2e3
Add virtual modifiers to LearnedAttack.hpp
continuous-integration/drone/push Build is passing
Details
2020-01-25 12:37:05 +01:00
Deukhoofd
15523a18a5
Return item name by reference instead of value.
continuous-integration/drone/push Build is passing
Details
2020-01-19 13:00:08 +01:00
Deukhoofd
cc46cd46a7
Commit TurnHandler from earlier revert.
continuous-integration/drone/push Build is passing
Details
2020-01-18 13:44:02 +01:00
Deukhoofd
d66bcee979
Change AttackData type to byte instead of string.
continuous-integration/drone/push Build is failing
Details
2020-01-18 13:41:01 +01:00
Deukhoofd
e3bbc369fc
Revert "Make Script functions use pointers for out variables, instead of references."
...
This reverts commit c3877e01
2020-01-18 13:38:47 +01:00
Deukhoofd
b02577554f
Remove GetProperty macro, as it wasn't that intuitive, and caused issues later.
continuous-integration/drone/push Build is passing
Details
2020-01-12 17:04:42 +01:00
Deukhoofd
779f0b08cf
Fixed CreatureException not saving error string.
continuous-integration/drone/push Build is passing
Details
2020-01-11 19:25:16 +01:00
Deukhoofd
c3877e0151
Make Script functions use pointers for out variables, instead of references.
continuous-integration/drone/push Build is passing
Details
2020-01-11 16:05:39 +01:00
Deukhoofd
836a201b2d
Add initialize function to script resolver, where it can access the battle library.
continuous-integration/drone/push Build is passing
Details
2020-01-11 11:35:59 +01:00
Deukhoofd
144d17d859
Fixed changing stat boost by negative actually increasing it.
continuous-integration/drone/push Build is passing
Details
2020-01-05 14:57:17 +01:00
Deukhoofd
fbfcc53a02
Furter fixes for changing stats.
continuous-integration/drone/push Build is passing
Details
2020-01-05 14:39:10 +01:00
Deukhoofd
f9494d4c38
Fix changing stat falling through enum and throwing exception.
continuous-integration/drone/push Build is failing
Details
2020-01-05 14:25:48 +01:00
Deukhoofd
568232c7a5
Split off initialization of Creature into new function that's not called in the constructor.
...
continuous-integration/drone/push Build is passing
Details
This has to do with specific implementations of stat calculator requiring an inherited type of the Creature class, and by calling it in the constructor casting to this inherited type will fail.
2020-01-05 13:43:47 +01:00
Deukhoofd
dd8d4d738d
Allow getting Static Library from BattleLibrary.
continuous-integration/drone/push Build is passing
Details
2020-01-02 19:33:10 +01:00
Deukhoofd
18236981ed
Fixed syntax error.
continuous-integration/drone/push Build is passing
Details
2020-01-02 18:43:16 +01:00
Deukhoofd
1a246f57e8
Make Creature class variables mostly protected instead of private.
continuous-integration/drone/push Build is failing
Details
2020-01-02 18:38:56 +01:00
Deukhoofd
b98b470f0d
Mark destructors of several libraries as virtual.
continuous-integration/drone/push Build is passing
Details
2020-01-02 17:48:14 +01:00
Deukhoofd
f0c3f84a29
Remove use of unused field
continuous-integration/drone/push Build is passing
Details
2020-01-02 16:19:32 +01:00
Deukhoofd
b3d07f5a0e
Removed unused field from CreateCreature.hpp
continuous-integration/drone/push Build is failing
Details
2020-01-02 16:18:46 +01:00
Deukhoofd
00582174fb
Don't actually build in Conan step, just re-use the build-release step.
continuous-integration/drone/push Build is passing
Details
2020-01-01 20:38:29 +01:00
Deukhoofd
ef372df117
Actually tell Conan to build.
continuous-integration/drone/push Build is failing
Details
2020-01-01 20:26:01 +01:00
Deukhoofd
6e498429f9
Don't keep path for Conan libraries, as we're now removing old folders in CI.
continuous-integration/drone/push Build is passing
Details
2020-01-01 15:53:27 +01:00
Deukhoofd
79d2f543fb
Further tweaks for Conan
continuous-integration/drone/push Build is passing
Details
2020-01-01 15:36:55 +01:00
Deukhoofd
5f336a7211
More changes and fixes for Conan.
continuous-integration/drone/push Build is passing
Details
2020-01-01 15:22:51 +01:00
Deukhoofd
6d18282152
Copy .dll files as well
continuous-integration/drone/push Build is passing
Details
2020-01-01 15:05:15 +01:00
Deukhoofd
34cb7ee4db
Fix Cmake issue when targeting Windows from Conan.
continuous-integration/drone/push Build is passing
Details
2020-01-01 14:48:20 +01:00
Deukhoofd
4bc8a047b3
Require os setting
continuous-integration/drone/push Build is passing
Details
2020-01-01 14:32:54 +01:00
Deukhoofd
4d118d97c0
Fixes for conanfile.py
continuous-integration/drone/push Build is passing
Details
2020-01-01 14:17:13 +01:00