diff options
author | Strangerke | 2012-06-23 18:56:08 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-28 17:36:57 +0200 |
commit | b2d49cef83d88769eb80df02171be49e0adeec75 (patch) | |
tree | 1496b3da6c8189167245ff66a69c9364b6af79e3 /engines | |
parent | 2832980e9290a4d0e2142576372cf2ed3962d7b6 (diff) | |
download | scummvm-rg350-b2d49cef83d88769eb80df02171be49e0adeec75.tar.gz scummvm-rg350-b2d49cef83d88769eb80df02171be49e0adeec75.tar.bz2 scummvm-rg350-b2d49cef83d88769eb80df02171be49e0adeec75.zip |
LILLIPUT: More renaming
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lilliput/lilliput.cpp | 25 | ||||
-rw-r--r-- | engines/lilliput/lilliput.h | 2 | ||||
-rw-r--r-- | engines/lilliput/script.cpp | 4 | ||||
-rw-r--r-- | engines/lilliput/script.h | 3 |
4 files changed, 17 insertions, 17 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp index bb220ca825..be9f42ead3 100644 --- a/engines/lilliput/lilliput.cpp +++ b/engines/lilliput/lilliput.cpp @@ -134,7 +134,7 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd) _soundHandler = new LilliputSound(this); _handleOpcodeReturnCode = 0; - _bool12FCE = false; + _mouthSelected = false; _selectedCharacterId = -1; _numCharactersToDisplay = 0; _nextDisplayCharacterPos = Common::Point(0, 0); @@ -983,7 +983,7 @@ void LilliputEngine::sub15F75() { return; _savedMousePosDivided = Common::Point(newX, newY); - _actionType = kActionGoto; + _actionType = 5; } void LilliputEngine::unselectInterfaceHotspots() { @@ -2027,12 +2027,11 @@ void LilliputEngine::checkClickOnGameArea(Common::Point pos) { int arrowY = (y - x) >> 1; int arrowX = y - arrowY; - // Set the arrow coordinates if ((arrowX >= 0) && (arrowY >= 0) && (arrowX < 8) && (arrowY < 8)) { arrowX += _scriptHandler->_viewportPos.x; arrowY += _scriptHandler->_viewportPos.y; _savedMousePosDivided = Common::Point(arrowX, arrowY); - _actionType = kActionGoto; + _actionType = 5; } } @@ -2045,9 +2044,9 @@ void LilliputEngine::checkClickOnCharacter(Common::Point pos, bool &forceReturnF // check if position is over a character if ((pos.x >= _characterDisplayX[i]) && (pos.x <= _characterDisplayX[i] + 17) && (pos.y >= _characterDisplayY[i]) && (pos.y <= _characterDisplayY[i] + 17) && (i != _word10804)) { _selectedCharacterId = i; - _actionType = 4; - if (_bool12FCE) - _actionType = 3; + _actionType = kActionGoto; + if (_mouthSelected) + _actionType = kActionTalk; forceReturnFl = true; return; @@ -2087,7 +2086,7 @@ void LilliputEngine::sub1305C(byte index, byte button) { _lastInterfaceHotspotButton = button; if (button == 2) { - if (!_bool12FCE) { + if (!_mouthSelected) { _scriptHandler->_interfaceHotspotStatus[index] = kHotspotEnabled; _actionType = 2; displayInterfaceHotspots(); @@ -2095,7 +2094,7 @@ void LilliputEngine::sub1305C(byte index, byte button) { return; } - if (_bool12FCE) { + if (_mouthSelected) { unselectInterfaceButton(); return; } @@ -2103,7 +2102,7 @@ void LilliputEngine::sub1305C(byte index, byte button) { unselectInterfaceHotspots(); _scriptHandler->_interfaceHotspotStatus[index] = kHotspotSelected; if (_rulesBuffer13_1[index] == 1) { - _bool12FCE = true; + _mouthSelected = true; _bool15AC2 = true; } else { _actionType = 1; @@ -2795,7 +2794,7 @@ void LilliputEngine::setCurrentCharacter(int index) { void LilliputEngine::unselectInterfaceButton() { debugC(1, kDebugEngine, "unselectInterfaceButton()"); - _bool12FCE = false; + _mouthSelected = false; _bool15AC2 = false; _lastInterfaceHotspotButton = 0; unselectInterfaceHotspots(); @@ -2808,7 +2807,7 @@ void LilliputEngine::handleMenu() { if (_actionType == kActionNone) return; - if (_bool12FCE && (_actionType != 3)) + if (_mouthSelected && (_actionType != kActionTalk)) return; setCurrentCharacter(_word10804); @@ -2818,7 +2817,7 @@ void LilliputEngine::handleMenu() { _savedMousePosDivided = Common::Point(-1, -1); _selectedCharacterId = -1; - if (_actionType == 3) + if (_actionType == kActionTalk) unselectInterfaceButton(); _actionType = kActionNone; diff --git a/engines/lilliput/lilliput.h b/engines/lilliput/lilliput.h index 534a438065..ca2d3fd246 100644 --- a/engines/lilliput/lilliput.h +++ b/engines/lilliput/lilliput.h @@ -347,7 +347,7 @@ public: int _skipDisplayFlag2; byte _actionType; - bool _bool12FCE; + bool _mouthSelected; int8 _selectedCharacterId; byte _numCharactersToDisplay; int16 _word10804; diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index ce4d9b1f81..f868d864e2 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -1842,7 +1842,7 @@ byte LilliputScript::OC_checkLastInterfaceHotspotIndexMenu13() { byte tmpVal = (_currScript->readUint16LE() & 0xFF); - if ((_vm->_actionType != 1) && (_vm->_actionType != 3)) + if ((_vm->_actionType != 1) && (_vm->_actionType != kActionTalk)) return 0; if (tmpVal == _vm->_lastInterfaceHotspotIndex) @@ -2039,7 +2039,7 @@ byte LilliputScript::OC_checkSelectedCharacter() { byte LilliputScript::OC_sub179AE() { debugC(1, kDebugScript, "OC_sub179AE()"); - if (_vm->_bool12FCE || (_vm->_selectedCharacterId == -1)) + if (_vm->_mouthSelected || (_vm->_selectedCharacterId == -1)) return 0; return 1; diff --git a/engines/lilliput/script.h b/engines/lilliput/script.h index c606494f76..c8744a57fa 100644 --- a/engines/lilliput/script.h +++ b/engines/lilliput/script.h @@ -36,7 +36,8 @@ class LilliputEngine; enum kActionType { kActionNone = 0, - kActionGoto = 5, + kActionTalk = 3, + kActionGoto = 4, kCodeEntered = 6 }; |