ScummVM API documentation
Pegasus::Mars Class Reference
Inheritance diagram for Pegasus::Mars:
Pegasus::Neighborhood Pegasus::IDObject Pegasus::NotificationReceiver Pegasus::InputHandler Pegasus::Idler

Public Member Functions

 Mars (InputHandler *, PegasusEngine *)
 
GameInteractionmakeInteraction (const InteractionID) override
 
void flushGameState () override
 
uint16 getDateResID () const override
 
AirQuality getAirQuality (const RoomID) override
 
void checkAirMask () override
 
void showBigExplosion (const Common::Rect &, const DisplayOrder)
 
void showLittleExplosion (const Common::Rect &, const DisplayOrder)
 
void hitByJunk ()
 
void decreaseRobotShuttleEnergy (const int, Common::Point impactPoint)
 
void setUpNextDropTime ()
 
Common::Path getBriefingMovie () override
 
Common::Path getEnvScanMovie () override
 
uint getNumHints () override
 
Common::Path getHintMovie (uint) override
 
void shieldOn () override
 
void shieldOff () override
 
void checkContinuePoint (const RoomID, const DirectionConstant) override
 
void setSoundFXLevel (const uint16) override
 
void setAmbienceLevel (const uint16) override
 
bool canSolve () override
 
void doSolve () override
 
bool inColorMatchingGame ()
 
- Public Member Functions inherited from Pegasus::Neighborhood
 Neighborhood (InputHandler *nextHandler, PegasusEngine *vm, const Common::String &resName, NeighborhoodID id)
 
virtual void moveNavTo (const CoordType, const CoordType)
 
void makeContinuePoint ()
 
void activateHotspots () override
 
void clickInHotspot (const Input &, const Hotspot *) override
 
virtual CanTurnReason canTurn (TurnDirection turn, DirectionConstant &nextDir)
 
virtual void cantTurnThatWay (CanTurnReason)
 
virtual void turn (const TurnDirection)
 
virtual void turnUp ()
 
virtual void turnDown ()
 
virtual void zoomTo (const Hotspot *)
 
virtual void updateViewFrame ()
 
void requestExtraSequence (const ExtraID, const NotificationFlags, const InputBits interruptionFilter)
 
void requestSpotSound (const TimeValue, const TimeValue, const InputBits interruptionFilter, const NotificationFlags)
 
void playSpotSoundSync (const TimeValue in, const TimeValue out)
 
void requestDelay (const TimeValue, const TimeScale, const InputBits interruptionFilter, const NotificationFlags)
 
NotificationgetNeighborhoodNotification ()
 
virtual void getExtraEntry (const uint32 id, ExtraTable::Entry &extraEntry)
 
virtual void startSpotLoop (TimeValue, TimeValue, NotificationFlags=0)
 
virtual bool actionQueueEmpty ()
 
virtual void showViewFrame (TimeValue)
 
bool startExtraSequenceSync (const ExtraID, const InputBits)
 
virtual void loopExtraSequence (const uint32, NotificationFlags=0)
 
int32 getLastExtra () const
 
virtual void scheduleNavCallBack (NotificationFlags)
 
MoviegetNavMovie ()
 
bool navMoviePlaying ()
 
void setCurrentAlternate (const AlternateID alt)
 
AlternateID getCurrentAlternate () const
 
void setCurrentActivation (const HotSpotActivationID a)
 
HotSpotActivationID getCurrentActivation ()
 
virtual void playDeathExtra (ExtraID, DeathReason)
 
virtual void die (const DeathReason)
 
void forceStridingStop (const RoomID, const DirectionConstant, const AlternateID)
 
void restoreStriding (const RoomID, const DirectionConstant, const AlternateID)
 
HotspotInfoTable::EntryfindHotspotEntry (const HotSpotID)
 
PushgetTurnPush ()
 
PicturegetTurnPushPicture ()
 
void hideNav ()
 
void showNav ()
 
virtual void prepareForAIHint (const Common::Path &)
 
virtual void cleanUpAfterAIHint (const Common::Path &)
 
virtual bool okayToJump ()
 
virtual void checkFlashlight ()
 
virtual void loadLoopSound1 (const Common::Path &, const uint16 volume=0x100, const TimeValue fadeOut=kDefaultLoopFadeOut, const TimeValue fadeIn=kDefaultLoopFadeIn, const TimeScale fadeScale=kDefaultLoopFadeScale)
 
virtual void loadLoopSound2 (const Common::Path &, const uint16 volume=0x100, const TimeValue fadeOut=kDefaultLoopFadeOut, const TimeValue fadeIn=kDefaultLoopFadeIn, const TimeScale fadeScale=kDefaultLoopFadeScale)
 
