13 lines
775 B
C++
13 lines
775 B
C++
#include "MoveData.hpp"
|
|
#include <utility>
|
|
PkmnLib::Library::MoveData::MoveData(const std::string& name, const std::string& type,
|
|
PkmnLib::Library::MoveCategory category, uint8_t power, uint8_t accuracy,
|
|
uint8_t baseUsage, CreatureLib::Library::AttackTarget target, uint8_t priority,
|
|
std::unordered_set<std::string> flags)
|
|
: AttackData(name, type, static_cast<CreatureLib::Library::AttackCategory>(category), power, accuracy, baseUsage,
|
|
target, priority, std::move(flags)) {}
|
|
|
|
PkmnLib::Library::MoveCategory PkmnLib::Library::MoveData::GetCategory() const {
|
|
return static_cast<PkmnLib::Library::MoveCategory>(AttackData::GetCategory());
|
|
}
|