20 lines
749 B
C++
20 lines
749 B
C++
#ifndef PKMNLIB_LEARNEDMOVE_HPP
|
|
#define PKMNLIB_LEARNEDMOVE_HPP
|
|
|
|
#include <CreatureLib/Battling/Models/LearnedAttack.hpp>
|
|
#include "../../Library/Moves/MoveData.hpp"
|
|
namespace PkmnLib::Battling {
|
|
class LearnedMove : public CreatureLib::Battling::LearnedAttack {
|
|
public:
|
|
LearnedMove(const ArbUt::BorrowedPtr<const Library::MoveData>& move,
|
|
CreatureLib::Battling::AttackLearnMethod learnMethod)
|
|
: CreatureLib::Battling::LearnedAttack(move.As<const CreatureLib::Library::AttackData>(), learnMethod) {}
|
|
|
|
const ArbUt::BorrowedPtr<const Library::MoveData> GetMoveData() const {
|
|
return GetAttack().ForceAs<const Library::MoveData>();
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif // PKMNLIB_LEARNEDMOVE_HPP
|