Pegasus::PegasusEngine Class Reference

#include <pegasus.h>

+ Inheritance diagram for Pegasus::PegasusEngine:
+ Collaboration diagram for Pegasus::PegasusEngine:

Public Member Functions

 PegasusEngine (OSystem *syst, const PegasusGameDescription *gamedesc)
 ~PegasusEngine () override
bool hasFeature (EngineFeature f) const override
 Determine whether the engine supports the specified feature. More...
bool canLoadGameStateCurrently () override
 Indicates whether a game state can be loaded. More...
bool canSaveGameStateCurrently () override
 Indicates whether a game state can be saved. More...
Common::Error loadGameState (int slot) override
 Load a game state. More...
Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override
 Save a game state. More...
void useMenu (GameMenu *menu)
bool checkGameMenu ()
bool isDemo () const
bool isDVD () const
bool isDVDDemo () const
bool isOldDemo () const
bool isWindows () const
void addIdler (Idler *idler)
void removeIdler (Idler *idler)
void addTimeBase (TimeBase *timeBase)
void removeTimeBase (TimeBase *timeBase)
void delayShell (TimeValue time, TimeScale scale)
void resetIntroTimer ()
void introTimerExpired ()
void refreshDisplay ()
bool playerAlive ()
void processShell ()
void checkCallBacks ()
void createInterface ()
void setGameMode (const GameMode)
GameMode getGameMode () const
uint getRandomBit ()
uint getRandomNumber (uint max)
void shuffleArray (int32 *arr, int32 count)
void drawScaledFrame (const Graphics::Surface *frame, uint16 x, uint16 y)
HotspotListgetAllHotspots ()
void setLastEnergyValue (const int32 value)
int32 getSavedEnergyValue ()
void setEnergyDeathReason (const DeathReason reason)
DeathReason getEnergyDeathReason ()
void resetEnergyDeathReason ()
void die (const DeathReason)
void playEndMessage ()
uint16 getSoundFXLevel ()
void setSoundFXLevel (uint16)
uint16 getAmbienceLevel ()
void setAmbienceLevel (uint16)
ItemListgetAllItems ()
bool playerHasItem (const Item *)
bool playerHasItemID (const ItemID)
void checkFlashlight ()
bool itemInLocation (const ItemID, const NeighborhoodID, const RoomID, const DirectionConstant)
InventoryItemgetCurrentInventoryItem ()
bool itemInInventory (InventoryItem *)
bool itemInInventory (ItemID)
InventorygetItemsInventory ()
InventoryResult addItemToInventory (InventoryItem *)
void removeAllItemsFromInventory ()
InventoryResult removeItemFromInventory (InventoryItem *)
uint32 countInventoryItems ()
BiochipItemgetCurrentBiochip ()
bool itemInBiochips (BiochipItem *)
bool itemInBiochips (ItemID)
InventorygetBiochipsInventory ()
void removeAllItemsFromBiochips ()
InventoryResult addItemToBiochips (BiochipItem *)
Common::String getBriefingMovie ()
Common::String getEnvScanMovie ()
uint getNumHints ()
Common::String getHintMovie (uint)
bool canSolve ()
void prepareForAIHint (const Common::String &)
void cleanUpAfterAIHint (const Common::String &)
void jumpToNewEnvironment (const NeighborhoodID, const RoomID, const DirectionConstant)
NeighborhoodID getCurrentNeighborhoodID () const
void dragItem (const Input &, Item *, DragType)
bool isDragging () const
DragType getDragType () const
ItemgetDraggingItem () const
void dragTerminated (const Input &)
void autoDragItemIntoRoom (Item *, Sprite *)
void autoDragItemIntoInventory (Item *, Sprite *)
void makeContinuePoint ()
bool swapSaveAllowed (bool allow)
bool swapLoadAllowed (bool allow)
void requestSave ()
bool saveRequested () const
void requestLoad ()
bool loadRequested () const
- Public Member Functions inherited from Engine
 Engine (OSystem *syst)
virtual ~Engine ()
virtual void initializePath (const Common::FSNode &gamePath)
 Init SearchMan according to the game path. More...
virtual void errorString (const char *buf_input, char *buf_output, int buf_output_size)
 Prepare an error string, which is printed by the error() function. More...
virtual GUI::DebuggergetDebugger ()
 Return the engine's debugger instance, if any. More...
void setDebugger (GUI::Debugger *debugger)
 Sets the engine's debugger. More...
GUI::DebuggergetOrCreateDebugger ()
 Return the engine's debugger instance, or create one if none is present. More...
virtual void syncSoundSettings ()
 Notify the engine that the sound settings in the config manager may have changed and that it hence should adjust any internal volume etc. More...
virtual void flipMute ()
 Flip mute all sound option. More...
virtual Common::String getSaveStateName (int slot) const
 Generates the savegame filename. More...
virtual Common::Error loadGameStream (Common::SeekableReadStream *stream)
 Load a game state. More...
void setGameToLoadSlot (int slot)
 Sets the game slot for a savegame to be loaded after global main menu execution. More...
virtual Common::Error saveGameStream (Common::WriteStream *stream, bool isAutosave=false)
 Save a game state. More...
bool saveGameDialog ()
 Shows the ScummVM save dialog, allowing users to save their game. More...
bool loadGameDialog ()
 Shows the ScummVM Restore dialog, allowing users to load a game. More...
