21 lines
604 B
C++
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
|