2019-12-29 14:29:52 +00:00
|
|
|
#include "MoveData.hpp"
|
2019-12-31 11:35:48 +00:00
|
|
|
#include <utility>
|
2020-01-18 13:35:08 +00:00
|
|
|
PkmnLib::Library::MoveData::MoveData(const std::string& name, uint8_t type,
|
2019-12-31 11:35:48 +00:00
|
|
|
PkmnLib::Library::MoveCategory category, uint8_t power, uint8_t accuracy,
|
2020-02-12 09:12:29 +00:00
|
|
|
uint8_t baseUsage, CreatureLib::Library::AttackTarget target, int8_t priority,
|
2020-02-27 17:59:15 +00:00
|
|
|
std::unordered_set<Arbutils::CaseInsensitiveConstString> flags)
|
2019-12-29 14:29:52 +00:00
|
|
|
: AttackData(name, type, static_cast<CreatureLib::Library::AttackCategory>(category), power, accuracy, baseUsage,
|
2019-12-31 11:35:48 +00:00
|
|
|
target, priority, std::move(flags)) {}
|
2019-12-29 14:29:52 +00:00
|
|
|
|
|
|
|
PkmnLib::Library::MoveCategory PkmnLib::Library::MoveData::GetCategory() const {
|
|
|
|
return static_cast<PkmnLib::Library::MoveCategory>(AttackData::GetCategory());
|
|
|
|
}
|