aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_control.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-19 11:03:03 -0400
committerPaul Gilbert2016-03-19 11:03:03 -0400
commitd86941f8c6b497f2d3d8409c2628af88bc600dae (patch)
tree7364693345333bc0fcc0e92291f3a8c04d46a19a /engines/titanic/pet_control/pet_control.cpp
parentf1d674c745ba117e1e62ff6fa3ebb8a7cace3615 (diff)
downloadscummvm-rg350-d86941f8c6b497f2d3d8409c2628af88bc600dae.tar.gz
scummvm-rg350-d86941f8c6b497f2d3d8409c2628af88bc600dae.tar.bz2
scummvm-rg350-d86941f8c6b497f2d3d8409c2628af88bc600dae.zip
TITANIC: Implement preEnterView and enterView
Diffstat (limited to 'engines/titanic/pet_control/pet_control.cpp')
-rw-r--r--engines/titanic/pet_control/pet_control.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp
index 7ed223d595..a61773d319 100644
--- a/engines/titanic/pet_control/pet_control.cpp
+++ b/engines/titanic/pet_control/pet_control.cpp
@@ -21,6 +21,8 @@
*/
#include "titanic/pet_control/pet_control.h"
+#include "titanic/game_manager.h"
+#include "titanic/game_state.h"
namespace Titanic {
@@ -49,10 +51,6 @@ void CPetControl::load(SimpleFile *file) {
CGameObject::load(file);
}
-void CPetControl::postLoad() {
- // TODO
-}
-
bool CPetControl::isValid() const {
return _sub1.isValid() && _sub2.isValid()
&& _sub3.isValid() && _sub4.isValid()
@@ -82,5 +80,17 @@ void CPetControl::saveSubObjects(SimpleFile *file, int indent) const {
_sub8.save(file, indent);
}
+void CPetControl::postLoad() {
+ warning("TODO: CPetControl::postLoad");
+}
+
+void CPetControl::enterNode(CNodeItem *node) {
+ getGameManager()->_gameState.enterNode();
+}
+
+void CPetControl::enterRoom(CRoomItem *room) {
+ _sub2.enterRoom(room);
+ _sub3.enterRoom(room);
+}
} // End of namespace Titanic