void pauseEngine (bool pause)
 Pause or resume the engine. More...
bool isPaused () const
 Return whether the engine is currently paused or not. More...
void openMainMenuDialog ()
 Run the Global Main Menu Dialog. More...
uint32 getTotalPlayTime () const
 Get the total play time. More...
void setTotalPlayTime (uint32 time=0)
 Set the game time counter to the specified time. More...
Common::TimerManagergetTimerManager ()
Common::EventManagergetEventManager ()
Common::SaveFileManagergetSaveFileManager ()
void checkCD ()
 On some systems, check if the game appears to be run from CD. More...
void handleAutoSave ()
 Checks for whether it's time to do an autosave, and if so, does it. More...
void saveAutosaveIfEnabled ()
 Does an autosave immediately if autosaves are turned on. More...
virtual bool canSaveAutosaveCurrently ()
 Indicates whether an autosave can currently be saved. More...
virtual int getAutosaveSlot () const
 Returns the slot that should be used for autosaves. More...
bool shouldPerformAutoSave (int lastSaveTime)
- Public Member Functions inherited from Pegasus::InputHandler
 InputHandler (InputHandler *)
virtual ~InputHandler ()
virtual void setNextHandler (InputHandler *nextHandler)
virtual InputHandlergetNextHandler ()
virtual bool releaseInputFocus ()
virtual void grabInputFocus ()
virtual void allowInput (const bool allow)
- Public Member Functions inherited from Pegasus::NotificationManager
 NotificationManager ()
 ~NotificationManager () override
void checkNotifications ()
- Public Member Functions inherited from Pegasus::NotificationReceiver
 NotificationReceiver ()
virtual ~NotificationReceiver ()

Static Public Member Functions

static Common::Array< Common::Keymap * > initKeymaps ()
static Common::StringArray listSaveFiles ()
- Static Public Member Functions inherited from Engine
static void quitGame ()
 Request the engine to quit. More...
static bool shouldQuit ()
 Return whether the ENGINE should quit respectively should return to the launcher. More...
static MetaEnginegetMetaEngine ()
static bool warnUserAboutUnsupportedGame ()
 Display a warning to the user that the game is not fully supported. More...
- 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 ()

Public Attributes

const PegasusGameDescription_gameDescription
- Public Attributes inherited from Engine

Protected Member Functions

Common::Error run () override
 Init the engine and start its main loop. More...
void pauseEngineIntern (bool pause) override
 Actual implementation of pauseEngine by subclasses. More...
void receiveNotification (Notification *notification, const NotificationFlags flags) override
void handleInput (const Input &input, const Hotspot *cursorSpot) override
bool isClickInput (const Input &, const Hotspot *) override
InputBits getClickFilter () override
void clickInHotspot (const Input &, const Hotspot *) override
void activateHotspots (void) override
void updateCursor (const Common::Point, const Hotspot *) override
bool wantsCursor () override
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
- Protected Member Functions inherited from Pegasus::NotificationManager
void addNotification (Notification *notification)
void removeNotification (Notification *notification)
void detachNotifications ()
- Protected Member Functions inherited from Pegasus::NotificationReceiver
virtual void newNotification (Notification *notification)

Protected Attributes

Notification _shellNotification
- Protected Attributes inherited from Engine
const Common::String _targetName
- Protected Attributes inherited from Pegasus::InputHandler
bool _allowInput
- Protected Attributes inherited from Pegasus::NotificationManager
NotificationList _notifications

Private Member Functions

void runIntro ()
void stopIntroTimer ()
bool detectOpeningClosingDirectory ()
void giveIdleTime ()
void createItems ()
void createItem (ItemID itemID, NeighborhoodID neighborhoodID, RoomID roomID, DirectionConstant direction)
void destroyInventoryItem (const ItemID itemID)
ItemID pickItemToDestroy ()
bool loadFromStream (Common::SeekableReadStream *stream)
bool writeToStream (Common::WriteStream *stream, int saveType)
void loadFromContinuePoint ()
void writeContinueStream (Common::WriteStream *stream)
Common::Error showLoadDialog ()
Common::Error showSaveDialog ()
void showSaveFailedDialog (const Common::Error &status)
void showTempScreen (const Common::String &fileName)
bool playMovieScaled (Video::VideoDecoder *video, uint16 x, uint16 y)
void throwAwayEverything ()
void shellGameInput (const Input &input, const Hotspot *cursorSpot)
void doSubChase ()
uint getNeighborhoodCD (const NeighborhoodID neighborhood) const
InputBits getInputFilter () override
void doGameMenuCommand (const GameMenuCommand)
void doInterfaceOverview ()
void pauseMenu (bool menuUp)
void doDeath ()
void useNeighborhood (Neighborhood *neighborhood)
void performJump (NeighborhoodID start)
void startNewGame ()
void startNeighborhood ()
void makeNeighborhood (NeighborhoodID, Neighborhood *&)
void switchGameMode (const GameMode, const GameMode)
bool canSwitchGameMode (const GameMode, const GameMode)
void toggleInventoryDisplay ()
void toggleBiochipDisplay ()
void raiseInventoryDrawer ()
void raiseBiochipDrawer ()
void lowerInventoryDrawer ()
void lowerBiochipDrawer ()
void raiseInventoryDrawerSync ()
void raiseBiochipDrawerSync ()
void lowerInventoryDrawerSync ()
void lowerBiochipDrawerSync ()
void showInfoScreen ()
void hideInfoScreen ()
void toggleInfo ()

