Change AttackData type to byte instead of string.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -10,7 +10,7 @@ namespace CreatureLib::Library {
|
||||
class AttackData {
|
||||
protected:
|
||||
const std::string _name;
|
||||
const std::string _type;
|
||||
uint8_t _type;
|
||||
AttackCategory _category;
|
||||
uint8_t _basePower;
|
||||
uint8_t _accuracy;
|
||||
@@ -20,11 +20,11 @@ namespace CreatureLib::Library {
|
||||
std::unordered_set<std::string> _flags;
|
||||
|
||||
public:
|
||||
AttackData(std::string name, std::string type, AttackCategory category, uint8_t power, uint8_t accuracy,
|
||||
AttackData(std::string name, uint8_t type, AttackCategory category, uint8_t power, uint8_t accuracy,
|
||||
uint8_t baseUsage, AttackTarget target, uint8_t priority, std::unordered_set<std::string> flags);
|
||||
|
||||
inline const std::string& GetName() const { return _name; }
|
||||
inline const std::string& GetType() const { return _type; }
|
||||
inline const uint8_t GetType() const { return _type; }
|
||||
inline AttackCategory GetCategory() const { return _category; }
|
||||
inline uint8_t GetBasePower() const { return _basePower; }
|
||||
inline uint8_t GetAccuracy() const { return _accuracy; }
|
||||
|
||||
Reference in New Issue
Block a user