Store CreatureIndex on Creature, includes helper function to get a creatures party from a battle.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2021-05-08 11:53:32 +02:00
parent 305eb5efb2
commit 188e88ab80
7 changed files with 35 additions and 7 deletions

View File

@@ -63,6 +63,9 @@ namespace CreatureLib::Battling {
}
}
}
inline bool HasCreature(ArbUt::BorrowedPtr<Creature> creature) const noexcept {
return _party.Contains(creature);
}
virtual CreatureParty* Clone() const {
auto party = new CreatureParty(_party.Count());