diff options
Diffstat (limited to 'engines/xeen/character.h')
-rw-r--r-- | engines/xeen/character.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/xeen/character.h b/engines/xeen/character.h index b45cfaf5ad..43531c74cf 100644 --- a/engines/xeen/character.h +++ b/engines/xeen/character.h @@ -166,6 +166,16 @@ public: Character(const Character &src); /** + * Equality operator + */ + bool operator==(const Character &src) const { return src._rosterId == _rosterId; } + + /** + * Inequality operator + */ + bool operator!=(const Character &src) const { return src._rosterId != _rosterId; } + + /** * Clears the data for a character */ void clear(); @@ -346,6 +356,14 @@ public: void clearConditions(); }; +class CharacterArray : public Common::Array<Character> { +public: + /** + * Returns the index of a given character in the array + */ + int indexOf(const Character &c); +}; + } // End of namespace Xeen #endif /* XEEN_CHARACTER_H */ |