Support for learnable moves
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-10-24 11:04:19 +02:00
parent cfb7663d78
commit bb8978314f
15 changed files with 155 additions and 23 deletions

View 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];
}