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,21 @@
#ifndef CREATURELIB_LEARNABLEATTACKS_HPP
#define CREATURELIB_LEARNABLEATTACKS_HPP
#include <vector>
#include "../Attacks/AttackData.hpp"
namespace CreatureLib::Library {
class LearnableAttacks {
std::vector<std::vector<const AttackData*>> _learnedByLevel;
public:
LearnableAttacks(uint8_t maxLevel)
:_learnedByLevel(std::vector<std::vector<const AttackData*>>(maxLevel)){}
void AddLevelMove(uint8_t level, AttackData* attack);
const std::vector<const AttackData*>& GetMovesForLevel(uint8_t level) const;
};
}
#endif //CREATURELIB_LEARNABLEATTACKS_HPP