Private Attributes

Common::String _introDirectory
ItemList _allItems
Inventory _items
Inventory _biochips
ItemID _currentItemID
ItemID _currentBiochipID
Common::List< TimeBase * > _timeBases
bool _saveAllowed
bool _loadAllowed
bool _saveRequested
bool _loadRequested
Hotspot _returnHotspot
HotspotList _allHotspots
uint _currentCD
ScreenDimmer _screenDimmer
int32 _savedEnergyValue
DeathReason _deathReason
uint16 _ambientLevel
uint16 _FXLevel
GameMode _gameMode
bool _switchModesSync
ItemDragger _itemDragger
DragType _dragType
AutoDragger _autoDragger
Movie _bigInfoMovie
Movie _smallInfoMovie


class InputHandler

Additional Inherited Members

- Public Types inherited from Engine
enum  EngineFeature { kSupportsSubtitleOptions, kSupportsRTL, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime }
 A feature in this context means an ability of the engine which can be either available or not. More...
- Static Protected Attributes inherited from Pegasus::InputHandler
static InputHandler_inputHandler = 0
static bool _invalHotspots = false
static InputBits _lastFilter = kFilterNoInput

Detailed Description

Definition at line 71 of file pegasus.h.

Constructor & Destructor Documentation

◆ PegasusEngine()

