113 Commits

Author SHA1 Message Date
dba271681d
Change LibrarySettings to be a pointer instead of value, to allow for overriding in implementations.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-01 13:30:51 +01:00
23c4e89c2d
Removed unused function from ExecutingAttack 2020-01-26 13:10:45 +01:00
1256d7d2e3
Add virtual modifiers to LearnedAttack.hpp
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-25 12:37:05 +01:00
b02577554f
Remove GetProperty macro, as it wasn't that intuitive, and caused issues later.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-12 17:04:42 +01:00
144d17d859
Fixed changing stat boost by negative actually increasing it.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-05 14:57:17 +01:00
568232c7a5
Split off initialization of Creature into new function that's not called in the constructor.
All checks were successful
continuous-integration/drone/push Build is passing
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
18236981ed
Fixed syntax error.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-02 18:43:16 +01:00
1a246f57e8
Make Creature class variables mostly protected instead of private.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-02 18:38:56 +01:00
f0c3f84a29
Remove use of unused field
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-02 16:19:32 +01:00
b3d07f5a0e
Removed unused field from CreateCreature.hpp
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-02 16:18:46 +01:00
243b3a768c
Remove unused fields in CreateCreature class
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-27 12:36:32 +01:00
ae4d8f5e12
Removes some variables that are better handled in implementations.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-27 12:19:38 +01:00
9e0d8d76fb
Change GenericTemplates.cpp to GenericTemplates.hpp, as to include it in header files.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-26 12:27:54 +01:00
8e53ffb53d
Implements functions for getting display species and variant.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-21 14:32:45 +01:00
db002c784f
Resolve memory issue with Event Hooks.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-15 12:27:56 +01:00
410487c86b
Initial support for Event Hooks.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-15 12:24:08 +01:00
6ba708ad12
Implements running from battle.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-15 11:52:10 +01:00
649de39571
Implements experience gain on opponent faint.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-14 13:28:23 +01:00
3baed93597
Implements marking opponents as seen.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-14 12:40:50 +01:00
c25d7b865e
Implements creature switching as turn choice.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-14 12:15:30 +01:00
2ee181bca7
Fixed _onBattleField field of Creature leading to cascading errors on release configuration.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-12 11:14:50 +01:00
dc9296194e
Fixed battle ending after any faint.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-07 22:52:43 +01:00
7c642f7df5 Fixes for damage calculations always using a base power of 0. 2019-12-07 22:09:06 +01:00
262279bd2c Support for ending battles when only one side has creatures that are available for battle. 2019-12-07 21:56:29 +01:00
0483e635ea Reworks test suite, tweaks to Cmake config for Windows.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-07 13:45:44 +01:00
8897f2282f Put the check for slots filled behind the check whether all choices are set.
This because this check can be more expensive, and should run as little times
as possible. In this case it should only run when all choices are set,
which should be in most cases once a turn.
2019-12-07 12:49:18 +01:00
57f16bc420
Better handling of filling empty slots.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 12:13:12 +01:00
6f32d1245b
Implemented and fixed all code required to run at least a single turn.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-05 12:56:41 +01:00
5d6ac316eb
Renamed Target class to CreatureIndex 2019-12-05 09:53:48 +01:00
a8730d983f
Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-28 12:55:22 +01:00
3b685ae782
Added layout for CreatureParty 2019-11-28 12:16:03 +01:00
aa356d74d7
Set data for executing attacks.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-24 11:06:51 +01:00
49bd4813f6 Initialize Creature talent script when battle library is set, allow talent overriding
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-18 18:41:55 +01:00
86f8a1e37b
Adds talent script to Creature class
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-17 11:25:52 +01:00
d8332f9e40 Another rework for scripthooks, for better performance.
All checks were successful
continuous-integration/drone/push Build is passing
This new version caches pointers to the pointers to scripts, so that we can build the data once and then simply iterate over it whenever we want to run a hook.
2019-11-10 17:08:42 +01:00
df3905fa49 Give Creature a virtual destructor.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-10 14:37:06 +01:00
2a98f051c9 Give ExecutingAttack a virtual destructor.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-10 14:33:26 +01:00
3488784409 Furter rework on script hooks, simplifying required logic. 2019-11-10 14:32:05 +01:00
f72fd5f905 Make ExecutingAttack be a pointer, as we probably want to keep it around after it has finished executing.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-09 13:18:45 +01:00
658672a246 More handling of script hooks. 2019-11-09 12:55:48 +01:00
ee14efe22e Implemented better script handling. 2019-11-09 12:15:45 +01:00
c3bfbb569e Initial setup for script hooks (likely to be revamped)
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-08 18:45:43 +01:00
19e1308f93 Improve performance for setting choices. 2019-11-06 18:08:21 +01:00
beac87f981 Reset choices on side when executing turn. 2019-11-06 18:06:48 +01:00
5fc2bf564a Support turn queue return prematurely when a creature is recalled, and the ability to resume it later. 2019-11-06 18:04:00 +01:00
efa994c88d Fixes dependency issue, lack of virtual destructor for DamageLibrary
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-05 16:20:47 +01:00
1848d7b617 Implementation of damage calculation.
Some checks reported errors
continuous-integration/drone/push Build was killed
2019-11-05 14:31:54 +01:00
db2a577a85 Further implementation of types. 2019-11-05 08:06:12 +01:00
b4e08049ce
Handle executing moves.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-03 13:47:50 +01:00
fc675efdf5
More work on basic turn layout.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-02 13:57:43 +01:00