aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/broken_pellerator.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-16 20:18:55 -0400
committerPaul Gilbert2017-08-16 20:18:55 -0400
commit6c667a013dd6f2fdd4812694e19e472869b5e832 (patch)
treeb934fd774701fcb58595869457d11297467d9c71 /engines/titanic/game/broken_pellerator.cpp
parent73764581374c5aca488b60a668f2810691f89c39 (diff)
downloadscummvm-rg350-6c667a013dd6f2fdd4812694e19e472869b5e832.tar.gz
scummvm-rg350-6c667a013dd6f2fdd4812694e19e472869b5e832.tar.bz2
scummvm-rg350-6c667a013dd6f2fdd4812694e19e472869b5e832.zip
TITANIC: Renamings for Broken Pellerator fields
Diffstat (limited to 'engines/titanic/game/broken_pellerator.cpp')
-rw-r--r--engines/titanic/game/broken_pellerator.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/engines/titanic/game/broken_pellerator.cpp b/engines/titanic/game/broken_pellerator.cpp
index d3664acccd..5de728481b 100644
--- a/engines/titanic/game/broken_pellerator.cpp
+++ b/engines/titanic/game/broken_pellerator.cpp
@@ -53,16 +53,16 @@ void CBrokenPellerator::load(SimpleFile *file) {
}
bool CBrokenPellerator::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
- if (_v1) {
- changeView(_v2 ? _string5 : _string4);
+ if (_pelleratorOpen) {
+ changeView(_gottenHose ? _string5 : _string4);
} else {
- if (_v2) {
+ if (_gottenHose) {
playMovie(28, 43, 0);
} else {
playMovie(0, 14, MOVIE_NOTIFY_OBJECT);
}
- _v1 = true;
+ _pelleratorOpen = true;
}
return true;
@@ -71,7 +71,7 @@ bool CBrokenPellerator::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
bool CBrokenPellerator::LeaveViewMsg(CLeaveViewMsg *msg) {
CString name = msg->_newView->getNodeViewName();
if (name == "Node 3.S" || name == "Node 3.N") {
- _v1 = false;
+ _pelleratorOpen = false;
loadFrame(0);
}
@@ -80,32 +80,32 @@ bool CBrokenPellerator::LeaveViewMsg(CLeaveViewMsg *msg) {
bool CBrokenPellerator::ActMsg(CActMsg *msg) {
if (msg->_action == "PlayerGetsHose") {
- _v2 = 1;
+ _gottenHose = true;
loadFrame(43);
CStatusChangeMsg statusMsg;
statusMsg.execute("PickupHose");
} else {
- _exitAction = 0;
+ _closeAction = CLOSE_NONE;
bool closeFlag = msg->_action == "Close";
if (msg->_action == "CloseLeft") {
closeFlag = true;
- _exitAction = 1;
+ _closeAction = CLOSE_LEFT;
}
if (msg->_action == "CloseRight") {
closeFlag = true;
- _exitAction = 2;
+ _closeAction = CLOSE_RIGHT;
}
if (closeFlag) {
- if (_v1) {
- _v1 = false;
- if (_v2)
+ if (_pelleratorOpen) {
+ _pelleratorOpen = false;
+ if (_gottenHose)
playMovie(43, 57, MOVIE_NOTIFY_OBJECT);
else
playMovie(14, 28, MOVIE_NOTIFY_OBJECT);
} else {
- switch (_exitAction) {
+ switch (_closeAction) {
case 1:
changeView(_exitLeftView);
break;
@@ -116,7 +116,7 @@ bool CBrokenPellerator::ActMsg(CActMsg *msg) {
break;
}
- _exitAction = 0;
+ _closeAction = CLOSE_NONE;
}
}
}
@@ -139,7 +139,7 @@ bool CBrokenPellerator::MovieEndMsg(CMovieEndMsg *msg) {
statusMsg.execute("PickUpHose");
}
- switch (_exitAction) {
+ switch (_closeAction) {
case 1:
changeView(_exitLeftView);
break;