bool loop1Loaded (const Common::Path &soundName)
 
bool loop2Loaded (const Common::Path &soundName)
 
void startLoop1Fader (const FaderMoveSpec &)
 
void startLoop2Fader (const FaderMoveSpec &)
 
virtual void requestDeleteCurrentInteraction ()
 
virtual void showExtraView (uint32)
 
virtual void startExtraLongSequence (const uint32, const uint32, NotificationFlags, const InputBits interruptionFilter)
 
void openCroppedMovie (const Common::Path &, CoordType, CoordType)
 
void loopCroppedMovie (const Common::Path &, CoordType, CoordType)
 
void closeCroppedMovie ()
 
void playCroppedMovieOnce (const Common::Path &, CoordType, CoordType, const InputBits interruptionFilter=kFilterNoInput)
 
void playMovieSegment (Movie *, TimeValue=0, TimeValue=0xffffffff)
 
virtual void recallToTSASuccess ()
 
virtual void recallToTSAFailure ()
 
void handleInput (const Input &, const Hotspot *) override
 
- Public Member Functions inherited from Pegasus::IDObject
 IDObject (const int32 id)
 
int32 getObjectID () const
 
- Public Member Functions inherited from Pegasus::InputHandler
 InputHandler (InputHandler *)
 
virtual void setNextHandler (InputHandler *nextHandler)
 
virtual InputHandlergetNextHandler ()
 
virtual bool isClickInput (const Input &, const Hotspot *)
 
virtual bool wantsCursor ()
 
virtual bool releaseInputFocus ()
 
virtual void grabInputFocus ()
 
virtual InputBits getClickFilter ()
 
virtual void allowInput (const bool allow)
 
- Public Member Functions inherited from Pegasus::Idler
virtual void startIdling ()
 
virtual void stopIdling ()
 
bool isIdling () const
 

Protected Types

enum  {
  kMarsPrivatePodStorageOpenFlag, kMarsPrivatePodTurnLeftFlag, kMarsPrivatePodTurnRightFlag, kMarsPrivateRobotTiredOfWaitingFlag,
  kMarsPrivatePlatformZoomedInFlag, kMarsPrivateBombExposedFlag, kMarsPrivateDraggingBombFlag, kMarsPrivateInSpaceChaseFlag,
  kMarsPrivateGotMapChipFlag, kMarsPrivateGotOpticalChipFlag, kMarsPrivateGotShieldChipFlag, kNumMarsPrivateFlags
}
 

Protected Member Functions

void init () override
 
void start () override
 
void setUpAIRules () override
 
void arriveAt (const RoomID, const DirectionConstant) override
 
void takeItemFromRoom (Item *) override
 
void dropItemIntoRoom (Item *, Hotspot *) override
 
void activateHotspots () override
 
void activateOneHotspot (HotspotInfoTable::Entry &, Hotspot *) override
 
void clickInHotspot (const Input &, const Hotspot *) override
 
InputBits getInputFilter () override
 
TimeValue getViewTime (const RoomID, const DirectionConstant) override
 
void getZoomEntry (const HotSpotID, ZoomTable::Entry &) override
 
void findSpotEntry (const RoomID, const DirectionConstant, SpotFlags, SpotTable::Entry &) override
 
CanOpenDoorReason canOpenDoor (DoorTable::Entry &) override
 
void openDoor () override
 
void closeDoorOffScreen (const RoomID, const DirectionConstant) override
 
void startDoorOpenMovie (const TimeValue, const TimeValue) override
 
void startExitMovie (const ExitTable::Entry &) override
 
int16 getStaticCompassAngle (const RoomID, const DirectionConstant) override
 
void getExitCompassMove (const ExitTable::Entry &, FaderMoveSpec &) override
 
void getExtraCompassMove (const ExtraTable::Entry &, FaderMoveSpec &) override
 
void turnTo (const DirectionConstant) override
 
void startExtraSequence (const ExtraID, const NotificationFlags, const InputBits) override
 
void receiveNotification (Notification *, const NotificationFlags) override
 
void doorOpened () override
 
void startUpFromFinishedTunnelPod ()
 
void setUpReactorEnergyDrain ()
 
HotspotgetItemScreenSpot (Item *, DisplayElement *) override
 
void lockThawed ()
 
void robotTiredOfWaiting ()
 
void setUpReactorLevel1 ()
 
void setUpNextReactorLevel ()
 
void makeColorSequence ()
 
void doUndoOneGuess ()
 
void doReactorGuess (int32 guess)
 
void bombExplodesInGame ()
 
