This commit is contained in:
1
src/Library/Species/LearnableMoves.cpp
Normal file
1
src/Library/Species/LearnableMoves.cpp
Normal file
@@ -0,0 +1 @@
|
||||
#include "LearnableMoves.hpp"
|
||||
25
src/Library/Species/LearnableMoves.hpp
Normal file
25
src/Library/Species/LearnableMoves.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef PKMNLIB_LEARNABLEMOVES_HPP
|
||||
#define PKMNLIB_LEARNABLEMOVES_HPP
|
||||
|
||||
#include <Arbutils/Collections/List.hpp>
|
||||
#include <Arbutils/Memory/BorrowedPtr.hpp>
|
||||
#include <CreatureLib/Library/CreatureData/LearnableAttacks.hpp>
|
||||
#include "../Moves/MoveData.hpp"
|
||||
|
||||
namespace PkmnLib::Library {
|
||||
class LearnableMoves : CreatureLib::Library::LearnableAttacks {
|
||||
ArbUt::List<ArbUt::BorrowedPtr<const MoveData>> _eggMoves;
|
||||
|
||||
public:
|
||||
explicit LearnableMoves(size_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
|
||||
Reference in New Issue
Block a user