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:
21
src/Library/CreatureData/LearnableAttacks.hpp
Normal file
21
src/Library/CreatureData/LearnableAttacks.hpp
Normal 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
|
||||
Reference in New Issue
Block a user