Add virtual modifiers to LearnedAttack.hpp
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-01-25 12:37:05 +01:00
parent 15523a18a5
commit 1256d7d2e3
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 6 additions and 4 deletions

View File

@ -15,15 +15,17 @@ namespace CreatureLib::Battling {
LearnedAttack(Library::AttackData* attack, uint8_t maxUses, AttackLearnMethod learnMethod);
LearnedAttack(const Library::AttackData* attack, AttackLearnMethod learnMethod);
virtual ~LearnedAttack() = default;
const Library::AttackData* GetAttack() const;
uint8_t GetMaxUses() const;
uint8_t GetRemainingUses() const;
AttackLearnMethod GetLearnMethod() const;
bool TryUse(uint8_t uses);
void DecreaseUses(uint8_t amount);
void RestoreUses(uint8_t amount);
void RestoreUses();
virtual bool TryUse(uint8_t uses);
virtual void DecreaseUses(uint8_t amount);
virtual void RestoreUses(uint8_t amount);
virtual void RestoreUses();
};
}