2019-12-29 14:29:52 +00:00
|
|
|
#include "MoveData.hpp"
|
2019-12-31 11:35:48 +00:00
|
|
|
#include <utility>
|
2020-04-06 18:03:44 +00:00
|
|
|
PkmnLib::Library::MoveData::MoveData(const Arbutils::CaseInsensitiveConstString& 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-04-06 18:03:44 +00:00
|
|
|
const CreatureLib::Library::SecondaryEffect& effect,
|
|
|
|
std::unordered_set<uint32_t> flags)
|
2019-12-29 14:29:52 +00:00
|
|
|
: AttackData(name, type, static_cast<CreatureLib::Library::AttackCategory>(category), power, accuracy, baseUsage,
|
2020-04-06 18:03:44 +00:00
|
|
|
target, priority, effect, 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());
|
|
|
|
}
|