Commit Graph

144 Commits

Author SHA1 Message Date
Deukhoofd d609d5ca53
Mark CreatureSpecies GetVariantIterator as const.
continuous-integration/drone/push Build is passing Details
2020-02-15 19:35:56 +01:00
Deukhoofd 629567a2a5
Fix BaseLibrary GetCount, add functions that use std string.
continuous-integration/drone/push Build is passing Details
2020-02-15 19:14:10 +01:00
Deukhoofd d6ea16b467
Implement basic library class that other libraries inherit from for performance.
continuous-integration/drone/push Build is passing Details
2020-02-15 18:51:21 +01:00
Deukhoofd a47f60cdf7
Implements iterator functions for libraries.
continuous-integration/drone/push Build is passing Details
2020-02-15 18:15:31 +01:00
Deukhoofd a6f91faba4
Fix variants lowercasing causing stack smashing error.
continuous-integration/drone/push Build is passing Details
2020-02-13 18:45:41 +01:00
Deukhoofd 667821df28
Mark TryGetVariant as const.
continuous-integration/drone/push Build is passing Details
2020-02-13 17:37:37 +01:00
Deukhoofd 2ea5f9f9bd
Make variant keys case insensitive, added helper functions for variants.
continuous-integration/drone/push Build is passing Details
2020-02-13 17:16:07 +01:00
Deukhoofd 611198009b
Make Attack, Item and Species libraries be case insensitive.
continuous-integration/drone/push Build is passing Details
2020-02-13 16:05:27 +01:00
Deukhoofd 42050de18a
Use ENUM macro for Item Category enums.
continuous-integration/drone/push Build is passing Details
2020-02-13 10:49:45 +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 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 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 faaafb5e1d
Make AttackData polymorphic
continuous-integration/drone/push Build is passing Details
2020-01-25 13:09:09 +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 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 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 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 4d3dc28606
Allow most libraries to reserve capacity for their database.
continuous-integration/drone/push Build is passing Details
2019-12-31 10:48:52 +01:00
Deukhoofd db2eb0c3fa
Make DataLibrary destructor virtual.
continuous-integration/drone/push Build is passing Details
2019-12-30 16:03:46 +01:00
Deukhoofd ae4d8f5e12
Removes some variables that are better handled in implementations.
continuous-integration/drone/push Build is failing Details
2019-12-27 12:19:38 +01:00
Deukhoofd 9e0d8d76fb
Change GenericTemplates.cpp to GenericTemplates.hpp, as to include it in header files.
continuous-integration/drone/push Build is passing Details
2019-12-26 12:27:54 +01:00
Deukhoofd 0fad615050
Make LookupGrowthRate use unsigned integers instead of signed ones, to resolve Windows error.
continuous-integration/drone/push Build is passing Details
2019-12-14 14:09:07 +01:00
Deukhoofd f5a71ca807
Fixed memory leak in growth rate library.
continuous-integration/drone/push Build is failing Details
2019-12-14 13:42:34 +01:00
Deukhoofd 649de39571
Implements experience gain on opponent faint.
continuous-integration/drone/push Build is failing Details
2019-12-14 13:28:23 +01:00
Deukhoofd a8730d983f
Used ClangFormat style guide I'm happy with.
continuous-integration/drone/push Build is passing Details
2019-11-28 12:55:22 +01:00
Deukhoofd db2a577a85 Further implementation of types. 2019-11-05 08:06:12 +01:00
Deukhoofd 168e14d394 Implement basic type library.
continuous-integration/drone/push Build is passing Details
2019-11-04 17:58:26 +01:00
Deukhoofd 163752a8ea
Fix memory leak in attack library 2019-10-31 13:30:22 +01:00
Deukhoofd 65f814b006
Implemented better exceptions
continuous-integration/drone/push Build is failing Details
2019-10-31 13:26:56 +01:00
Deukhoofd 9588236183
Remove creature classes from Library lib, merged with Battling lib.
continuous-integration/drone/push Build is passing Details
2019-10-24 13:37:55 +02:00
Deukhoofd bb8978314f
Support for learnable moves
continuous-integration/drone/push Build is passing Details
2019-10-24 11:04:19 +02:00
Deukhoofd cfb7663d78
Fix build by adding get functions for otherwise inaccessible fields.
continuous-integration/drone/push Build is passing Details
2019-10-23 19:21:21 +02:00
Deukhoofd cdaa056810 Initial support for learned moves
continuous-integration/drone/push Build is failing Details
2019-10-23 18:57:50 +02:00
Deukhoofd d580d81163
Initial work on battling
continuous-integration/drone/push Build is failing Details
2019-10-17 14:33:25 +02:00
Deukhoofd 212a7d1ad6
Added functionality to get full stats from creature 2019-10-10 15:08:34 +02:00
Deukhoofd 2966ba268f
Fix creature memory leaks
continuous-integration/drone/push Build is failing Details
2019-10-06 14:06:17 +02:00
Deukhoofd 265923231f
Initial commit 2019-10-06 13:50:52 +02:00