Make AttackData polymorphic
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-01-25 13:09:09 +01:00
parent 1256d7d2e3
commit faaafb5e1d
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ namespace CreatureLib::Library {
public:
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);
virtual ~AttackData() = default;
inline const std::string& GetName() const { return _name; }
inline const uint8_t GetType() const { return _type; }