Commit Graph

  • 6bffea953d Implements extern growthrate that uses function pointers. Deukhoofd 2020-03-04 15:00:57 +01:00
  • 81e173ec1a C Interface for Lookup GrowthRate. Deukhoofd 2020-03-04 09:11:32 +01:00
  • 33de8424be Tweaks and fixes for Item, added C interface. Deukhoofd 2020-03-03 19:37:21 +01:00
  • 461da76f59 Tweaks and fixes for AttackData, added C interface. Deukhoofd 2020-03-02 15:38:18 +01:00
  • 81ae0e8454 Make Attack name a ConstString. Deukhoofd 2020-03-02 15:29:42 +01:00
  • 3bca3c0673 Reworked LearnedAttacks class, added C interface. Deukhoofd 2020-03-02 15:23:08 +01:00
  • 60cbc80549 C interface for SpeciesVariant. Deukhoofd 2020-03-02 14:01:56 +01:00
  • 0c1580ade6 Reworked retrieving talent, new method is cleaner and harder to misunderstand. Deukhoofd 2020-03-02 13:59:49 +01:00
  • bfc049a97c Fixed wrong __uint8 being used. Deukhoofd 2020-03-01 10:19:36 +01:00
  • 19316644fc Very initial work on SpeciesVariant C Interface, slight cleanup of other C Interfaces. Deukhoofd 2020-02-29 17:21:36 +01:00
  • 5f341ffbb7 Use hash as key for Species variants, added C interface for Species. Deukhoofd 2020-02-29 17:00:29 +01:00
  • f95c625971 C interfaces for GrowthRateLibrary and TypeLibrary/ Deukhoofd 2020-02-29 16:06:47 +01:00
  • 70ad3eb838 Tweaks and fixes for TypeLibrary Deukhoofd 2020-02-29 16:06:36 +01:00
  • 671077259e Make typelibrary be based around the hash value instead of conststring value. Deukhoofd 2020-02-29 15:54:02 +01:00
  • 4341efb54c Support ConstString in TypeLibrary. Deukhoofd 2020-02-29 15:41:43 +01:00
  • 4866edebab Make GrowthRate library be key based on uint32, instead of on the ConstString, to save memory. Deukhoofd 2020-02-29 15:07:05 +01:00
  • b7b54c04e8 Add the baselibrary classes to the C Interface. Deukhoofd 2020-02-29 14:52:15 +01:00
  • 0a109e37bc Initial work on creating C interface. Deukhoofd 2020-02-29 14:09:03 +01:00
  • 5a05a2f4d3 Add ConstString to several other places where context isn't changed much during runtime. Deukhoofd 2020-02-28 19:23:24 +01:00
  • 469fcfe280 Make item name ConstString. Deukhoofd 2020-02-27 18:30:30 +01:00
  • 412e0a4d63 Implements ConstString in several core places in the library, improving performance. Deukhoofd 2020-02-27 18:23:23 +01:00
  • 1d3a8da99e Change Conan url. Deukhoofd 2020-02-27 12:55:32 +01:00
  • 6efb7c55e8 Dont include everything statically for Windows build. Deukhoofd 2020-02-27 11:44:43 +01:00
  • 04009bbb34 Fixes for Windows build. Deukhoofd 2020-02-27 11:21:23 +01:00
  • 894a644f50 Fixes for .drone file. Deukhoofd 2020-02-26 14:10:02 +01:00
  • 8b0486e353 Add conan remote for each build. Deukhoofd 2020-02-26 13:56:56 +01:00
  • 5e6572aca5 Move several classes from Core to Arbutils. Deukhoofd 2020-02-26 13:51:16 +01:00
  • 428b318baf Mark ScriptSet.Has as const. Deukhoofd 2020-02-23 16:20:11 +01:00
  • 3802587313 Added HasVolatileScript function to Creature and Battle. Deukhoofd 2020-02-23 16:17:57 +01:00
  • 4728be18b2 Fixed conan alias. Deukhoofd 2020-02-23 13:48:14 +01:00
  • cf7c6291df Rename conan package. Deukhoofd 2020-02-23 13:39:35 +01:00
  • 56f5bbf174 Rename conan package. Deukhoofd 2020-02-23 13:30:30 +01:00
  • d5eae8580f Add latest alias to conan package. Deukhoofd 2020-02-23 13:08:50 +01:00
  • a606fbbc7b Make basic Script class abstract, require implementation of GetName function. Deukhoofd 2020-02-23 12:58:13 +01:00
  • 5f891cd4ed Added Remove Volatile functions for battle and creatures. Deukhoofd 2020-02-23 11:11:47 +01:00
  • 645ba95bbc Performance improvements for battle and creature AddVolatileScript methods when passing a string as parameter. Deukhoofd 2020-02-22 16:01:01 +01:00
  • 142889ad8a Add functions to add volatile scripts to Creature.cpp. Deukhoofd 2020-02-22 15:53:51 +01:00
  • 32584ac406 Fixed Windows build. Deukhoofd 2020-02-22 15:11:18 +01:00
  • be6b2778a5 Make CreatureException inherit from runtime_error. Deukhoofd 2020-02-22 15:07:16 +01:00
  • 442d6cd5b1 Added Helper function to ChoiceQueue to move a specific creature's choice up next. Deukhoofd 2020-02-22 14:16:38 +01:00
  • d4fd7282f5 Move ScriptCategory enum outside of class scope of ScriptResolver. Deukhoofd 2020-02-20 13:05:15 +01:00
  • f22c23d593 Make ScriptMacro a header instead of source file. Deukhoofd 2020-02-19 15:32:43 +01:00
  • b886f0aebf Add Damage library script hooks. Deukhoofd 2020-02-19 10:12:36 +01:00
  • 5e29f50ea1 Mark SetHeldItem with item object as const ptr. Deukhoofd 2020-02-17 17:24:55 +01:00
  • ce31309b2a Functions to set Creature Held Item, and helper function to check whether Creature is holding a specific held item. Deukhoofd 2020-02-17 17:16:28 +01:00
  • 75bce0e329 Add virtual destructor to CreatureParty. Deukhoofd 2020-02-17 15:52:59 +01:00
  • 445f7eb3d5 Add virtual destructor to Battle. Deukhoofd 2020-02-17 15:52:02 +01:00
  • da90c3d59e Reset active scripts on Creature when battle is set. Deukhoofd 2020-02-17 10:05:32 +01:00
  • 17552c33ca Only get active scripts from side if side exists. Deukhoofd 2020-02-17 09:57:15 +01:00
  • 65f054bfab Added functions for battle to manipulate volatile scripts. Deukhoofd 2020-02-16 17:44:41 +01:00
  • 428483e73d Make GetRandom in Battle class a pointer. Deukhoofd 2020-02-16 17:24:33 +01:00
  • f3b5f9e8f9 Move reference to cpp file outside of header. Deukhoofd 2020-02-16 16:31:06 +01:00
  • 54e366fc1b Implements BattleRandom class with support for Effect Chance, and script hooks to modify this. Deukhoofd 2020-02-16 15:08:22 +01:00
  • 579ee82f02 Pass ExecutingAttack for target as pointer instead of reference. Deukhoofd 2020-02-16 12:02:17 +01:00
  • 252be18630 Make growth rate library case insensitive, add exception if not found. Deukhoofd 2020-02-16 10:07:01 +01:00
  • f37e27378e Add methods for getting all talents and hidden talents from a species variant. Deukhoofd 2020-02-16 09:17:09 +01:00
  • d609d5ca53 Mark CreatureSpecies GetVariantIterator as const. Deukhoofd 2020-02-15 19:35:56 +01:00
  • 629567a2a5 Fix BaseLibrary GetCount, add functions that use std string. Deukhoofd 2020-02-15 19:14:10 +01:00
  • d6ea16b467 Implement basic library class that other libraries inherit from for performance. Deukhoofd 2020-02-15 18:51:21 +01:00
  • a47f60cdf7 Implements iterator functions for libraries. Deukhoofd 2020-02-15 18:15:31 +01:00
  • 0b50d2bf43 Force newest build in drone to be Conan version Deukhoofd 2020-02-15 17:34:48 +01:00
  • a6f91faba4 Fix variants lowercasing causing stack smashing error. Deukhoofd 2020-02-13 18:45:41 +01:00
  • 667821df28 Mark TryGetVariant as const. Deukhoofd 2020-02-13 17:37:37 +01:00
  • 2ea5f9f9bd Make variant keys case insensitive, added helper functions for variants. Deukhoofd 2020-02-13 17:16:07 +01:00
  • 611198009b Make Attack, Item and Species libraries be case insensitive. Deukhoofd 2020-02-13 16:05:27 +01:00
  • 8d4860f553 Support for Heal function for Creatures. Deukhoofd 2020-02-13 14:48:09 +01:00
  • 2dcb197191 Fix issue in tests where we compared with equality operator instead of strcmp. Deukhoofd 2020-02-13 13:33:07 +01:00
  • 02aa6f252e Make Enum Helper parse functions constexpr, added Enum Helper Try Parse functions. Deukhoofd 2020-02-13 13:19:59 +01:00
  • 0ef909cf55 Use ENUM macro for ScriptCategory enum. Deukhoofd 2020-02-13 12:53:48 +01:00
  • 42050de18a Use ENUM macro for Item Category enums. Deukhoofd 2020-02-13 10:49:45 +01:00
  • 1969f59a9c Add vector dependency to Enum macro Deukhoofd 2020-02-12 20:12:17 +01:00
  • f4449cc101 Tell Drone to use CLang. Deukhoofd 2020-02-12 19:57:15 +01:00
  • 2dea2e6cd0 Add newlines after MacroUtils to hopefully keep the build happy. Deukhoofd 2020-02-12 19:53:42 +01:00
  • 2732a904c4 Add easy to use macro to generate enum helper functions for parsing, stringifying and iteration. Deukhoofd 2020-02-12 19:48:56 +01:00
  • a8944e2026 Fix AttackData constructor to use signed byte for priority instead of unsigned. Deukhoofd 2020-02-12 10:11:25 +01:00
  • 80708040a4 When setting variant of species with the same name of already existing variant, delete previous variant. Deukhoofd 2020-02-09 12:04:59 +01:00
  • 3f57051219 Made CreatureSpecies destructor virtual. Deukhoofd 2020-02-09 10:47:18 +01:00
  • f973259bef Force insertion when setting species variant, as to prevent memory leaks. Deukhoofd 2020-02-08 20:16:47 +01:00
  • 3303dfd82d Move header files to CreatureLib subdirectory. Deukhoofd 2020-02-08 19:04:04 +01:00
  • 52d24922ff Make type library work case insensitive. Deukhoofd 2020-02-08 17:50:27 +01:00
  • 925763752f Add function to set variants for a species, and a function to get the count of species in a species library. Deukhoofd 2020-02-08 14:52:45 +01:00
  • e45a36d78e Move Script ownership to script holder, added OnRemove script hook. Deukhoofd 2020-02-05 14:52:50 +01:00
  • cd7ddcf78e Actually implement handling of StopBeforeAttack script hook Deukhoofd 2020-02-03 19:11:44 +01:00
  • c6620021a7 Fix issues. Deukhoofd 2020-02-03 18:32:03 +01:00
  • 59f7d3aa4f Make Script functions pass out parameters by pointer instead of reference. Deukhoofd 2020-02-03 18:27:39 +01:00
  • c4d0a73df6 Remove display script hook functions, replace them with easy to use interface on Creature class. Deukhoofd 2020-02-03 16:49:28 +01:00
  • 07700008f7 Slight tweaks for CreatureException, add tests to see if what() works. Deukhoofd 2020-02-03 13:05:46 +01:00
  • c3b573c7da Initialize Battle pointers with nullptr in Create class. Deukhoofd 2020-02-02 14:39:57 +01:00
  • fc5826edb1 Check whether a battle has been set when calling Damage function. Deukhoofd 2020-02-02 12:34:02 +01:00
  • bb9b9609a6 Implements TryGet functions on several libraries. Deukhoofd 2020-02-01 15:33:44 +01:00
  • dba271681d Change LibrarySettings to be a pointer instead of value, to allow for overriding in implementations. Deukhoofd 2020-02-01 13:30:51 +01:00
  • 7e0a1ec033 Make SpeciesVariant virtual Deukhoofd 2020-01-26 13:11:50 +01:00
  • 23c4e89c2d Removed unused function from ExecutingAttack Deukhoofd 2020-01-26 13:10:45 +01:00
  • faaafb5e1d Make AttackData polymorphic Deukhoofd 2020-01-25 13:09:09 +01:00
  • 1256d7d2e3 Add virtual modifiers to LearnedAttack.hpp Deukhoofd 2020-01-25 12:37:05 +01:00
  • 15523a18a5 Return item name by reference instead of value. Deukhoofd 2020-01-19 13:00:08 +01:00
  • cc46cd46a7 Commit TurnHandler from earlier revert. Deukhoofd 2020-01-18 13:44:02 +01:00
  • d66bcee979 Change AttackData type to byte instead of string. Deukhoofd 2020-01-18 13:41:01 +01:00
  • e3bbc369fc Revert "Make Script functions use pointers for out variables, instead of references." Deukhoofd 2020-01-18 13:38:47 +01:00
  • b02577554f Remove GetProperty macro, as it wasn't that intuitive, and caused issues later. Deukhoofd 2020-01-12 17:04:42 +01:00