Make AttackData polymorphic
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:
parent
1256d7d2e3
commit
faaafb5e1d
@ -22,6 +22,7 @@ namespace CreatureLib::Library {
|
|||||||
public:
|
public:
|
||||||
AttackData(std::string name, uint8_t 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);
|
uint8_t baseUsage, AttackTarget target, uint8_t priority, std::unordered_set<std::string> flags);
|
||||||
|
virtual ~AttackData() = default;
|
||||||
|
|
||||||
inline const std::string& GetName() const { return _name; }
|
inline const std::string& GetName() const { return _name; }
|
||||||
inline const uint8_t GetType() const { return _type; }
|
inline const uint8_t GetType() const { return _type; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user