Pegasus::PegasusEngine::PegasusEngine ( OSystem syst,
const PegasusGameDescription gamedesc 

Definition at line 81 of file pegasus.cpp.

◆ ~PegasusEngine()

Pegasus::PegasusEngine::~PegasusEngine ( )

Definition at line 102 of file pegasus.cpp.

Member Function Documentation

◆ activateHotspots()

void Pegasus::PegasusEngine::activateHotspots ( void  )

Reimplemented from Pegasus::InputHandler.

Definition at line 2015 of file pegasus.cpp.

◆ addIdler()

void Pegasus::PegasusEngine::addIdler ( Idler idler)

Definition at line 392 of file pegasus.cpp.

◆ addItemToBiochips()

InventoryResult Pegasus::PegasusEngine::addItemToBiochips ( BiochipItem biochip)

Definition at line 2084 of file pegasus.cpp.

◆ addItemToInventory()

InventoryResult Pegasus::PegasusEngine::addItemToInventory ( InventoryItem item)

Definition at line 1557 of file pegasus.cpp.

◆ addTimeBase()

void Pegasus::PegasusEngine::addTimeBase ( TimeBase timeBase)

Definition at line 416 of file pegasus.cpp.

◆ autoDragItemIntoInventory()

void Pegasus::PegasusEngine::autoDragItemIntoInventory ( Item ,
Sprite draggingSprite 

Definition at line 2185 of file pegasus.cpp.

◆ autoDragItemIntoRoom()

void Pegasus::PegasusEngine::autoDragItemIntoRoom ( Item item,
Sprite draggingSprite 

Definition at line 2142 of file pegasus.cpp.

◆ canLoadGameStateCurrently()

bool Pegasus::PegasusEngine::canLoadGameStateCurrently ( )

Indicates whether a game state can be loaded.

Reimplemented from Engine.

Definition at line 202 of file pegasus.cpp.

◆ canSaveGameStateCurrently()

bool Pegasus::PegasusEngine::canSaveGameStateCurrently ( )

Indicates whether a game state can be saved.

Reimplemented from Engine.

Definition at line 206 of file pegasus.cpp.

◆ canSolve()

bool Pegasus::PegasusEngine::canSolve ( )

Definition at line 1366 of file pegasus.cpp.

◆ canSwitchGameMode()

bool Pegasus::PegasusEngine::canSwitchGameMode ( const GameMode  newMode,
const GameMode  oldMode 

Definition at line 1534 of file pegasus.cpp.

◆ checkCallBacks()

void Pegasus::PegasusEngine::checkCallBacks ( )

Definition at line 764 of file pegasus.cpp.

◆ checkFlashlight()

void Pegasus::PegasusEngine::checkFlashlight ( )

Definition at line 1388 of file pegasus.cpp.

◆ checkGameMenu()

bool Pegasus::PegasusEngine::checkGameMenu ( )

Definition at line 849 of file pegasus.cpp.

◆ cleanUpAfterAIHint()

void Pegasus::PegasusEngine::cleanUpAfterAIHint ( const Common::String movieName)

Definition at line 1378 of file pegasus.cpp.

◆ clickInHotspot()

void Pegasus::PegasusEngine::clickInHotspot ( const Input input,
const Hotspot clickedSpot 

Reimplemented from Pegasus::InputHandler.

Definition at line 2040 of file pegasus.cpp.

◆ countInventoryItems()

uint32 Pegasus::PegasusEngine::countInventoryItems ( )

Definition at line 155 of file pegasus.h.

◆ createInterface()

void Pegasus::PegasusEngine::createInterface ( )

Definition at line 1485 of file pegasus.cpp.

◆ createItem()

void Pegasus::PegasusEngine::createItem ( ItemID  itemID,
NeighborhoodID  neighborhoodID,
RoomID  roomID,
DirectionConstant  direction 

Definition at line 264 of file pegasus.cpp.

◆ createItems()

void Pegasus::PegasusEngine::createItems ( )

Definition at line 243 of file pegasus.cpp.

◆ delayShell()

void Pegasus::PegasusEngine::delayShell ( TimeValue  time,
TimeScale  scale 

Definition at line 823 of file pegasus.cpp.

◆ destroyInventoryItem()

void Pegasus::PegasusEngine::destroyInventoryItem ( const ItemID  itemID)

Definition at line 2329 of file pegasus.cpp.

◆ detectOpeningClosingDirectory()

bool Pegasus::PegasusEngine::detectOpeningClosingDirectory ( )

Definition at line 210 of file pegasus.cpp.

◆ die()

void Pegasus::PegasusEngine::die ( const DeathReason  reason)

Definition at line 1421 of file pegasus.cpp.

◆ doDeath()

void Pegasus::PegasusEngine::doDeath ( )

Definition at line 1430 of file pegasus.cpp.

◆ doGameMenuCommand()

void Pegasus::PegasusEngine::doGameMenuCommand ( const GameMenuCommand  command)

Definition at line 863 of file pegasus.cpp.

◆ doInterfaceOverview()

void Pegasus::PegasusEngine::doInterfaceOverview ( )

Definition at line 1071 of file pegasus.cpp.

◆ doSubChase()

void Pegasus::PegasusEngine::doSubChase ( )

Definition at line 2266 of file pegasus.cpp.

◆ dragItem()

void Pegasus::PegasusEngine::dragItem ( const Input input,
Item item,
DragType  type 

Definition at line 1941 of file pegasus.cpp.

◆ dragTerminated()

void Pegasus::PegasusEngine::dragTerminated ( const Input )

Definition at line 1897 of file pegasus.cpp.

◆ drawScaledFrame()

void Pegasus::PegasusEngine::drawScaledFrame ( const Graphics::Surface frame,
uint16  x,
uint16  y 

Definition at line 2314 of file pegasus.cpp.

◆ getAllHotspots()

HotspotList& Pegasus::PegasusEngine::getAllHotspots ( )

Definition at line 121 of file pegasus.h.

◆ getAllItems()

ItemList& Pegasus::PegasusEngine::getAllItems ( )

Definition at line 141 of file pegasus.h.

◆ getAmbienceLevel()

uint16 Pegasus::PegasusEngine::getAmbienceLevel ( )

Definition at line 137 of file pegasus.h.

◆ getBiochipsInventory()

Inventory* Pegasus::PegasusEngine::getBiochipsInventory ( )

Definition at line 161 of file pegasus.h.

◆ getBriefingMovie()

Common::String Pegasus::PegasusEngine::getBriefingMovie ( )

Definition at line 1338 of file pegasus.cpp.

◆ getClickFilter()

InputBits Pegasus::PegasusEngine::getClickFilter ( )

Reimplemented from Pegasus::InputHandler.

Definition at line 2036 of file pegasus.cpp.

◆ getCurrentBiochip()

BiochipItem * Pegasus::PegasusEngine::getCurrentBiochip ( )

Definition at line 1319 of file pegasus.cpp.

◆ getCurrentInventoryItem()

InventoryItem * Pegasus::PegasusEngine::getCurrentInventoryItem ( )

Definition at line 1304 of file pegasus.cpp.

◆ getCurrentNeighborhoodID()

NeighborhoodID Pegasus::PegasusEngine::getCurrentNeighborhoodID ( ) const

Definition at line 2219 of file pegasus.cpp.

◆ getDraggingItem()

Item* Pegasus::PegasusEngine::getDraggingItem ( ) const

Definition at line 183 of file pegasus.h.

◆ getDragType()

DragType Pegasus::PegasusEngine::getDragType ( ) const

Definition at line 182 of file pegasus.h.

◆ getEnergyDeathReason()

DeathReason Pegasus::PegasusEngine::getEnergyDeathReason ( )

Definition at line 129 of file pegasus.h.

◆ getEnvScanMovie()

Common::String Pegasus::PegasusEngine::getEnvScanMovie ( )

Definition at line 1345 of file pegasus.cpp.

◆ getGameMode()

GameMode Pegasus::PegasusEngine::getGameMode ( ) const

Definition at line 116 of file pegasus.h.

◆ getHintMovie()

Common::String Pegasus::PegasusEngine::getHintMovie ( uint  hintNum)

Definition at line 1359 of file pegasus.cpp.

◆ getInputFilter()

InputBits Pegasus::PegasusEngine::getInputFilter ( )

Reimplemented from Pegasus::InputHandler.

Definition at line 1469 of file pegasus.cpp.

◆ getItemsInventory()

Inventory* Pegasus::PegasusEngine::getItemsInventory ( )

Definition at line 151 of file pegasus.h.

◆ getNeighborhoodCD()

uint Pegasus::PegasusEngine::getNeighborhoodCD ( const NeighborhoodID  neighborhood) const

Definition at line 2454 of file pegasus.cpp.

◆ getNumHints()

uint Pegasus::PegasusEngine::getNumHints ( )

Definition at line 1352 of file pegasus.cpp.

◆ getRandomBit()

uint Pegasus::PegasusEngine::getRandomBit ( )

Definition at line 2238 of file pegasus.cpp.

◆ getRandomNumber()

uint Pegasus::PegasusEngine::getRandomNumber ( uint  max)

Definition at line 2242 of file pegasus.cpp.

◆ getSavedEnergyValue()

int32 Pegasus::PegasusEngine::getSavedEnergyValue ( )

Definition at line 125 of file pegasus.h.

◆ getSoundFXLevel()

uint16 Pegasus::PegasusEngine::getSoundFXLevel ( )

Definition at line 135 of file pegasus.h.

◆ giveIdleTime()

void Pegasus::PegasusEngine::giveIdleTime ( )

Definition at line 411 of file pegasus.cpp.

◆ handleInput()

void Pegasus::PegasusEngine::handleInput ( const Input input,
const Hotspot cursorSpot 

Reimplemented from Pegasus::InputHandler.

Definition at line 1011 of file pegasus.cpp.

◆ hasFeature()

bool Pegasus::PegasusEngine::hasFeature ( EngineFeature  f) const

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

Definition at line 42 of file detection.cpp.

◆ hideInfoScreen()

void Pegasus::PegasusEngine::hideInfoScreen ( )

Definition at line 1833 of file pegasus.cpp.

◆ initKeymaps()

Common::KeymapArray Pegasus::PegasusEngine::initKeymaps ( )

Definition at line 2480 of file pegasus.cpp.

◆ introTimerExpired()

void Pegasus::PegasusEngine::introTimerExpired ( )

Definition at line 777 of file pegasus.cpp.

◆ isClickInput()

bool Pegasus::PegasusEngine::isClickInput ( const Input input,
const Hotspot cursorSpot 

Reimplemented from Pegasus::InputHandler.

Definition at line 2029 of file pegasus.cpp.

◆ isDemo()

bool Pegasus::PegasusEngine::isDemo ( ) const

Definition at line 49 of file detection.cpp.

◆ isDragging()

bool Pegasus::PegasusEngine::isDragging ( ) const

Definition at line 181 of file pegasus.h.

◆ isDVD()

bool Pegasus::PegasusEngine::isDVD ( ) const

Definition at line 53 of file detection.cpp.

◆ isDVDDemo()

bool Pegasus::PegasusEngine::isDVDDemo ( ) const

Definition at line 57 of file detection.cpp.

◆ isOldDemo()

bool Pegasus::PegasusEngine::isOldDemo ( ) const

Definition at line 61 of file detection.cpp.

◆ isWindows()

bool Pegasus::PegasusEngine::isWindows ( ) const

Definition at line 65 of file detection.cpp.

◆ itemInBiochips() [1/2]

bool Pegasus::PegasusEngine::itemInBiochips ( BiochipItem item)

Definition at line 1326 of file pegasus.cpp.

◆ itemInBiochips() [2/2]

bool Pegasus::PegasusEngine::itemInBiochips ( ItemID  id)

Definition at line 1330 of file pegasus.cpp.

◆ itemInInventory() [1/2]

bool Pegasus::PegasusEngine::itemInInventory ( InventoryItem item)

Definition at line 1311 of file pegasus.cpp.

◆ itemInInventory() [2/2]

bool Pegasus::PegasusEngine::itemInInventory ( ItemID  id)

Definition at line 1315 of file pegasus.cpp.

◆ itemInLocation()

bool Pegasus::PegasusEngine::itemInLocation ( const ItemID  itemID,
const NeighborhoodID  neighborhood,
const RoomID  room,
const DirectionConstant  direction 

Definition at line 1546 of file pegasus.cpp.

◆ jumpToNewEnvironment()

void Pegasus::PegasusEngine::jumpToNewEnvironment ( const NeighborhoodID  neighborhoodID,
const RoomID  roomID,
const DirectionConstant  direction 

Definition at line 1383 of file pegasus.cpp.

◆ listSaveFiles()

Common::StringArray Pegasus::PegasusEngine::listSaveFiles ( )

Definition at line 668 of file pegasus.cpp.

◆ loadFromContinuePoint()

void Pegasus::PegasusEngine::loadFromContinuePoint ( )

Definition at line 641 of file pegasus.cpp.

◆ loadFromStream()

bool Pegasus::PegasusEngine::loadFromStream ( Common::SeekableReadStream stream)

Definition at line 424 of file pegasus.cpp.

◆ loadGameState()

Common::Error Pegasus::PegasusEngine::loadGameState ( int  slot)

Load a game state.

slotthe slot from which a savestate should be loaded
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 674 of file pegasus.cpp.

◆ loadRequested()

bool Pegasus::PegasusEngine::loadRequested ( ) const

Definition at line 203 of file pegasus.h.

◆ lowerBiochipDrawer()

void Pegasus::PegasusEngine::lowerBiochipDrawer ( )

Definition at line 1865 of file pegasus.cpp.

◆ lowerBiochipDrawerSync()

void Pegasus::PegasusEngine::lowerBiochipDrawerSync ( )

Definition at line 1885 of file pegasus.cpp.

◆ lowerInventoryDrawer()

void Pegasus::PegasusEngine::lowerInventoryDrawer ( )

Definition at line 1860 of file pegasus.cpp.

◆ lowerInventoryDrawerSync()

void Pegasus::PegasusEngine::lowerInventoryDrawerSync ( )

Definition at line 1880 of file pegasus.cpp.

◆ makeContinuePoint()

void Pegasus::PegasusEngine::makeContinuePoint ( )

Definition at line 626 of file pegasus.cpp.

◆ makeNeighborhood()

void Pegasus::PegasusEngine::makeNeighborhood ( NeighborhoodID  neighborhoodID,
Neighborhood *&  neighborhood 

Definition at line 1708 of file pegasus.cpp.

◆ pauseEngineIntern()

void Pegasus::PegasusEngine::pauseEngineIntern ( bool  pause)

Actual implementation of pauseEngine by subclasses.

See there for details.

Reimplemented from Engine.

Definition at line 2226 of file pegasus.cpp.

◆ pauseMenu()

void Pegasus::PegasusEngine::pauseMenu ( bool  menuUp)

Definition at line 2126 of file pegasus.cpp.

◆ performJump()

void Pegasus::PegasusEngine::performJump ( NeighborhoodID  start)

Definition at line 1593 of file pegasus.cpp.

◆ pickItemToDestroy()

ItemID Pegasus::PegasusEngine::pickItemToDestroy ( )

Definition at line 2380 of file pegasus.cpp.

◆ playEndMessage()

void Pegasus::PegasusEngine::playEndMessage ( )

Definition at line 2256 of file pegasus.cpp.

◆ playerAlive()

bool Pegasus::PegasusEngine::playerAlive ( )

Definition at line 1334 of file pegasus.cpp.

◆ playerHasItem()

bool Pegasus::PegasusEngine::playerHasItem ( const Item item)

Definition at line 1296 of file pegasus.cpp.

◆ playerHasItemID()

bool Pegasus::PegasusEngine::playerHasItemID ( const ItemID  itemID)

Definition at line 1300 of file pegasus.cpp.

◆ playMovieScaled()

bool Pegasus::PegasusEngine::playMovieScaled ( Video::VideoDecoder video,
uint16  x,
uint16  y 

Definition at line 1393 of file pegasus.cpp.

◆ prepareForAIHint()

void Pegasus::PegasusEngine::prepareForAIHint ( const Common::String movieName)

Definition at line 1373 of file pegasus.cpp.

◆ processShell()

void Pegasus::PegasusEngine::processShell ( )

Definition at line 1478 of file pegasus.cpp.

◆ raiseBiochipDrawer()

void Pegasus::PegasusEngine::raiseBiochipDrawer ( )

Definition at line 1855 of file pegasus.cpp.

◆ raiseBiochipDrawerSync()

void Pegasus::PegasusEngine::raiseBiochipDrawerSync ( )

Definition at line 1875 of file pegasus.cpp.

◆ raiseInventoryDrawer()

void Pegasus::PegasusEngine::raiseInventoryDrawer ( )

Definition at line 1850 of file pegasus.cpp.

◆ raiseInventoryDrawerSync()

void Pegasus::PegasusEngine::raiseInventoryDrawerSync ( )

Definition at line 1870 of file pegasus.cpp.

◆ receiveNotification()

void Pegasus::PegasusEngine::receiveNotification ( Notification notification,
const NotificationFlags  flags 

Reimplemented from Pegasus::NotificationReceiver.

Definition at line 714 of file pegasus.cpp.

◆ refreshDisplay()

void Pegasus::PegasusEngine::refreshDisplay ( )

Definition at line 1273 of file pegasus.cpp.

◆ removeAllItemsFromBiochips()

void Pegasus::PegasusEngine::removeAllItemsFromBiochips ( )

Definition at line 2105 of file pegasus.cpp.

◆ removeAllItemsFromInventory()

void Pegasus::PegasusEngine::removeAllItemsFromInventory ( )

Definition at line 2066 of file pegasus.cpp.

◆ removeIdler()

void Pegasus::PegasusEngine::removeIdler ( Idler idler)

Definition at line 400 of file pegasus.cpp.

◆ removeItemFromInventory()

InventoryResult Pegasus::PegasusEngine::removeItemFromInventory ( InventoryItem item)

Definition at line 2052 of file pegasus.cpp.

◆ removeTimeBase()

void Pegasus::PegasusEngine::removeTimeBase ( TimeBase timeBase)

Definition at line 420 of file pegasus.cpp.

◆ requestLoad()

void Pegasus::PegasusEngine::requestLoad ( )

Definition at line 202 of file pegasus.h.

◆ requestSave()

void Pegasus::PegasusEngine::requestSave ( )

Definition at line 200 of file pegasus.h.

◆ resetEnergyDeathReason()

void Pegasus::PegasusEngine::resetEnergyDeathReason ( )

Definition at line 1278 of file pegasus.cpp.

◆ resetIntroTimer()

void Pegasus::PegasusEngine::resetIntroTimer ( )

Definition at line 769 of file pegasus.cpp.

◆ run()

Common::Error Pegasus::PegasusEngine::run ( )

Init the engine and start its main loop.

returns kNoError on success, else an error code.

Implements Engine.

Definition at line 124 of file pegasus.cpp.

◆ runIntro()

void Pegasus::PegasusEngine::runIntro ( )

Definition at line 305 of file pegasus.cpp.

◆ saveGameState()

Common::Error Pegasus::PegasusEngine::saveGameState ( int  slot,
const Common::String desc,
bool  isAutosave = false 

Save a game state.

slotthe slot into which the savestate should be stored
desca description for the savestate, entered by the user
isAutosaveExpected to be true if an autosave is being created
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 699 of file pegasus.cpp.

◆ saveRequested()

bool Pegasus::PegasusEngine::saveRequested ( ) const

Definition at line 201 of file pegasus.h.

◆ setAmbienceLevel()

void Pegasus::PegasusEngine::setAmbienceLevel ( uint16  ambientLevel)

Definition at line 2120 of file pegasus.cpp.

◆ setEnergyDeathReason()

void Pegasus::PegasusEngine::setEnergyDeathReason ( const DeathReason  reason)

Definition at line 128 of file pegasus.h.

◆ setGameMode()

void Pegasus::PegasusEngine::setGameMode ( const GameMode  newMode)

Definition at line 1492 of file pegasus.cpp.

◆ setLastEnergyValue()

void Pegasus::PegasusEngine::setLastEnergyValue ( const int32  value)

Definition at line 124 of file pegasus.h.

◆ setSoundFXLevel()

void Pegasus::PegasusEngine::setSoundFXLevel ( uint16  fxLevel)

Definition at line 2112 of file pegasus.cpp.

◆ shellGameInput()

void Pegasus::PegasusEngine::shellGameInput ( const Input input,
const Hotspot cursorSpot 

Definition at line 1978 of file pegasus.cpp.

◆ showInfoScreen()

void Pegasus::PegasusEngine::showInfoScreen ( )

Definition at line 1794 of file pegasus.cpp.

◆ showLoadDialog()

Common::Error Pegasus::PegasusEngine::showLoadDialog ( )

Definition at line 354 of file pegasus.cpp.

◆ showSaveDialog()

Common::Error Pegasus::PegasusEngine::showSaveDialog ( )

Definition at line 373 of file pegasus.cpp.

◆ showSaveFailedDialog()

void Pegasus::PegasusEngine::showSaveFailedDialog ( const Common::Error status)

Definition at line 384 of file pegasus.cpp.

◆ showTempScreen()

void Pegasus::PegasusEngine::showTempScreen ( const Common::String fileName)

Definition at line 1240 of file pegasus.cpp.

◆ shuffleArray()

void Pegasus::PegasusEngine::shuffleArray ( int32 arr,
int32  count 

Definition at line 2246 of file pegasus.cpp.

◆ startNeighborhood()

void Pegasus::PegasusEngine::startNeighborhood ( )

Definition at line 1620 of file pegasus.cpp.

◆ startNewGame()

void Pegasus::PegasusEngine::startNewGame ( )

Definition at line 1633 of file pegasus.cpp.

◆ stopIntroTimer()

void Pegasus::PegasusEngine::stopIntroTimer ( )

Definition at line 818 of file pegasus.cpp.

◆ swapLoadAllowed()

bool Pegasus::PegasusEngine::swapLoadAllowed ( bool  allow)

Definition at line 195 of file pegasus.h.

◆ swapSaveAllowed()

bool Pegasus::PegasusEngine::swapSaveAllowed ( bool  allow)

Definition at line 190 of file pegasus.h.

◆ switchGameMode()

void Pegasus::PegasusEngine::switchGameMode ( const GameMode  newMode,
const GameMode  oldMode 

Definition at line 1499 of file pegasus.cpp.

◆ throwAwayEverything()

void Pegasus::PegasusEngine::throwAwayEverything ( )

Definition at line 1451 of file pegasus.cpp.

◆ toggleBiochipDisplay()

void Pegasus::PegasusEngine::toggleBiochipDisplay ( )

Definition at line 1787 of file pegasus.cpp.

◆ toggleInfo()

void Pegasus::PegasusEngine::toggleInfo ( )

Definition at line 1890 of file pegasus.cpp.

◆ toggleInventoryDisplay()

void Pegasus::PegasusEngine::toggleInventoryDisplay ( )

Definition at line 1780 of file pegasus.cpp.

◆ updateCursor()

void Pegasus::PegasusEngine::updateCursor ( const Common::Point  ,
const Hotspot cursorSpot 

Reimplemented from Pegasus::InputHandler.

Definition at line 1746 of file pegasus.cpp.

◆ useMenu()

void Pegasus::PegasusEngine::useMenu ( GameMenu menu)

Definition at line 837 of file pegasus.cpp.

◆ useNeighborhood()

void Pegasus::PegasusEngine::useNeighborhood ( Neighborhood neighborhood)

Definition at line 1579 of file pegasus.cpp.

◆ wantsCursor()

bool Pegasus::PegasusEngine::wantsCursor ( )

Reimplemented from Pegasus::InputHandler.

Definition at line 1742 of file pegasus.cpp.

◆ writeContinueStream()

void Pegasus::PegasusEngine::writeContinueStream ( Common::WriteStream stream)

Definition at line 653 of file pegasus.cpp.

◆ writeToStream()

bool Pegasus::PegasusEngine::writeToStream ( Common::WriteStream stream,
int  saveType 

Definition at line 557 of file pegasus.cpp.

Friends And Related Function Documentation

◆ InputHandler

friend class InputHandler

Definition at line 72 of file pegasus.h.

Member Data Documentation

◆ _aiSaveStream

Common::SeekableReadStream* Pegasus::PegasusEngine::_aiSaveStream

Definition at line 173 of file pegasus.h.

◆ _allHotspots

HotspotList Pegasus::PegasusEngine::_allHotspots

Definition at line 263 of file pegasus.h.

◆ _allItems

ItemList Pegasus::PegasusEngine::_allItems

Definition at line 236 of file pegasus.h.

◆ _ambientLevel

uint16 Pegasus::PegasusEngine::_ambientLevel

Definition at line 298 of file pegasus.h.

◆ _autoDragger

AutoDragger Pegasus::PegasusEngine::_autoDragger

Definition at line 312 of file pegasus.h.

◆ _bigInfoMovie

Movie Pegasus::PegasusEngine::_bigInfoMovie

Definition at line 328 of file pegasus.h.

◆ _biochips

Inventory Pegasus::PegasusEngine::_biochips

Definition at line 240 of file pegasus.h.

◆ _continuePoint

Common::SeekableReadStream* Pegasus::PegasusEngine::_continuePoint

Definition at line 254 of file pegasus.h.

◆ _currentBiochipID

ItemID Pegasus::PegasusEngine::_currentBiochipID

Definition at line 242 of file pegasus.h.

◆ _currentCD

uint Pegasus::PegasusEngine::_currentCD

Definition at line 272 of file pegasus.h.

◆ _currentItemID

ItemID Pegasus::PegasusEngine::_currentItemID

Definition at line 241 of file pegasus.h.

◆ _cursor

Cursor* Pegasus::PegasusEngine::_cursor

Definition at line 91 of file pegasus.h.

◆ _deathReason

DeathReason Pegasus::PegasusEngine::_deathReason

Definition at line 286 of file pegasus.h.

◆ _draggingItem

Item* Pegasus::PegasusEngine::_draggingItem

Definition at line 309 of file pegasus.h.

◆ _draggingSprite

Sprite* Pegasus::PegasusEngine::_draggingSprite

Definition at line 310 of file pegasus.h.

◆ _dragType

DragType Pegasus::PegasusEngine::_dragType

Definition at line 311 of file pegasus.h.

◆ _FXLevel

uint16 Pegasus::PegasusEngine::_FXLevel

Definition at line 299 of file pegasus.h.

◆ _gameDescription

const PegasusGameDescription* Pegasus::PegasusEngine::_gameDescription

Definition at line 79 of file pegasus.h.

◆ _gameMenu

GameMenu* Pegasus::PegasusEngine::_gameMenu

Definition at line 276 of file pegasus.h.

◆ _gameMode

GameMode Pegasus::PegasusEngine::_gameMode

Definition at line 302 of file pegasus.h.

◆ _gfx

GraphicsManager* Pegasus::PegasusEngine::_gfx

Definition at line 89 of file pegasus.h.

◆ _idlerHead

Idler* Pegasus::PegasusEngine::_idlerHead

Definition at line 232 of file pegasus.h.

◆ _introDirectory

Common::String Pegasus::PegasusEngine::_introDirectory

Definition at line 228 of file pegasus.h.

◆ _introTimer

FuseFunction* Pegasus::PegasusEngine::_introTimer

Definition at line 229 of file pegasus.h.

◆ _itemDragger

ItemDragger Pegasus::PegasusEngine::_itemDragger

Definition at line 308 of file pegasus.h.

◆ _items

Inventory Pegasus::PegasusEngine::_items

Definition at line 239 of file pegasus.h.

◆ _loadAllowed

bool Pegasus::PegasusEngine::_loadAllowed

Definition at line 255 of file pegasus.h.

◆ _loadRequested

bool Pegasus::PegasusEngine::_loadRequested

Definition at line 259 of file pegasus.h.

◆ _neighborhood

Neighborhood* Pegasus::PegasusEngine::_neighborhood

Definition at line 290 of file pegasus.h.

◆ _resFork

Common::MacResManager* Pegasus::PegasusEngine::_resFork

Definition at line 90 of file pegasus.h.

◆ _returnHotspot

Hotspot Pegasus::PegasusEngine::_returnHotspot

Definition at line 262 of file pegasus.h.

◆ _rnd

Common::RandomSource* Pegasus::PegasusEngine::_rnd

Definition at line 269 of file pegasus.h.

◆ _saveAllowed

bool Pegasus::PegasusEngine::_saveAllowed

Definition at line 255 of file pegasus.h.

◆ _savedEnergyValue

int32 Pegasus::PegasusEngine::_savedEnergyValue

Definition at line 283 of file pegasus.h.

◆ _savedHandler

InputHandler* Pegasus::PegasusEngine::_savedHandler

Definition at line 264 of file pegasus.h.

◆ _saveRequested

bool Pegasus::PegasusEngine::_saveRequested

Definition at line 259 of file pegasus.h.

◆ _screenDimmer

ScreenDimmer Pegasus::PegasusEngine::_screenDimmer

Definition at line 279 of file pegasus.h.

◆ _shellNotification

Notification Pegasus::PegasusEngine::_shellNotification

Definition at line 210 of file pegasus.h.

◆ _smallInfoMovie

Movie Pegasus::PegasusEngine::_smallInfoMovie

Definition at line 328 of file pegasus.h.

◆ _switchModesSync

bool Pegasus::PegasusEngine::_switchModesSync

Definition at line 303 of file pegasus.h.

◆ _timeBases

Common::List<TimeBase *> Pegasus::PegasusEngine::_timeBases

Definition at line 247 of file pegasus.h.

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