diff options
author | Paul Gilbert | 2018-03-30 20:08:31 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-30 20:08:31 -0400 |
commit | eca76ea91ec0b932d90d20608db2f4c1b9aae1cf (patch) | |
tree | 867935f98f76058e274071b259cc3f9eb856848b /engines/xeen/character.h | |
parent | 83412c91af9d66084923150df2bb1ded3a67824a (diff) | |
download | scummvm-rg350-eca76ea91ec0b932d90d20608db2f4c1b9aae1cf.tar.gz scummvm-rg350-eca76ea91ec0b932d90d20608db2f4c1b9aae1cf.tar.bz2 scummvm-rg350-eca76ea91ec0b932d90d20608db2f4c1b9aae1cf.zip |
XEEN: Fix highlighting of character when Cast Spell dialog is opened
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 */ |