24 lines
807 B
C++
24 lines
807 B
C++
#ifndef PKMNLIB_LEARNABLEMOVES_HPP
|
|
#define PKMNLIB_LEARNABLEMOVES_HPP
|
|
|
|
#include <CreatureLib/Library/CreatureData/LearnableAttacks.hpp>
|
|
#include "../Moves/MoveData.hpp"
|
|
|
|
namespace PkmnLib::Library {
|
|
class LearnableMoves final : public CreatureLib::Library::LearnableAttacks {
|
|
ArbUt::List<ArbUt::BorrowedPtr<const MoveData>> _eggMoves;
|
|
|
|
public:
|
|
explicit LearnableMoves(level_int_t levelAttackCapacity) : LearnableAttacks(levelAttackCapacity) {}
|
|
|
|
void AddEggMove(const ArbUt::BorrowedPtr<const MoveData>& move) noexcept {
|
|
if (!_eggMoves.Contains(move))
|
|
_eggMoves.Append(move);
|
|
}
|
|
|
|
const ArbUt::List<ArbUt::BorrowedPtr<const MoveData>>& GetEggMoves() const noexcept { return _eggMoves; }
|
|
};
|
|
}
|
|
|
|
#endif // PKMNLIB_LEARNABLEMOVES_HPP
|