Used ClangFormat style guide I'm happy with.
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:
@@ -1,13 +1,12 @@
|
||||
#ifndef CREATURELIB_CREATECREATURE_HPP
|
||||
#define CREATURELIB_CREATECREATURE_HPP
|
||||
|
||||
|
||||
#include "../../Library/DataLibrary.hpp"
|
||||
#include "Creature.hpp"
|
||||
|
||||
namespace CreatureLib::Battling {
|
||||
class CreateCreature {
|
||||
const BattleLibrary *_library;
|
||||
const BattleLibrary* _library;
|
||||
std::string _species;
|
||||
std::string _variant = "default";
|
||||
uint8_t _level;
|
||||
@@ -28,7 +27,7 @@ namespace CreatureLib::Battling {
|
||||
uint8_t _speedExperience = 0;
|
||||
|
||||
std::string _talent = "";
|
||||
Library::Gender _gender = static_cast<Library::Gender>(-1);
|
||||
Library::Gender _gender = static_cast<Library::Gender>(-1);
|
||||
uint8_t _coloring = 0;
|
||||
std::string _heldItem = "";
|
||||
uint32_t _identifier = 0;
|
||||
@@ -37,26 +36,22 @@ namespace CreatureLib::Battling {
|
||||
bool _hasCreated;
|
||||
|
||||
public:
|
||||
CreateCreature(const BattleLibrary *library, std::string species, uint8_t level)
|
||||
: _library(library), _species(std::move(species)), _level(level)
|
||||
{
|
||||
}
|
||||
CreateCreature(const BattleLibrary* library, std::string species, uint8_t level)
|
||||
: _library(library), _species(std::move(species)), _level(level) {}
|
||||
|
||||
CreateCreature* WithVariant(std::string variant);
|
||||
CreateCreature* WithNickname(std::string nickname);
|
||||
CreateCreature* WithStatPotential(Core::Statistic stat, uint32_t value);
|
||||
CreateCreature* WithStatPotentials(uint32_t health, uint32_t physAttack, uint32_t physDefense, uint32_t magAttack,
|
||||
uint32_t magDefense,uint32_t speed);
|
||||
CreateCreature* WithStatPotentials(uint32_t health, uint32_t physAttack, uint32_t physDefense,
|
||||
uint32_t magAttack, uint32_t magDefense, uint32_t speed);
|
||||
CreateCreature* WithStatExperience(Core::Statistic stat, uint32_t value);
|
||||
CreateCreature* WithStatExperiences(uint32_t health, uint32_t physAttack, uint32_t physDefense, uint32_t magAttack,
|
||||
uint32_t magDefense,uint32_t speed);
|
||||
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();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif //CREATURELIB_CREATECREATURE_HPP
|
||||
#endif // CREATURELIB_CREATECREATURE_HPP
|
||||
|
||||
Reference in New Issue
Block a user