aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_rooms_glyphs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-22 20:43:54 -0400
committerPaul Gilbert2016-07-15 19:24:04 -0400
commit452274dae027933b2199cd26236f1a5e908c4275 (patch)
treea5fe0f1e8ccc2b20cb00e33e24be8f7b302d4341 /engines/titanic/pet_control/pet_rooms_glyphs.cpp
parent5aff1d01b4088979e207c434476fa7ca3f6a644f (diff)
downloadscummvm-rg350-452274dae027933b2199cd26236f1a5e908c4275.tar.gz
scummvm-rg350-452274dae027933b2199cd26236f1a5e908c4275.tar.bz2
scummvm-rg350-452274dae027933b2199cd26236f1a5e908c4275.zip
TITANIC: Flesh out PET Rooms adding glyphs
Diffstat (limited to 'engines/titanic/pet_control/pet_rooms_glyphs.cpp')
-rw-r--r--engines/titanic/pet_control/pet_rooms_glyphs.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
index 71fdc5662d..1048180369 100644
--- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp
+++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
@@ -102,4 +102,14 @@ CPetRoomsGlyph *CPetRoomsGlyphs::findMode1() const {
return nullptr;
}
+CPetRoomsGlyph *CPetRoomsGlyphs::findGlyphByFlags(uint flags) const {
+ for (const_iterator i = begin(); i != end(); ++i) {
+ CPetRoomsGlyph *glyph = static_cast<CPetRoomsGlyph *>(*i);
+ if (glyph->getRoomFlags() == flags)
+ return glyph;
+ }
+
+ return nullptr;
+}
+
} // End of namespace Titanic