aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_rooms_glyphs.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-22 23:20:14 -0400
committerPaul Gilbert2016-07-15 19:24:08 -0400
commit5a328ce28f4edfe3da0c261d7abc884aa6af94a2 (patch)
tree54e4c4ef2d724902310e0b9c1f08a30b52811972 /engines/titanic/pet_control/pet_rooms_glyphs.cpp
parent452274dae027933b2199cd26236f1a5e908c4275 (diff)
downloadscummvm-rg350-5a328ce28f4edfe3da0c261d7abc884aa6af94a2.tar.gz
scummvm-rg350-5a328ce28f4edfe3da0c261d7abc884aa6af94a2.tar.bz2
scummvm-rg350-5a328ce28f4edfe3da0c261d7abc884aa6af94a2.zip
TITANIC: Completed CPetRooms methods
Diffstat (limited to 'engines/titanic/pet_control/pet_rooms_glyphs.cpp')
-rw-r--r--engines/titanic/pet_control/pet_rooms_glyphs.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
index 1048180369..786049791e 100644
--- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp
+++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp
@@ -23,6 +23,7 @@
#include "titanic/pet_control/pet_rooms_glyphs.h"
#include "titanic/pet_control/pet_section.h"
#include "titanic/support/screen_manager.h"
+#include "titanic/room_flags.h"
namespace Titanic {
@@ -83,6 +84,12 @@ void CPetRoomsGlyph::proc39() {
}
+void CPetRoomsGlyph::changeLocation(int newClassNum) {
+ CRoomFlags roomFlags(_roomFlags);
+ roomFlags.changeLocation(newClassNum);
+ _roomFlags = roomFlags.get();
+}
+
/*------------------------------------------------------------------------*/
void CPetRoomsGlyphs::save2(SimpleFile *file, int indent) const {