CreatureLib/src/Library/CreatureData/LearnableAttacks.hpp
Deukhoofd a8730d983f
All checks were successful
continuous-integration/drone/push Build is passing
Used ClangFormat style guide I'm happy with.
2019-11-28 12:55:22 +01:00

21 lines
604 B
C++

#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