void didntFindBomb ()
 
CanMoveForwardReason canMoveForward (ExitTable::Entry &) override
 
void cantMoveThatWay (CanMoveForwardReason) override
 
void moveForward () override
 
void bumpIntoWall () override
 
void turnLeft () override
 
void turnRight () override
 
void airStageExpired ()
 
void loadAmbientLoops () override
 
void checkAirlockDoors ()
 
void pickedUpItem (Item *item) override
 
void cantOpenDoor (CanOpenDoorReason) override
 
void launchMaze007Robot ()
 
void launchMaze015Robot ()
 
void launchMaze101Robot ()
 
void launchMaze104Robot ()
 
void launchMaze133Robot ()
 
void launchMaze136Robot ()
 
void launchMaze184Robot ()
 
void timerExpired (const uint32) override
 
void showRobotAtReactor ()
 
void spotCompleted () override
 
void doCanyonChase (void)
 
void startMarsTimer (TimeValue, TimeScale, MarsTimerCode)
 
void marsTimerExpired (MarsTimerEvent &)
 
void throwAwayMarsShuttle ()
 
void startUpFromFinishedSpaceChase ()
 
void startUpFromSpaceChase ()
 
void transportOutFromSpaceChase (bool)
 
void spaceChaseClick (const Input &, const HotSpotID)
 
void updateCursor (const Common::Point, const Hotspot *) override
 
void playSpaceAmbient ()
 
Common::Path getSoundSpotsName () override
 
Common::Path getNavMovieName () override
 
- Protected Member Functions inherited from Pegasus::Neighborhood
void receiveNotification (Notification *, const NotificationFlags) override
 
virtual void getExitEntry (const RoomID room, const DirectionConstant direction, ExitTable::Entry &entry)
 
virtual void getDoorEntry (const RoomID room, const DirectionConstant direction, DoorTable::Entry &doorEntry)
 
virtual DirectionConstant getTurnEntry (const RoomID room, const DirectionConstant direction, const TurnDirection turn)
 
virtual void getHotspotEntry (const HotSpotID id, HotspotInfoTable::Entry &hotspotEntry)
 
virtual void keepStriding (ExitTable::Entry &)
 
virtual void stopStriding ()
 
virtual void checkStriding ()
 
virtual bool stillMoveForward ()
 
virtual void scheduleStridingCallBack (const TimeValue, NotificationFlags flags)
 
virtual void startZoomMovie (const ZoomTable::Entry &)
 
virtual void startTurnPush (const TurnDirection, const TimeValue, const DirectionConstant)
 
virtual void playExtraMovie (const ExtraTable::Entry &, const NotificationFlags, const InputBits interruptionFilter)
 
virtual void activateCurrentView (const RoomID, const DirectionConstant, SpotFlags)
 
virtual void startSpotOnceOnly (TimeValue, TimeValue)
 
virtual void startMovieSequence (const TimeValue, const TimeValue, NotificationFlags, bool loopSequence, const InputBits interruptionFilter, const TimeValue strideStop=0xffffffff)
 
virtual void createNeighborhoodSpots ()
 
void resetLastExtra ()
 
virtual void throwAwayInterface ()
 
void popActionQueue ()
 
void serviceActionQueue ()
 
void requestAction (const QueueRequestType, const ExtraID, const TimeValue, const TimeValue, const InputBits, const NotificationFlags)
 
virtual bool prepareExtraSync (const ExtraID)
 
virtual bool waitMovieFinish (Movie *, const InputBits)
 
InputBits getInputFilter () override
 
virtual void getZoomCompassMove (const ZoomTable::Entry &, FaderMoveSpec &)
 
virtual void setHotspotFlags (const HotSpotID, const HotSpotFlags)
 
virtual void setIsItemTaken (const ItemID)
 
virtual void upButton (const Input &)
 
virtual void leftButton (const Input &)
 
virtual void rightButton (const Input &)
 
virtual void downButton (const Input &)
 
void initOnePicture (Picture *, const Common::Path &, DisplayOrder, CoordType, CoordType, bool)
 
void initOneMovie (Movie *, const Common::Path &, DisplayOrder, CoordType, CoordType, bool)
 
void reinstateMonocleInterface ()
 
virtual void newInteraction (const InteractionID)
 
void useIdleTime () override
 
virtual void zoomUpOrBump ()
 
void scheduleEvent (const TimeValue, const TimeScale, const uint32)
 
void cancelEvent ()
 
bool isEventTimerRunning ()
 
uint32 getTimerEvent ()
 
void timerFunction ()
 
void pauseTimer ()
 
void resumeTimer ()
 
bool timerPaused ()
 
