diff options
author | Strangerke | 2013-12-17 07:09:45 +0100 |
---|---|---|
committer | Strangerke | 2013-12-17 07:09:45 +0100 |
commit | b5316f4c2a5544cb54f310dbaced5315a28e79f9 (patch) | |
tree | b38c554ebe66c16ba85c5bb439d8bf8ae80b47e4 /engines/tsage | |
parent | f8162cef4a22813fa1f1bebf7122a552ce241971 (diff) | |
download | scummvm-rg350-b5316f4c2a5544cb54f310dbaced5315a28e79f9.tar.gz scummvm-rg350-b5316f4c2a5544cb54f310dbaced5315a28e79f9.tar.bz2 scummvm-rg350-b5316f4c2a5544cb54f310dbaced5315a28e79f9.zip |
TSAGE: R2R - Some more renaming and reordering in scene 1337, remove a useless Card
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes1.cpp | 42 | ||||
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes1.h | 54 |
2 files changed, 49 insertions, 47 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes1.cpp b/engines/tsage/ringworld2/ringworld2_scenes1.cpp index 2f39faca4a..a1902941d9 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes1.cpp +++ b/engines/tsage/ringworld2/ringworld2_scenes1.cpp @@ -3663,13 +3663,13 @@ void Scene1337::Action7::signal() { } scene->setAnimationInfo(scene->_actionCard2); scene->_aSound1.play(59); - scene->_item5._cardId = 1; - scene->_item5._stationPos = scene->_actionCard2->_stationPos; - scene->_item5._card.postInit(); - scene->_item5._card.hide(); - scene->_item5._card._flags = OBJFLAG_HIDING; + scene->_discardedPlatformCard._cardId = 1; + scene->_discardedPlatformCard._stationPos = scene->_actionCard2->_stationPos; + scene->_discardedPlatformCard._card.postInit(); + scene->_discardedPlatformCard._card.hide(); + scene->_discardedPlatformCard._card._flags = OBJFLAG_HIDING; - scene->discardCard(&scene->_item5); + scene->discardCard(&scene->_discardedPlatformCard); break; default: break; @@ -3972,7 +3972,7 @@ void Scene1337::Action11::signal() { int tmpVal = scene->getFreeHandCard(scene->_actionIdx1); scene->_actionCard3 = &scene->_gameBoardSide[scene->_actionIdx1]._handCard[tmpVal]; } - scene->_item1.setAction(&scene->_action12); + scene->_actionItem.setAction(&scene->_action12); noAction = false; } break; @@ -3991,7 +3991,7 @@ void Scene1337::Action11::signal() { int tmpVal = scene->getFreeHandCard(scene->_actionIdx1); scene->_actionCard3 = &scene->_gameBoardSide[scene->_actionIdx1]._handCard[tmpVal]; } - scene->_item1.setAction(&scene->_action12); + scene->_actionItem.setAction(&scene->_action12); noAction = false; } break; @@ -4015,7 +4015,7 @@ void Scene1337::Action11::signal() { int tmpVal = scene->getFreeHandCard(scene->_actionIdx1); scene->_actionCard3 = &scene->_gameBoardSide[scene->_actionIdx1]._handCard[tmpVal]; } - scene->_item1.setAction(&scene->_action12); + scene->_actionItem.setAction(&scene->_action12); noAction = false; } } @@ -4035,7 +4035,7 @@ void Scene1337::Action11::signal() { int tmpVal = scene->getFreeHandCard(scene->_actionIdx1); scene->_actionCard3 = &scene->_gameBoardSide[scene->_actionIdx1]._handCard[tmpVal]; } - scene->_item1.setAction(&scene->_action12); + scene->_actionItem.setAction(&scene->_action12); noAction = false; } break; @@ -4662,7 +4662,7 @@ void Scene1337::handlePlayerTurn() { case 1: // No break on purpose case 3: - _item1.setAction(&_action4); + _actionItem.setAction(&_action4); default: break; } @@ -4907,7 +4907,7 @@ void Scene1337::playThieftCard(int playerId, Card *card, int victimId) { _actionCard2 = &_gameBoardSide[victimId]._emptyStationPos; _actionCard3 = &_gameBoardSide[victimId]._handCard[randIndx]; - _item1.setAction(&_action11); + _actionItem.setAction(&_action11); } int Scene1337::getPreventionCardId(int cardId) { @@ -4999,7 +4999,7 @@ bool Scene1337::checkAntiDelayCard(int delayCardId, int cardId) { void Scene1337::playStationCard(Card *station, Card *platform) { _actionCard1 = station; _actionCard2 = platform; - _item1.setAction(&_action7); + _actionItem.setAction(&_action7); } int Scene1337::getFreeHandCard(int playerId) { @@ -5023,21 +5023,21 @@ void Scene1337::playPlatformCard(Card *card, Card *dest) { _actionCard1 = card; _actionCard2 = dest; - _item1.setAction(&_action6); + _actionItem.setAction(&_action6); } void Scene1337::playDelayCard(Card *card, Card *dest) { _actionCard1 = card; _actionCard2 = dest; - _item1.setAction(&_action9); + _actionItem.setAction(&_action9); } void Scene1337::playAntiDelayCard(Card *card, Card *dest) { _actionCard1 = card; _actionCard2 = dest; - _item1.setAction(&_action8); + _actionItem.setAction(&_action8); } @@ -5055,13 +5055,13 @@ void Scene1337::playCounterTrickCard(Card *card, int playerId) { _actionCard2 = getStationCard(playerId); _actionCard3 = &_gameBoardSide[playerId]._emptyStationPos; _actionIdx1 = playerId; - _item1.setAction(&_action10); + _actionItem.setAction(&_action10); } void Scene1337::discardCard(Card *card) { _actionCard1 = card; - _item1.setAction(&_action5); + _actionItem.setAction(&_action5); } void Scene1337::subC4CD2() { @@ -5082,7 +5082,7 @@ void Scene1337::subC51A0(Card *subObj1, Card *subObj2) { _actionCard1 = subObj1; _actionCard2 = subObj2; - _item1.setAction(&_action13); + _actionItem.setAction(&_action13); } void Scene1337::displayDialog(int dialogNumb) { @@ -5359,7 +5359,7 @@ void Scene1337::suggestInstructions() { } void Scene1337::displayInstructions() { - _item1.setAction(&_action1); + _actionItem.setAction(&_action1); } void Scene1337::shuffleCards() { @@ -5414,7 +5414,7 @@ void Scene1337::dealCards() { shuffleCards(); // Deal cards - _item1.setAction(&_action3); + _actionItem.setAction(&_action3); } void Scene1337::showOptionsDialog() { diff --git a/engines/tsage/ringworld2/ringworld2_scenes1.h b/engines/tsage/ringworld2/ringworld2_scenes1.h index 571ea94f68..c809353051 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes1.h +++ b/engines/tsage/ringworld2/ringworld2_scenes1.h @@ -284,16 +284,6 @@ class Scene1337 : public SceneExt { void signal(); }; public: - typedef void (Scene1337::*FunctionPtrType)(); - FunctionPtrType _delayedFunction; - - ASound _aSound1; - ASound _aSound2; - SceneActor _helpIcon; - bool _autoplay; - GameBoardSide _gameBoardSide[4]; - SceneItem _item1; - SceneObject _currentPlayerArrow; Action1 _action1; Action2 _action2; Action3 _action3; @@ -307,35 +297,47 @@ public: Action11 _action11; Action12 _action12; Action13 _action13; - Card _animatedCard; - Card _shuffleAnimation; - Card _item4; - SceneActor _stockPile; - int _cardsAvailableNumb; + + typedef void (Scene1337::*FunctionPtrType)(); + FunctionPtrType _delayedFunction; + + bool _autoplay; + bool _shuffleEndedFl; + bool _showPlayerTurn; + bool _displayHelpFl; + bool _instructionsDisplayedFl; // Discarded cards are put in the available cards pile, with an higher index so there no conflict int _currentDiscardIndex; int _availableCardsPile[100]; - Card *_actionCard1; - Card *_actionCard2; - Card *_actionCard3; - Card _item5; - Card _selectedCard; - Card _discardPile; - Card _stockCard; - bool _shuffleEndedFl; + int _cardsAvailableNumb; int _currentPlayerNumb; int _actionIdx1; int _actionIdx2; - bool _showPlayerTurn; - bool _displayHelpFl; int _winnerId; - bool _instructionsDisplayedFl; int _instructionsWaitCount; int _cursorCurRes; int _cursorCurStrip; int _cursorCurFrame; + ASound _aSound1; + ASound _aSound2; + GameBoardSide _gameBoardSide[4]; + SceneActor _helpIcon; + SceneActor _stockPile; + SceneItem _actionItem; + SceneObject _currentPlayerArrow; + + Card *_actionCard1; + Card *_actionCard2; + Card *_actionCard3; + Card _animatedCard; + Card _shuffleAnimation; + Card _discardedPlatformCard; + Card _selectedCard; + Card _discardPile; + Card _stockCard; + SceneObject _upperDisplayCard[8]; SceneObject _lowerDisplayCard[8]; |