Support natures for Pokemon.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-01-02 20:26:01 +01:00
parent 800147c339
commit 02ab4b3272
9 changed files with 65 additions and 12 deletions

View File

@@ -14,6 +14,7 @@ namespace PkmnLib::Battling {
std::string _nickname = "";
std::string _ability = "";
uint8_t _nature = 255;
CreatureLib::Library::Gender _gender = static_cast<CreatureLib::Library::Gender>(-1);
uint8_t _coloring = 0;
std::string _heldItem = "";
@@ -38,9 +39,10 @@ namespace PkmnLib::Battling {
CreatePokemon(const BattleLibrary* library, std::string species, uint8_t level)
: _library(library), _species(std::move(species)), _level(level) {}
CreatePokemon* RandomizeIndividualValues(CreatureLib::Core::Random rand = CreatureLib::Core::Random());
CreatePokemon* SetIndividualValue(CreatureLib::Core::Statistic stat, uint8_t value);
CreatePokemon* SetEffortValue(CreatureLib::Core::Statistic stat, uint8_t value);
CreatePokemon* WithRandomIndividualValues(CreatureLib::Core::Random rand = CreatureLib::Core::Random());
CreatePokemon* WithIndividualValue(CreatureLib::Core::Statistic stat, uint8_t value);
CreatePokemon* WithEffortValue(CreatureLib::Core::Statistic stat, uint8_t value);
CreatePokemon* WithNature(const std::string& nature);
Pokemon* Build();
};