Commit Graph

737 Commits

Author SHA1 Message Date
Deukhoofd 6bffea953d
Implements extern growthrate that uses function pointers. 2020-03-04 15:00:57 +01:00
Deukhoofd 81e173ec1a
C Interface for Lookup GrowthRate. 2020-03-04 09:11:32 +01:00
Deukhoofd 33de8424be
Tweaks and fixes for Item, added C interface. 2020-03-03 19:37:21 +01:00
Deukhoofd 461da76f59
Tweaks and fixes for AttackData, added C interface. 2020-03-02 15:38:18 +01:00
Deukhoofd 81ae0e8454
Make Attack name a ConstString. 2020-03-02 15:29:42 +01:00
Deukhoofd 3bca3c0673
Reworked LearnedAttacks class, added C interface. 2020-03-02 15:23:08 +01:00
Deukhoofd 60cbc80549
C interface for SpeciesVariant. 2020-03-02 14:01:56 +01:00
Deukhoofd 0c1580ade6
Reworked retrieving talent, new method is cleaner and harder to misunderstand. 2020-03-02 13:59:49 +01:00
Deukhoofd bfc049a97c
Fixed wrong __uint8 being used. 2020-03-01 10:19:36 +01:00
Deukhoofd 19316644fc
Very initial work on SpeciesVariant C Interface, slight cleanup of other C Interfaces. 2020-02-29 17:21:36 +01:00
Deukhoofd 5f341ffbb7
Use hash as key for Species variants, added C interface for Species. 2020-02-29 17:00:29 +01:00
Deukhoofd f95c625971
C interfaces for GrowthRateLibrary and TypeLibrary/ 2020-02-29 16:06:47 +01:00
Deukhoofd 70ad3eb838
Tweaks and fixes for TypeLibrary 2020-02-29 16:06:36 +01:00
Deukhoofd 671077259e
Make typelibrary be based around the hash value instead of conststring value. 2020-02-29 15:54:02 +01:00
Deukhoofd 4341efb54c
Support ConstString in TypeLibrary. 2020-02-29 15:42:44 +01:00
Deukhoofd 4866edebab
Make GrowthRate library be key based on uint32, instead of on the ConstString, to save memory. 2020-02-29 15:07:05 +01:00
Deukhoofd b7b54c04e8
Add the baselibrary classes to the C Interface. 2020-02-29 14:52:15 +01:00
Deukhoofd 0a109e37bc
Initial work on creating C interface. 2020-02-29 14:09:03 +01:00
Deukhoofd 5a05a2f4d3
Add ConstString to several other places where context isn't changed much during runtime. 2020-02-28 19:23:24 +01:00
Deukhoofd 469fcfe280
Make item name ConstString. 2020-02-27 18:30:30 +01:00
Deukhoofd 412e0a4d63
Implements ConstString in several core places in the library, improving performance. 2020-02-27 18:23:23 +01:00
Deukhoofd 1d3a8da99e
Change Conan url. 2020-02-27 12:55:32 +01:00
Deukhoofd 6efb7c55e8
Dont include everything statically for Windows build. 2020-02-27 11:44:43 +01:00
Deukhoofd 04009bbb34
Fixes for Windows build. 2020-02-27 11:21:23 +01:00
Deukhoofd 894a644f50
Fixes for .drone file. 2020-02-26 14:10:02 +01:00
Deukhoofd 8b0486e353
Add conan remote for each build. 2020-02-26 13:56:56 +01:00
Deukhoofd 5e6572aca5
Move several classes from Core to Arbutils. 2020-02-26 13:51:16 +01:00
Deukhoofd 428b318baf
Mark ScriptSet.Has as const. 2020-02-23 16:20:11 +01:00
Deukhoofd 3802587313
Added HasVolatileScript function to Creature and Battle. 2020-02-23 16:17:57 +01:00
Deukhoofd 4728be18b2
Fixed conan alias. 2020-02-23 13:48:14 +01:00
Deukhoofd cf7c6291df
Rename conan package. 2020-02-23 13:39:35 +01:00
Deukhoofd 56f5bbf174
Rename conan package. 2020-02-23 13:30:30 +01:00
Deukhoofd d5eae8580f
Add latest alias to conan package. 2020-02-23 13:08:50 +01:00
Deukhoofd a606fbbc7b
Make basic Script class abstract, require implementation of GetName function. 2020-02-23 12:58:13 +01:00
Deukhoofd 5f891cd4ed
Added Remove Volatile functions for battle and creatures. 2020-02-23 11:11:47 +01:00
Deukhoofd 645ba95bbc
Performance improvements for battle and creature AddVolatileScript methods when passing a string as parameter.
Instead of loading a script, then passing it to the ScriptSet class and checking if it already exists before invoking stack, we now check whether the ScriptSet has that script. If one already exists we just invoke stack on it, if not we continue to the process of creating a new script instance.
2020-02-22 16:01:01 +01:00
Deukhoofd 142889ad8a
Add functions to add volatile scripts to Creature.cpp. 2020-02-22 15:53:51 +01:00
Deukhoofd 32584ac406
Fixed Windows build. 2020-02-22 15:11:18 +01:00
Deukhoofd be6b2778a5
Make CreatureException inherit from runtime_error. 2020-02-22 15:07:16 +01:00
Deukhoofd 442d6cd5b1
Added Helper function to ChoiceQueue to move a specific creature's choice up next. 2020-02-22 14:16:38 +01:00
Deukhoofd d4fd7282f5
Move ScriptCategory enum outside of class scope of ScriptResolver. 2020-02-20 13:05:15 +01:00
Deukhoofd f22c23d593
Make ScriptMacro a header instead of source file. 2020-02-19 15:32:43 +01:00
Deukhoofd b886f0aebf
Add Damage library script hooks. 2020-02-19 10:12:36 +01:00
Deukhoofd 5e29f50ea1
Mark SetHeldItem with item object as const ptr. 2020-02-17 17:24:55 +01:00
Deukhoofd ce31309b2a
Functions to set Creature Held Item, and helper function to check whether Creature is holding a specific held item. 2020-02-17 17:16:28 +01:00
Deukhoofd 75bce0e329
Add virtual destructor to CreatureParty. 2020-02-17 15:52:59 +01:00
Deukhoofd 445f7eb3d5
Add virtual destructor to Battle. 2020-02-17 15:52:02 +01:00
Deukhoofd da90c3d59e
Reset active scripts on Creature when battle is set. 2020-02-17 10:05:32 +01:00
Deukhoofd 17552c33ca
Only get active scripts from side if side exists. 2020-02-17 09:57:15 +01:00
Deukhoofd 65f054bfab
Added functions for battle to manipulate volatile scripts. 2020-02-16 17:44:41 +01:00