e4b9550efa
Make all individual scripts smart pointers.Deukhoofd2020-06-02 13:43:44 +02:00
dba1275813
Move ScriptIterator reset to get call instead of inside Macro.Deukhoofd2020-06-02 13:21:23 +02:00
f898698f49
Use smart pointers for BattleSide.Deukhoofd2020-06-02 13:06:24 +02:00
49e8ff055d
Use smart pointer for BattleParty.Deukhoofd2020-06-02 12:16:26 +02:00
18203138d1
Use algorithm for IsResponsibleForIndex check.Deukhoofd2020-06-02 12:14:49 +02:00
69f6a89c0d
Make CreatureParty use smart pointers.Deukhoofd2020-05-31 19:04:40 +02:00
01f6e59cb6
Make battle class fields all smart pointers.Deukhoofd2020-05-31 19:01:45 +02:00
29cb4eac37
Make ChoiceQueue use smart pointers.Deukhoofd2020-05-31 18:00:39 +02:00
ff181204ae
Make LearnedAttack of Creature a smart pointer.Deukhoofd2020-05-31 17:26:39 +02:00
a7069a5960
Ensure Attack script is deleted when not taken by ExecutingAttack.Deukhoofd2020-05-29 20:05:05 +02:00
20be2815ce
Revert "Clean up choices if they can't be used."Deukhoofd2020-05-29 19:29:25 +02:00
04cef8b6e2
Clean up choices if they can't be used.Deukhoofd2020-05-29 19:25:46 +02:00
d51919c74f
Make ExecutingAttack a local variable while being used, to ensure it's always cleaned up.Deukhoofd2020-05-29 18:49:48 +02:00
a9740cb1eb
Fixed memory leak in ExecutingAttack.Deukhoofd2020-05-27 18:29:52 +02:00
fcc6f2214e
Make ExecutingAttack have raw pointer array HitData, instead of a List. This is a very hot segment of code, and removing surrounding abstractions can give us a decent amount of performance.Deukhoofd2020-05-27 18:26:09 +02:00
90e7a699bc
Remove const qualification of ScriptResolver.Deukhoofd2020-05-26 20:53:06 +02:00
16b67b0d54
Make most of the battle library use unique_ptr.Deukhoofd2020-05-26 15:11:04 +02:00
e46117ea06
Fixes DataLibrary not having correct const definitions.Deukhoofd2020-05-26 15:02:41 +02:00
ecf1c47a53
Make Growth Rate library use unique_ptrDeukhoofd2020-05-26 14:58:16 +02:00
aba56d2fdd
Make Attack secondary effect a unique_ptr.Deukhoofd2020-05-26 14:41:43 +02:00
8418c814b4
Make SpeciesVariants smart pointers.Deukhoofd2020-05-26 14:35:18 +02:00
36208da2fb
Remove shared_ptr, instead use borrowed_ptr to more accurately depict ownership of the objects in the BaseLibraries.Deukhoofd2020-05-26 14:13:30 +02:00
d82792e27a
Make BaseLibraries use shared_ptr.Deukhoofd2020-05-24 20:57:22 +02:00
c056ddc6b3
Adds getter for parties to battle.Deukhoofd2020-05-24 12:57:12 +02:00
2e860192c7
Support for blocking a creature from gaining experience, don't give experience when a creature is fainted.Deukhoofd2020-05-20 15:18:27 +02:00
6c40f4291d
Fixed C Interface for DamageLibrary returning floats instead of expected bytes.Deukhoofd2020-05-20 15:02:53 +02:00