Support learning moves with CreateCreature class
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user