Make ExecutingAttack be a pointer, as we probably want to keep it around after it has finished executing.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-11-09 13:18:45 +01:00
parent 96d1b6251f
commit f72fd5f905
4 changed files with 25 additions and 22 deletions

View File

@@ -43,7 +43,7 @@ namespace CreatureLib::Battling {
}
TargetData()= default;
HitData& GetHit(uint8_t index){
const HitData& GetHit(uint8_t index) const{
return _hits[index];
}
@@ -51,11 +51,11 @@ namespace CreatureLib::Battling {
return &_hits[index];
}
uint8_t GetNumberOfHits(){
uint8_t GetNumberOfHits() const{
return _hits.size();
}
bool IsHit(){
bool IsHit() const{
return _isHit;
}