PkmnLib/src/Library/Moves/MoveData.cpp

14 lines
883 B
C++
Raw Normal View History

2019-12-29 14:29:52 +00:00
#include "MoveData.hpp"
#include <utility>
PkmnLib::Library::MoveData::MoveData(const Arbutils::CaseInsensitiveConstString& name, uint8_t type,
PkmnLib::Library::MoveCategory category, uint8_t power, uint8_t accuracy,
uint8_t baseUsage, CreatureLib::Library::AttackTarget target, int8_t priority,
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,
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());
}