Support for learnable moves
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
11
src/Library/CreatureData/LearnableAttacks.cpp
Normal file
11
src/Library/CreatureData/LearnableAttacks.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "LearnableAttacks.hpp"
|
||||
|
||||
using namespace CreatureLib::Library;
|
||||
|
||||
void LearnableAttacks::AddLevelMove(uint8_t level, AttackData *attack) {
|
||||
_learnedByLevel[level].push_back(attack);
|
||||
}
|
||||
|
||||
const std::vector<const AttackData *> &LearnableAttacks::GetMovesForLevel(uint8_t level) const {
|
||||
return _learnedByLevel[level];
|
||||
}
|
||||
Reference in New Issue
Block a user