diff options
author | Johannes Schickel | 2012-09-26 04:10:32 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-09-26 04:11:09 +0200 |
commit | a6c6c74350bb673c178d9756a1625ca128d24f21 (patch) | |
tree | 5d88c0cef3a2b40fdfe6e10d8b20904ff75bddf8 /engines/pegasus/neighborhood/tsa | |
parent | d9b204b78ea2c7636af7e8fcffd67065a6d08d84 (diff) | |
download | scummvm-rg350-a6c6c74350bb673c178d9756a1625ca128d24f21.tar.gz scummvm-rg350-a6c6c74350bb673c178d9756a1625ca128d24f21.tar.bz2 scummvm-rg350-a6c6c74350bb673c178d9756a1625ca128d24f21.zip |
PEGASUS: Remove trailing whitespaces.
Powered by: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
Diffstat (limited to 'engines/pegasus/neighborhood/tsa')
-rw-r--r-- | engines/pegasus/neighborhood/tsa/fulltsa.cpp | 52 | ||||
-rw-r--r-- | engines/pegasus/neighborhood/tsa/fulltsa.h | 2 | ||||
-rw-r--r-- | engines/pegasus/neighborhood/tsa/tinytsa.cpp | 2 | ||||
-rw-r--r-- | engines/pegasus/neighborhood/tsa/tinytsa.h | 12 |
4 files changed, 34 insertions, 34 deletions
diff --git a/engines/pegasus/neighborhood/tsa/fulltsa.cpp b/engines/pegasus/neighborhood/tsa/fulltsa.cpp index 98c70aa09d..b598841b45 100644 --- a/engines/pegasus/neighborhood/tsa/fulltsa.cpp +++ b/engines/pegasus/neighborhood/tsa/fulltsa.cpp @@ -531,20 +531,20 @@ enum { kMonitorMarsComparison = 5, kMonitorCaldoriaComparison = 6, kMonitorWSCComparison = 7, - + kRawModeMask = 0x0F, kPlayingTBPMask = 0x10, kPlayingLeftComparisonMask = 0x20, kPlayingRightComparisonMask = 0x40, - + kPlayingAnyMask = kPlayingTBPMask | kPlayingLeftComparisonMask | kPlayingRightComparisonMask, - + kMonitorPlayingTheory = kMonitorTheory | kPlayingTBPMask, kMonitorPlayingProcedure = kMonitorProcedure | kPlayingTBPMask, kMonitorPlayingBackground = kMonitorBackground | kPlayingTBPMask, - + kMonitorPlayingLeftNoradComparison = kMonitorNoradComparison | kPlayingLeftComparisonMask, kMonitorPlayingRightNoradComparison = kMonitorNoradComparison | @@ -594,7 +594,7 @@ static const int kRedirectionNewTargetSprite = 1; void RipTimer::initImage() { _middle = -1; - + _timerImage.getImageFromPICTResource(((PegasusEngine *)g_engine)->_resFork, kLeftRipPICTID); Common::Rect r; @@ -643,7 +643,7 @@ FullTSA::FullTSA(InputHandler *nextHandler, PegasusEngine *owner) : Neighborhood setIsItemTaken(kMapBiochip); } -void FullTSA::init() { +void FullTSA::init() { Neighborhood::init(); _ripTimer.setDisplayOrder(kRipTimerOrder); _ripTimer.startDisplaying(); @@ -657,7 +657,7 @@ void FullTSA::init() { _sprite2.startDisplaying(); _sprite3.setDisplayOrder(kMonitorLayer); _sprite3.startDisplaying(); - + // Fix a mistake in the world builder tables. HotspotInfoTable::Entry *entry = findHotspotEntry(kTSA23WestChipsSpotID); entry->hotspotItem = kPegasusBiochip; @@ -690,7 +690,7 @@ void FullTSA::flushGameState() { GameState.setTSAFuseTimeLimit(_utilityFuse.getTimeRemaining()); } -Common::String FullTSA::getBriefingMovie() { +Common::String FullTSA::getBriefingMovie() { Common::String movieName = Neighborhood::getBriefingMovie(); if (movieName.empty()) { @@ -762,7 +762,7 @@ Common::String FullTSA::getEnvScanMovie() { if (GameState.getCurrentRoom() == kTSA37) { g_AIChip->showEnvScanClicked(); startExtraSequenceSync(kTSA37EnvironmentalScan, kHintInterruption); - + switch (getCurrentActivation()) { case kActivationJumpToPrehistoric: startExtraSequenceSync(kTSA37AI2ToPrehistoric, kFilterNoInput); @@ -819,7 +819,7 @@ Common::String FullTSA::getHintMovie(uint hintNum) { if (movieName.empty()) movieName = Common::String::format("Images/AI/TSA/XT20NH%d", hintNum); - + return movieName; } @@ -965,7 +965,7 @@ void FullTSA::getExitCompassMove(const ExitTable::Entry &exitEntry, FaderMoveSpe void FullTSA::getExtraCompassMove(const ExtraTable::Entry &extraEntry, FaderMoveSpec &compassMove) { int16 angle; - + switch (extraEntry.extra) { case kTSA0BEastTurnLeft: case kTSA0BNorthTurnLeft: @@ -1007,7 +1007,7 @@ uint16 FullTSA::getDateResID() const { TimeValue FullTSA::getViewTime(const RoomID room, const DirectionConstant direction) { ExtraID extraID = 0xffffffff; - + switch (MakeRoomView(room, direction)) { case MakeRoomView(kTSA0B, kEast): if (GameState.getTSA0BZoomedIn()) @@ -1102,7 +1102,7 @@ void FullTSA::getExtraEntry(const uint32 id, ExtraTable::Entry &extraEntry) { void FullTSA::pickedUpItem(Item *item) { BiochipItem *biochip; - + switch (item->getObjectID()) { case kJourneymanKey: GameState.setScoringGotJourneymanKey(true); @@ -1363,7 +1363,7 @@ void FullTSA::activateHotspots() { } } -void FullTSA::clickInHotspot(const Input &input, const Hotspot *clickedSpot) { +void FullTSA::clickInHotspot(const Input &input, const Hotspot *clickedSpot) { switch (clickedSpot->getObjectID()) { case kTSAGTOtherSpotID: showExtraView(kTSAGTOtherChoice); @@ -1417,7 +1417,7 @@ void FullTSA::clickInHotspot(const Input &input, const Hotspot *clickedSpot) { case kTSA0BEastRightPlaySpotID: playRightComparison(); break; - + // Command center case kTSA0BWestTheorySpotID: initializeTBPMonitor(kMonitorTheory, kTSA0BTBPTheoryHighlight); @@ -1555,7 +1555,7 @@ void FullTSA::clickInHotspot(const Input &input, const Hotspot *clickedSpot) { _sprite2.setCurrentFrameIndex(1); _vm->delayShell(1, 2); releaseSprites(); - break; + break; case kTSA37NorthJumpToNoradSpotID: GameState.setTSAState(kPlayerOnWayToNorad); requestExtraSequence(kTSA37JumpToNorad, 0, kFilterNoInput); @@ -1620,7 +1620,7 @@ void FullTSA::showMainJumpMenu() { void FullTSA::playTBPMonitor() { InputDevice.waitInput(kFilterAllButtons); - + if ((GameState.getT0BMonitorMode() & kPlayingTBPMask) == 0) { ExtraID extra; @@ -1706,7 +1706,7 @@ void FullTSA::startUpComparisonMonitor() { _sprite1.setCurrentFrameIndex(0); _sprite1.moveElementTo(kComparisonHiliteSpriteLeft, kComparisonHiliteSpriteTop); - + _sprite2.addPICTResourceFrame(kComparisonChancesNoradPICTID, false, kComparisonChancesNoradLeft - kComparisonChancesSpriteLeft, kComparisonChancesNoradTop - kComparisonChancesSpriteTop); @@ -1823,9 +1823,9 @@ void FullTSA::playLeftComparison() { } } -void FullTSA::playRightComparison() { +void FullTSA::playRightComparison() { InputDevice.waitInput(kFilterAllButtons); - + if ((GameState.getT0BMonitorMode() & kPlayingRightComparisonMask) == 0) { ExtraID extra; @@ -2348,7 +2348,7 @@ void FullTSA::closeDoorOffScreen(const RoomID room, const DirectionConstant) { } } -void FullTSA::receiveNotification(Notification *notification, const NotificationFlags flags) { +void FullTSA::receiveNotification(Notification *notification, const NotificationFlags flags) { ExtraID lastExtra = _lastExtra; if ((flags & kExtraCompletedFlag) != 0) { @@ -2417,7 +2417,7 @@ void FullTSA::receiveNotification(Notification *notification, const Notification case kTSA05WhiteZoomIn: GameState.setScoringSawBust6(true); break; - + // Command center // Historical comparison... case kTSA0BEastZoomIn: @@ -2468,7 +2468,7 @@ void FullTSA::receiveNotification(Notification *notification, const Notification case kTSA0BWSCUnaltered: initializeComparisonMonitor(kMonitorNeutral, 0); break; - + // Center monitor. case kTSA0BNorthZoomIn: GameState.setTSA0BZoomedIn(true); @@ -2528,7 +2528,7 @@ void FullTSA::receiveNotification(Notification *notification, const Notification _sprite2.setCurrentFrameIndex(kRedirectionSecuredSprite); _sprite2.show(); break; - + // TBP monitor. case kTSA0BWestZoomIn: GameState.setTSA0BZoomedIn(true); @@ -2562,7 +2562,7 @@ void FullTSA::receiveNotification(Notification *notification, const Notification case kTSA0BTBPProcedure: initializeTBPMonitor(kMonitorNeutral, 0); break; - + // Ready room case kTSA22RedEastZoomInSequence: _privateFlags.setFlag(kTSAPrivateKeyVaultOpenFlag, true); @@ -2846,7 +2846,7 @@ void FullTSA::dropItemIntoRoom(Item *item, Hotspot *dropSpot) { uint FullTSA::getHistoricalLogIndex() { uint index; - + if (GameState.getTSASeenNoradNormal() && GameState.getTSASeenNoradAltered()) index = 8; else diff --git a/engines/pegasus/neighborhood/tsa/fulltsa.h b/engines/pegasus/neighborhood/tsa/fulltsa.h index 7dd11a766c..a646d57e6c 100644 --- a/engines/pegasus/neighborhood/tsa/fulltsa.h +++ b/engines/pegasus/neighborhood/tsa/fulltsa.h @@ -42,7 +42,7 @@ public: protected: void timeChanged(const TimeValue); - + CoordType _middle; Surface _timerImage; }; diff --git a/engines/pegasus/neighborhood/tsa/tinytsa.cpp b/engines/pegasus/neighborhood/tsa/tinytsa.cpp index 2fa6c5377a..4f109620c1 100644 --- a/engines/pegasus/neighborhood/tsa/tinytsa.cpp +++ b/engines/pegasus/neighborhood/tsa/tinytsa.cpp @@ -282,7 +282,7 @@ void TinyTSA::arriveAt(const RoomID room, const DirectionConstant direction) { void TinyTSA::receiveNotification(Notification *notification, const NotificationFlags flags) { ExtraID lastExtra = _lastExtra; - + Neighborhood::receiveNotification(notification, flags); if ((flags & kExtraCompletedFlag) != 0) { diff --git a/engines/pegasus/neighborhood/tsa/tinytsa.h b/engines/pegasus/neighborhood/tsa/tinytsa.h index db74206d4f..2dc234675d 100644 --- a/engines/pegasus/neighborhood/tsa/tinytsa.h +++ b/engines/pegasus/neighborhood/tsa/tinytsa.h @@ -38,11 +38,11 @@ class TinyTSA : public Neighborhood { public: TinyTSA(InputHandler *, PegasusEngine *); virtual ~TinyTSA() {} - + virtual uint16 getDateResID() const; - + void start(); - + void checkContinuePoint(const RoomID, const DirectionConstant); protected: @@ -50,13 +50,13 @@ protected: Common::String getEnvScanMovie(); void loadAmbientLoops(); virtual void clickInHotspot(const Input &, const Hotspot *); - + virtual int16 getStaticCompassAngle(const RoomID, const DirectionConstant); - + void arriveFromNorad(); void arriveFromMars(); void arriveFromWSC(); - + InputBits getInputFilter(); void arriveAt(const RoomID, const DirectionConstant); void showMainJumpMenu(); |