- Protected Member Functions inherited from Pegasus::NotificationReceiver
virtual void newNotification (Notification *notification)
 

Protected Attributes

Movie _extraMovie
 
NotificationCallBack _extraMovieCallBack
 
InventoryItem_attackingItem
 
FuseFunction _bombFuse
 
FuseFunction _noAirFuse
 
FuseFunction _utilityFuse
 
FlagsArray< byte, kNumMarsPrivateFlags > _privateFlags
 
uint _reactorStage
 
uint _nextGuess
 
int32 _currentGuess [3]
 
ReactorGuess _guessObject
 
Picture _undoPict
 
ReactorHistory _guessHistory
 
ReactorChoiceHighlight _choiceHighlight
 
Picture _shuttleInterface1
 
Picture _shuttleInterface2
 
Picture _shuttleInterface3
 
Picture _shuttleInterface4
 
Movie _canyonChaseMovie
 
Sound _musicLoop
 
SoundFader _musicFader
 
MarsTimerEvent _marsEvent
 
Movie _leftShuttleMovie
 
Movie _rightShuttleMovie
 
Movie _lowerLeftShuttleMovie
 
Movie _lowerRightShuttleMovie
 
Movie _centerShuttleMovie
 
Movie _upperLeftShuttleMovie
 
Movie _upperRightShuttleMovie
 
Movie _leftDamageShuttleMovie
 
Movie _rightDamageShuttleMovie
 
ShuttleEnergyMeter _shuttleEnergyMeter
 
Movie _planetMovie
 
PlanetMover _planetMover
 
RobotShip _robotShip
 
ShuttleHUD _shuttleHUD
 
TractorBeam _tractorBeam
 
SpaceJunk _junk
 
EnergyBeam _energyBeam
 
GravitonCannon _gravitonCannon
 
Hotspot _energyChoiceSpot
 
Hotspot _gravitonChoiceSpot
 
Hotspot _tractorChoiceSpot
 
Hotspot _shuttleViewSpot
 
Hotspot _shuttleTransportSpot
 
ShuttleWeaponSelection _weaponSelection
 
ScalingMovie _explosions
 
NotificationCallBack _explosionCallBack
 
- Protected Attributes inherited from Pegasus::Neighborhood
PegasusEngine_vm
 
Common::String _resName
 
DoorTable _doorTable
 
ExitTable _exitTable
 
ExtraTable _extraTable
 
HotspotInfoTable _hotspotInfoTable
 
SpotTable _spotTable
 
TurnTable _turnTable
 
ViewTable _viewTable
 
ZoomTable _zoomTable
 
AlternateID _currentAlternate
 
HotSpotActivationID _currentActivation
 
ExtraID _lastExtra
 
DeathReason _extraDeathReason
 
Movie _navMovie
 
Picture _pushIn
 
Push _turnPush
 
Notification _neighborhoodNotification
 
NotificationCallBack _navMovieCallBack
 
StriderCallBack _stridingCallBack
 
NotificationCallBack _turnPushCallBack
 
NotificationCallBack _spotSoundCallBack
 
NotificationCallBack _delayCallBack
 
HotspotList _neighborhoodHotspots
 
SoundTimeBase _spotSounds
 
NeighborhoodActionQueue _actionQueue
 
TimeBase _delayTimer
 
InputBits _interruptionFilter
 
bool _isRunning
 
GameInteraction_currentInteraction
 
bool _doneWithInteraction
 
Movie _croppedMovie
 
Sound _soundLoop1
 
Common::Path _loop1SoundString
 
SoundFader _loop1Fader
 
Sound _soundLoop2
 
Common::Path _loop2SoundString
 
SoundFader _loop2Fader
 
FuseFunction _eventTimer
 
uint32 _timerEvent
 
- Protected Attributes inherited from Pegasus::InputHandler
InputHandler_nextHandler
 
bool _allowInput
 
- Protected Attributes inherited from Pegasus::Idler
bool _isIdling
 
Idler_nextIdler
 
Idler_prevIdler
 

Additional Inherited Members

- Static Public Member Functions inherited from Pegasus::InputHandler
static InputHandlersetInputHandler (InputHandler *)
 
static InputHandlergetCurrentHandler ()
 
static void pollForInput ()
 
static void getInput (Input &, Hotspot *&)
 
static void readInputDevice (Input &)
 
static void invalHotspots ()
 
static InputBits getCurrentFilter ()
 
- Static Protected Attributes inherited from Pegasus::InputHandler
static InputHandler_inputHandler
 
static bool _invalHotspots
 
static InputBits _lastFilter
 

The documentation for this class was generated from the following file: