Fix build by adding get functions for otherwise inaccessible fields.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2019-10-23 19:21:21 +02:00
parent cdaa056810
commit cfb7663d78
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 18 additions and 2 deletions

View File

@ -5,3 +5,15 @@ CreatureLib::Library::LearnedAttack::LearnedAttack(CreatureLib::Library::AttackD
{ {
} }
const CreatureLib::Library::AttackData *CreatureLib::Library::LearnedAttack::GetAttack() const {
return _attack;
}
uint8_t CreatureLib::Library::LearnedAttack::GetMaxUses() const {
return _maxUses;
}
uint8_t CreatureLib::Library::LearnedAttack::GetRemainingUses() const {
return _remainingUses;
}

View File

@ -6,10 +6,14 @@
namespace CreatureLib::Library{ namespace CreatureLib::Library{
class LearnedAttack { class LearnedAttack {
const AttackData* _attack; const AttackData* _attack;
const uint8_t _maxUses; uint8_t _maxUses;
const uint8_t _remainingUses; uint8_t _remainingUses;
public: public:
LearnedAttack(AttackData* attack, uint8_t maxUses); LearnedAttack(AttackData* attack, uint8_t maxUses);
const AttackData* GetAttack() const;
uint8_t GetMaxUses() const;
uint8_t GetRemainingUses() const;
}; };
} }