Support learning moves with CreateCreature class
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-10-25 20:08:25 +02:00
parent 9588236183
commit 7d6de3557c
6 changed files with 38 additions and 3 deletions

View File

@@ -32,6 +32,9 @@ namespace CreatureLib::Battling {
uint8_t _coloring = 0;
std::string _heldItem = "";
uint32_t _identifier = 0;
std::vector<std::tuple<const Library::AttackData*, AttackLearnMethod>> _attacks = {};
bool _hasCreated;
public:
CreateCreature(const BattleLibrary *library, std::string species, uint8_t level)
@@ -48,6 +51,7 @@ namespace CreatureLib::Battling {
CreateCreature* WithStatExperiences(uint32_t health, uint32_t physAttack, uint32_t physDefense, uint32_t magAttack,
uint32_t magDefense,uint32_t speed);
CreateCreature* WithGender(Library::Gender gender);
CreateCreature* WithAttack(const std::string& attackName, AttackLearnMethod learnMethod);
Creature* Create();