Initial support for setting battle choices.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-10-29 11:19:25 +01:00
parent 3938500595
commit 99315174a8
12 changed files with 234 additions and 5 deletions

View File

@@ -8,6 +8,7 @@
namespace CreatureLib::Battling{
// Forward declare battle class
class Battle;
class BattleSide;
class Creature {
GetProperty(const Library::CreatureSpecies*, Species);
@@ -29,6 +30,7 @@ namespace CreatureLib::Battling{
Core::StatisticSet<uint32_t > _boostedStats;
Battle* _battle;
BattleSide* _side;
BattleLibrary* _library;
std::string _nickname = "";
@@ -46,6 +48,11 @@ namespace CreatureLib::Battling{
void ChangeLevel(int8_t amount);
void SetBattleData(Battle* battle, BattleSide* side);
Battle* GetBattle() const;
BattleSide* GetBattleSide() const;
//region Stat APIs
void SetBattle(Battle* battle);