Better handling of filling empty slots.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-12-07 12:13:12 +01:00
parent 345af31464
commit 57f16bc420
10 changed files with 80 additions and 31 deletions

View File

@@ -15,6 +15,10 @@ namespace CreatureLib::Battling {
uint8_t GetSideIndex() const { return _side; }
uint8_t GetCreatureIndex() const { return _creature; }
bool operator==(const CreatureIndex& rhs) const { return (_side == rhs._side) && (_creature == rhs._creature); }
bool operator!=(const CreatureIndex& rhs) const { return !operator==(rhs); }
};
}