Add virtual modifiers to LearnedAttack.hpp
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
15523a18a5
commit
1256d7d2e3
|
@ -15,15 +15,17 @@ namespace CreatureLib::Battling {
|
||||||
LearnedAttack(Library::AttackData* attack, uint8_t maxUses, AttackLearnMethod learnMethod);
|
LearnedAttack(Library::AttackData* attack, uint8_t maxUses, AttackLearnMethod learnMethod);
|
||||||
LearnedAttack(const Library::AttackData* attack, AttackLearnMethod learnMethod);
|
LearnedAttack(const Library::AttackData* attack, AttackLearnMethod learnMethod);
|
||||||
|
|
||||||
|
virtual ~LearnedAttack() = default;
|
||||||
|
|
||||||
const Library::AttackData* GetAttack() const;
|
const Library::AttackData* GetAttack() const;
|
||||||
uint8_t GetMaxUses() const;
|
uint8_t GetMaxUses() const;
|
||||||
uint8_t GetRemainingUses() const;
|
uint8_t GetRemainingUses() const;
|
||||||
AttackLearnMethod GetLearnMethod() const;
|
AttackLearnMethod GetLearnMethod() const;
|
||||||
|
|
||||||
bool TryUse(uint8_t uses);
|
virtual bool TryUse(uint8_t uses);
|
||||||
void DecreaseUses(uint8_t amount);
|
virtual void DecreaseUses(uint8_t amount);
|
||||||
void RestoreUses(uint8_t amount);
|
virtual void RestoreUses(uint8_t amount);
|
||||||
void RestoreUses();
|
virtual void RestoreUses();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue