CGE::CGEEngine Class Reference

#include <cge.h>

Inheritance diagram for CGE::CGEEngine:
Collaboration diagram for CGE::CGEEngine:

Public Member Functions

 CGEEngine (OSystem *syst, const ADGameDescription *gameDescription)
 ~CGEEngine ()
virtual bool hasFeature (EngineFeature f) const
 Determine whether the engine supports the specified feature. More...
virtual bool canLoadGameStateCurrently ()
 Indicates whether a game state can be loaded. More...
virtual bool canSaveGameStateCurrently ()
 Indicates whether a game state can be saved. More...
virtual Common::Error loadGameState (int slot)
 Load a game state. More...
virtual Common::Error saveGameState (int slot, const Common::String &desc)
 Save a game state. More...
virtual Common::Error run ()
 Init the engine and start its main loop. More...
GUI::DebuggergetDebugger ()
 Return the engine's debugger instance, if any. More...
void cge_main ()
void switchScene (int newScene)
void startCountDown ()
 Shutdown game. More...
void quit ()
void resetQSwitch ()
void optionTouch (int opt, uint16 mask)
void resetGame ()
bool loadGame (int slotNumber, SavegameHeader *header=NULL, bool tiny=false)
void setMapBrick (int x, int z)
void switchMapping ()
void loadSprite (const char *fname, int ref, int scene, int col, int row, int pos)
void loadScript (const char *fname)
void loadUser ()
void runGame ()
bool showTitle (const char *name)
void movie (const char *ext)
void inf (const char *text, bool wideSpace=false)
void selectSound ()
void dummy ()
void NONE ()
void SB ()
void sceneDown ()
void sceneUp ()
void xScene ()
void qGame ()
void SBM ()
void GUS ()
void GUSM ()
void MIDI ()
void AUTO ()
void setPortD ()
void setPortM ()
void setIRQ ()
void setDMA ()
void mainLoop ()
void handleFrame ()
void saveGame (int slotNumber, const Common::String &desc)
void switchMusic ()
 Switch music on/off. More...
void selectPocket (int n)
 Check if an item is in the inventory, and returns its position. More...
void expandSprite (Sprite *spr)
void contractSprite (Sprite *spr)
int findPocket (Sprite *spr)
 Check if an item is in the inventory, and returns its position. More...
void feedSnail (Sprite *spr, SnList snq)
void pocFul ()
 Logic used when all the inventory slots are full and the user tries to pick another object. More...
void hide1 (Sprite *spr)
void loadMapping ()
void heroCover (int cvr)
void trouble (int seq, int text)
void offUse ()
void tooFar ()
void loadHeroXY ()
void keyClick ()
void switchColorMode ()
 Switch greyscale mode on/off. More...
void killSprite ()
void switchDebug ()
void miniStep (int stp)
void postMiniStep (int stp)
void showBak (int ref)
void initSceneValues ()
char * mergeExt (char *buf, const char *name, const char *ext)
int takeEnum (const char **tab, const char *text)
int newRandom (int range)
void sndSetVolume ()
Spritelocate (int ref)
SpritespriteAt (int x, int y)
Cluster XZ (int16 x, int16 y)
void killText ()
void snBackPt (Sprite *spr, int stp)
void snHBarrier (const int scene, const int barX)
 Set an horizontal boundary. More...
void snVBarrier (const int scene, const int barY)
 Set a vertical boundary. More...
void snCover (Sprite *spr, int xref)
void snFlag (int indx, bool v)
 Set a flag to a value. More...
void snFlash (bool on)
void snGame (Sprite *spr, int num)
 Handles mini-Games logic. More...
void snGhost (Bitmap *bmp)
void snGive (Sprite *spr, int stp)
 Remove an object from the inventory and (if specified) trigger an animation. More...
void snHide (Sprite *spr, int val)
void snKeep (Sprite *spr, int stp)
void snKill (Sprite *spr)
void snLevel (Sprite *spr, int lev)
void snLight (bool in)
void snMouse (bool on)
void snNNext (Sprite *spr, int p)
void snPort (Sprite *spr, int port)
void snReach (Sprite *spr, int mode)
void snRelZ (Sprite *spr, int z)
void snRNNext (Sprite *spr, int p)
void snRTNext (Sprite *spr, int p)
void snSend (Sprite *spr, int val)
void snRelX (Sprite *spr, int x)
void snRelY (Sprite *spr, int y)
void snRmNear (Sprite *spr)
void snRmTake (Sprite *spr)
void snRSeq (Sprite *spr, int val)
void snSeq (Sprite *spr, int val)
void snSetRef (Sprite *spr, int nr)
void snSetX (Sprite *spr, int x)
void snSetX0 (int scene, int x0)
void snSetXY (Sprite *spr, uint16 xy)
void snSetY (Sprite *spr, int y)
void snSetY0 (int scene, int y0)
void snSetZ (Sprite *spr, int z)
void snSlave (Sprite *spr, int ref)
void snSound (Sprite *spr, int wav)
 Play a FX sound. More...
void snSwap (Sprite *spr, int xref)
void snTNext (Sprite *spr, int p)
void snTrans (Sprite *spr, int trans)
void snUncover (Sprite *spr, Sprite *xspr)
void snWalk (Sprite *spr, int x, int y)
void snZTrim (Sprite *spr)
- Public Member Functions inherited from Engine
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...
 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 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 initKeymap ()
virtual void deinitKeymap ()
virtual void flipMute ()
 Flip mute all sound option. More...
void setGameToLoadSlot (int slot)
 Sets the game slot for a savegame to be loaded after global main menu execution. More...

Static Public Member Functions

static WARN_UNUSED_RESULT bool readSavegameHeader (Common::InSaveFile *in, SavegameHeader &header, bool skipThumbnail=true)
- 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 bool warnUserAboutUnsupportedGame ()
 Display a warning to the user that the game is not fully supported. More...

Public Attributes

bool _quitFlag
bool _showBoundariesFl
const ADGameDescription_gameDescription
int _startupMode
int _oldLev
int _pocPtr
bool _music
int _pocref [kPocketNX]
uint8 _volume [2]
int _maxScene
bool _flag [4]
bool _dark
bool _game
bool _endGame
int _now
int _lev
int _mode
int _gameCase2Cpt
int _offUseCount
uint8 _clusterMap [kMapZCnt][kMapXCnt]
Common::Point _heroXY [kSceneMax]
Bar _barriers [kSceneMax+1]
Sprite_pocket [kPocketNX]
Common::RandomSource _randomSource
int _startGameSlot
- Public Attributes inherited from Engine

Static Public Attributes

static const int _maxSceneArr [5] = {1, 8, 16, 23, 24}

Protected Attributes

int _recentStep
- Protected Attributes inherited from Engine
const Common::String _targetName

Private Member Functions

void tick ()
void syncHeader (Common::Serializer &s)
void writeSavegameHeader (Common::OutSaveFile *out, SavegameHeader &header)
void syncGame (Common::SeekableReadStream *readStream, Common::WriteStream *writeStream, bool tiny)
bool savegameExists (int slotNumber)
 Returns true if a given savegame exists. More...
Common::String generateSaveName (int slot)
 Support method that generates a savegame name. More...
void init ()
void deinit ()

Private Attributes

uint32 _lastFrame
uint32 _lastTick

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...
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
bool shouldPerformAutoSave (int lastSaveTime)
 Indicate whether an autosave should be performed. More...
virtual void pauseEngineIntern (bool pause)
 Actual implementation of pauseEngine by subclasses. More...

Detailed Description

Definition at line 128 of file cge.h.

Constructor & Destructor Documentation

◆ CGEEngine()

CGE::CGEEngine::CGEEngine ( OSystem syst,
const ADGameDescription gameDescription 

Definition at line 45 of file cge.cpp.

◆ ~CGEEngine()

CGE::CGEEngine::~CGEEngine ( )

Definition at line 209 of file cge.cpp.

Member Function Documentation

◆ AUTO()

void CGE::CGEEngine::AUTO ( )

◆ canLoadGameStateCurrently()

bool CGE::CGEEngine::canLoadGameStateCurrently ( )

Indicates whether a game state can be loaded.

Reimplemented from Engine.

Definition at line 252 of file cge.cpp.

◆ canSaveGameStateCurrently()

bool CGE::CGEEngine::canSaveGameStateCurrently ( )

Indicates whether a game state can be saved.

Reimplemented from Engine.

Definition at line 256 of file cge.cpp.

◆ cge_main()

void CGE::CGEEngine::cge_main ( )

Definition at line 1526 of file cge_main.cpp.

◆ contractSprite()

void CGE::CGEEngine::contractSprite ( Sprite spr)

Definition at line 618 of file snail.cpp.

◆ deinit()

void CGE::CGEEngine::deinit ( )

Definition at line 172 of file cge.cpp.

◆ dummy()

void CGE::CGEEngine::dummy ( )

Definition at line 231 of file cge.h.

◆ expandSprite()

void CGE::CGEEngine::expandSprite ( Sprite spr)

Definition at line 611 of file snail.cpp.

◆ feedSnail()

void CGE::CGEEngine::feedSnail ( Sprite spr,
SnList  snq 

Definition at line 698 of file snail.cpp.

◆ findPocket()

int CGE::CGEEngine::findPocket ( Sprite spr)

Check if an item is in the inventory, and returns its position.

sprSprite pointer
-1 if not found, else index.

Definition at line 630 of file snail.cpp.

◆ generateSaveName()

Common::String CGE::CGEEngine::generateSaveName ( int  slot)

Support method that generates a savegame name.

slotSlot number

Definition at line 272 of file cge_main.cpp.

◆ getDebugger()

GUI::Debugger* CGE::CGEEngine::getDebugger ( )

Return the engine's debugger instance, if any.

Used by error() to invoke the debugger when a severe error is reported.

Reimplemented from Engine.

Definition at line 209 of file cge.h.

◆ GUS()

void CGE::CGEEngine::GUS ( )

◆ GUSM()

void CGE::CGEEngine::GUSM ( )

◆ handleFrame()

void CGE::CGEEngine::handleFrame ( )

Definition at line 1278 of file cge_main.cpp.

◆ hasFeature()

bool CGE::CGEEngine::hasFeature ( EngineFeature  f) const

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

Definition at line 245 of file cge.cpp.

◆ heroCover()

void CGE::CGEEngine::heroCover ( int  cvr)

Definition at line 467 of file cge_main.cpp.

◆ hide1()

void CGE::CGEEngine::hide1 ( Sprite spr)

Definition at line 683 of file snail.cpp.

◆ inf()

void CGE::CGEEngine::inf ( const char *  text,
bool  wideSpace = false 

Definition at line 184 of file text.cpp.

◆ init()

void CGE::CGEEngine::init ( void  )

Definition at line 129 of file cge.cpp.

◆ initSceneValues()

void CGE::CGEEngine::initSceneValues ( )

Definition at line 117 of file cge.cpp.

◆ keyClick()

void CGE::CGEEngine::keyClick ( )

Definition at line 561 of file cge_main.cpp.

◆ killSprite()

void CGE::CGEEngine::killSprite ( )

Definition at line 919 of file cge_main.cpp.

◆ killText()

void CGE::CGEEngine::killText ( )

Definition at line 1255 of file cge_main.cpp.

◆ loadGame()

bool CGE::CGEEngine::loadGame ( int  slotNumber,
SavegameHeader header = NULL,
bool  tiny = false 

Definition at line 194 of file cge_main.cpp.

◆ loadGameState()

Common::Error CGE::CGEEngine::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 276 of file cge_main.cpp.

◆ loadHeroXY()

void CGE::CGEEngine::loadHeroXY ( )

Definition at line 496 of file cge_main.cpp.

◆ loadMapping()

void CGE::CGEEngine::loadMapping ( )

Definition at line 514 of file cge_main.cpp.

◆ loadScript()

void CGE::CGEEngine::loadScript ( const char *  fname)

Definition at line 1158 of file cge_main.cpp.

◆ loadSprite()

void CGE::CGEEngine::loadSprite ( const char *  fname,
int  ref,
int  scene,
int  col = 0,
int  row = 0,
int  pos = 0 

Definition at line 1030 of file cge_main.cpp.

◆ loadUser()

void CGE::CGEEngine::loadUser ( )

Definition at line 1315 of file cge_main.cpp.

◆ locate()

Sprite * CGE::CGEEngine::locate ( int  ref)

Definition at line 1227 of file cge_main.cpp.

◆ mainLoop()

void CGE::CGEEngine::mainLoop ( )

Definition at line 1263 of file cge_main.cpp.

◆ mergeExt()

char * CGE::CGEEngine::mergeExt ( char *  buf,
const char *  name,
const char *  ext 

Definition at line 118 of file cge_main.cpp.

◆ MIDI()

void CGE::CGEEngine::MIDI ( )

◆ miniStep()

void CGE::CGEEngine::miniStep ( int  stp)

Definition at line 597 of file cge_main.cpp.

◆ movie()

void CGE::CGEEngine::movie ( const char *  ext)

Definition at line 1448 of file cge_main.cpp.

◆ newRandom()

int CGE::CGEEngine::newRandom ( int  range)

Definition at line 138 of file cge_main.cpp.

◆ NONE()

void CGE::CGEEngine::NONE ( )

◆ offUse()

void CGE::CGEEngine::offUse ( )

Definition at line 484 of file cge_main.cpp.

◆ optionTouch()

void CGE::CGEEngine::optionTouch ( int  opt,
uint16  mask 

Definition at line 928 of file cge_main.cpp.

◆ pocFul()

void CGE::CGEEngine::pocFul ( )

Logic used when all the inventory slots are full and the user tries to pick another object.

Inventoryslot number Sprite pointer

Definition at line 669 of file snail.cpp.

◆ postMiniStep()

void CGE::CGEEngine::postMiniStep ( int  stp)

Definition at line 608 of file cge_main.cpp.

◆ qGame()

void CGE::CGEEngine::qGame ( )

Definition at line 717 of file cge_main.cpp.

◆ quit()

void CGE::CGEEngine::quit ( void  )

Definition at line 574 of file cge_main.cpp.

◆ readSavegameHeader()

WARN_UNUSED_RESULT bool CGE::CGEEngine::readSavegameHeader ( Common::InSaveFile in,
SavegameHeader header,
bool  skipThumbnail = true 

Definition at line 427 of file cge_main.cpp.

◆ resetGame()

void CGE::CGEEngine::resetGame ( )

Definition at line 296 of file cge_main.cpp.

◆ resetQSwitch()

void CGE::CGEEngine::resetQSwitch ( )

Definition at line 567 of file cge_main.cpp.

◆ run()

Common::Error CGE::CGEEngine::run ( )

Init the engine and start its main loop.

returns kNoError on success, else an error code.

Implements Engine.

Definition at line 213 of file cge.cpp.

◆ runGame()

void CGE::CGEEngine::runGame ( )

Definition at line 1329 of file cge_main.cpp.

◆ saveGame()

void CGE::CGEEngine::saveGame ( int  slotNumber,
const Common::String desc 

Definition at line 324 of file cge_main.cpp.

◆ savegameExists()

bool CGE::CGEEngine::savegameExists ( int  slotNumber)

Returns true if a given savegame exists.

Definition at line 259 of file cge_main.cpp.

◆ saveGameState()

Common::Error CGE::CGEEngine::saveGameState ( int  slot,
const Common::String desc 

Save a game state.

slotthe slot into which the savestate should be stored
desca description for the savestate, entered by the user
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 301 of file cge_main.cpp.

◆ SB()

void CGE::CGEEngine::SB ( )

◆ SBM()

void CGE::CGEEngine::SBM ( )

◆ sceneDown()

void CGE::CGEEngine::sceneDown ( )

Definition at line 691 of file cge_main.cpp.

◆ sceneUp()

void CGE::CGEEngine::sceneUp ( )

Definition at line 631 of file cge_main.cpp.

◆ selectPocket()

void CGE::CGEEngine::selectPocket ( int  n)

Check if an item is in the inventory, and returns its position.

Inventoryslot number Sprite pointer

Definition at line 643 of file snail.cpp.

◆ selectSound()

void CGE::CGEEngine::selectSound ( )

◆ setDMA()

void CGE::CGEEngine::setDMA ( )

◆ setIRQ()

void CGE::CGEEngine::setIRQ ( )

◆ setMapBrick()

void CGE::CGEEngine::setMapBrick ( int  x,
int  z 

Definition at line 549 of file cge_main.cpp.

◆ setPortD()

void CGE::CGEEngine::setPortD ( )

◆ setPortM()

void CGE::CGEEngine::setPortM ( )

◆ showBak()

void CGE::CGEEngine::showBak ( int  ref)

Definition at line 615 of file cge_main.cpp.

◆ showTitle()

bool CGE::CGEEngine::showTitle ( const char *  name)

Definition at line 1474 of file cge_main.cpp.

◆ snBackPt()

void CGE::CGEEngine::snBackPt ( Sprite spr,
int  stp 

Definition at line 1147 of file snail.cpp.

◆ snCover()

void CGE::CGEEngine::snCover ( Sprite spr,
int  xref 

Definition at line 932 of file snail.cpp.

◆ sndSetVolume()

void CGE::CGEEngine::sndSetVolume ( )

Definition at line 145 of file cge_main.cpp.

◆ snFlag()

void CGE::CGEEngine::snFlag ( int  indx,
bool  val 

Set a flag to a value.

indxFlag index
valFlag value

Definition at line 1187 of file snail.cpp.

◆ snFlash()

void CGE::CGEEngine::snFlash ( bool  on)

Definition at line 1198 of file snail.cpp.

◆ snGame()

void CGE::CGEEngine::snGame ( Sprite spr,
int  num 

Handles mini-Games logic.

nummini game number

Definition at line 387 of file snail.cpp.

◆ snGhost()

void CGE::CGEEngine::snGhost ( Bitmap bmp)

Definition at line 689 of file snail.cpp.

◆ snGive()

void CGE::CGEEngine::snGive ( Sprite spr,
int  stp 

Remove an object from the inventory and (if specified) trigger an animation.

sprInventory item

Definition at line 1131 of file snail.cpp.

◆ snHBarrier()

void CGE::CGEEngine::snHBarrier ( const int  scene,
const int  barX 

Set an horizontal boundary.

sceneScene number
barXHorizontal boundary value

Definition at line 1238 of file snail.cpp.

◆ snHide()

void CGE::CGEEngine::snHide ( Sprite spr,
int  val 

Definition at line 821 of file snail.cpp.

◆ snKeep()

void CGE::CGEEngine::snKeep ( Sprite spr,
int  stp 

Definition at line 1106 of file snail.cpp.

◆ snKill()

void CGE::CGEEngine::snKill ( Sprite spr)

Definition at line 1063 of file snail.cpp.

◆ snLevel()

void CGE::CGEEngine::snLevel ( Sprite spr,
int  lev 

Definition at line 1157 of file snail.cpp.

◆ snLight()

void CGE::CGEEngine::snLight ( bool  in)

Definition at line 1223 of file snail.cpp.

◆ snMouse()

void CGE::CGEEngine::snMouse ( bool  on)

Definition at line 1273 of file snail.cpp.

◆ snNNext()

void CGE::CGEEngine::snNNext ( Sprite spr,
int  p 

Definition at line 774 of file snail.cpp.

◆ snPort()

void CGE::CGEEngine::snPort ( Sprite spr,
int  port 

Definition at line 1056 of file snail.cpp.

◆ snReach()

void CGE::CGEEngine::snReach ( Sprite spr,
int  mode 

Definition at line 1266 of file snail.cpp.

◆ snRelX()

void CGE::CGEEngine::snRelX ( Sprite spr,
int  x 

Definition at line 989 of file snail.cpp.

◆ snRelY()

void CGE::CGEEngine::snRelY ( Sprite spr,
int  y 

Definition at line 996 of file snail.cpp.

◆ snRelZ()

void CGE::CGEEngine::snRelZ ( Sprite spr,
int  z 

Definition at line 1003 of file snail.cpp.

◆ snRmNear()

void CGE::CGEEngine::snRmNear ( Sprite spr)

Definition at line 831 of file snail.cpp.

◆ snRmTake()

void CGE::CGEEngine::snRmTake ( Sprite spr)

Definition at line 838 of file snail.cpp.

◆ snRNNext()

void CGE::CGEEngine::snRNNext ( Sprite spr,
int  p 

Definition at line 790 of file snail.cpp.

◆ snRSeq()

void CGE::CGEEngine::snRSeq ( Sprite spr,
int  val 

Definition at line 856 of file snail.cpp.

◆ snRTNext()

void CGE::CGEEngine::snRTNext ( Sprite spr,
int  p 

Definition at line 799 of file snail.cpp.

◆ snSend()

void CGE::CGEEngine::snSend ( Sprite spr,
int  val 

Definition at line 863 of file snail.cpp.

◆ snSeq()

void CGE::CGEEngine::snSeq ( Sprite spr,
int  val 

Definition at line 845 of file snail.cpp.

◆ snSetRef()

void CGE::CGEEngine::snSetRef ( Sprite spr,
int  nr 

Definition at line 1191 of file snail.cpp.

◆ snSetX()

void CGE::CGEEngine::snSetX ( Sprite spr,
int  x 

Definition at line 1012 of file snail.cpp.

◆ snSetX0()

void CGE::CGEEngine::snSetX0 ( int  scene,
int  x0 

Definition at line 970 of file snail.cpp.

◆ snSetXY()

void CGE::CGEEngine::snSetXY ( Sprite spr,
uint16  xy 

Definition at line 982 of file snail.cpp.

◆ snSetY()

void CGE::CGEEngine::snSetY ( Sprite spr,
int  y 

Definition at line 1019 of file snail.cpp.

◆ snSetY0()

void CGE::CGEEngine::snSetY0 ( int  scene,
int  y0 

Definition at line 976 of file snail.cpp.

◆ snSetZ()

void CGE::CGEEngine::snSetZ ( Sprite spr,
int  z 

Definition at line 1026 of file snail.cpp.

◆ snSlave()

void CGE::CGEEngine::snSlave ( Sprite spr,
int  ref 

Definition at line 1035 of file snail.cpp.

◆ snSound()

void CGE::CGEEngine::snSound ( Sprite spr,
int  wav 

Play a FX sound.

sprSprite pointer
wavFX index

Definition at line 1095 of file snail.cpp.

◆ snSwap()

void CGE::CGEEngine::snSwap ( Sprite spr,
int  xref 

Definition at line 895 of file snail.cpp.

◆ snTNext()

void CGE::CGEEngine::snTNext ( Sprite spr,
int  p 

Definition at line 782 of file snail.cpp.

◆ snTrans()

void CGE::CGEEngine::snTrans ( Sprite spr,
int  trans 

Definition at line 1049 of file snail.cpp.

◆ snUncover()

void CGE::CGEEngine::snUncover ( Sprite spr,
Sprite xspr 

Definition at line 951 of file snail.cpp.

◆ snVBarrier()

void CGE::CGEEngine::snVBarrier ( const int  scene,
const int  barY 

Set a vertical boundary.

sceneScene number
barYVertical boundary value

Definition at line 1249 of file snail.cpp.

◆ snWalk()

void CGE::CGEEngine::snWalk ( Sprite spr,
int  x,
int  y 

Definition at line 1255 of file snail.cpp.

◆ snZTrim()

void CGE::CGEEngine::snZTrim ( Sprite spr)

Definition at line 807 of file snail.cpp.

◆ spriteAt()

Sprite * CGE::CGEEngine::spriteAt ( int  x,
int  y 

Definition at line 1232 of file cge_main.cpp.

◆ startCountDown()

void CGE::CGEEngine::startCountDown ( )

Shutdown game.

Definition at line 894 of file cge_main.cpp.

◆ switchColorMode()

void CGE::CGEEngine::switchColorMode ( )

Switch greyscale mode on/off.

Definition at line 868 of file cge_main.cpp.

◆ switchDebug()

void CGE::CGEEngine::switchDebug ( )

◆ switchMapping()

void CGE::CGEEngine::switchMapping ( )

Definition at line 900 of file cge_main.cpp.

◆ switchMusic()

void CGE::CGEEngine::switchMusic ( )

Switch music on/off.

Definition at line 879 of file cge_main.cpp.

◆ switchScene()

void CGE::CGEEngine::switchScene ( int  newScene)

Definition at line 731 of file cge_main.cpp.

◆ syncGame()

void CGE::CGEEngine::syncGame ( Common::SeekableReadStream readStream,
Common::WriteStream writeStream,
bool  tiny 

Definition at line 376 of file cge_main.cpp.

◆ syncHeader()

void CGE::CGEEngine::syncHeader ( Common::Serializer s)

Definition at line 149 of file cge_main.cpp.

◆ takeEnum()

int CGE::CGEEngine::takeEnum ( const char **  tab,
const char *  text 

Definition at line 127 of file cge_main.cpp.

◆ tick()

void CGE::CGEEngine::tick ( )

Definition at line 1304 of file cge_main.cpp.

◆ tooFar()

void CGE::CGEEngine::tooFar ( )

Definition at line 490 of file cge_main.cpp.

◆ trouble()

void CGE::CGEEngine::trouble ( int  seq,
int  text 

Definition at line 473 of file cge_main.cpp.

◆ writeSavegameHeader()

void CGE::CGEEngine::writeSavegameHeader ( Common::OutSaveFile out,
SavegameHeader header 

Definition at line 343 of file cge_main.cpp.

◆ xScene()

void CGE::CGEEngine::xScene ( )

Definition at line 708 of file cge_main.cpp.

◆ XZ()

Cluster CGE::CGEEngine::XZ ( int16  x,
int16  y 

Definition at line 1245 of file cge_main.cpp.

Member Data Documentation

◆ _barriers

Bar CGE::CGEEngine::_barriers[kSceneMax+1]

Definition at line 176 of file cge.h.

◆ _bitmapPalette

Dac* CGE::CGEEngine::_bitmapPalette

Definition at line 167 of file cge.h.

◆ _clusterMap

uint8 CGE::CGEEngine::_clusterMap[kMapZCnt][kMapXCnt]

Definition at line 168 of file cge.h.

◆ _commandHandler

CommandHandler* CGE::CGEEngine::_commandHandler

Definition at line 190 of file cge.h.

◆ _commandHandlerTurbo

CommandHandler* CGE::CGEEngine::_commandHandlerTurbo

Definition at line 191 of file cge.h.

◆ _console

CGEConsole* CGE::CGEEngine::_console

Definition at line 329 of file cge.h.

◆ _dark

bool CGE::CGEEngine::_dark

Definition at line 159 of file cge.h.

◆ _debugLine

InfoLine* CGE::CGEEngine::_debugLine

Definition at line 188 of file cge.h.

◆ _endGame

bool CGE::CGEEngine::_endGame

Definition at line 161 of file cge.h.

◆ _eventManager

EventManager* CGE::CGEEngine::_eventManager

Definition at line 192 of file cge.h.

◆ _flag

bool CGE::CGEEngine::_flag[4]

Definition at line 158 of file cge.h.

◆ _font

Font* CGE::CGEEngine::_font

Definition at line 177 of file cge.h.

◆ _fx

Fx* CGE::CGEEngine::_fx

Definition at line 193 of file cge.h.

◆ _game

bool CGE::CGEEngine::_game

Definition at line 160 of file cge.h.

◆ _gameCase2Cpt

int CGE::CGEEngine::_gameCase2Cpt

Definition at line 165 of file cge.h.

◆ _gameDescription

const ADGameDescription* CGE::CGEEngine::_gameDescription

Definition at line 150 of file cge.h.

◆ _hero

Walk* CGE::CGEEngine::_hero

Definition at line 197 of file cge.h.

◆ _heroXY

Common::Point CGE::CGEEngine::_heroXY[kSceneMax]

Definition at line 175 of file cge.h.

◆ _horzLine

HorizLine* CGE::CGEEngine::_horzLine

Definition at line 186 of file cge.h.

◆ _infoLine

InfoLine* CGE::CGEEngine::_infoLine

Definition at line 187 of file cge.h.

◆ _keyboard

Keyboard* CGE::CGEEngine::_keyboard

Definition at line 181 of file cge.h.

◆ _lastFrame

uint32 CGE::CGEEngine::_lastFrame

Definition at line 130 of file cge.h.

◆ _lastTick

uint32 CGE::CGEEngine::_lastTick

Definition at line 130 of file cge.h.

◆ _lev

int CGE::CGEEngine::_lev

Definition at line 163 of file cge.h.

◆ _maxScene

int CGE::CGEEngine::_maxScene

Definition at line 157 of file cge.h.

◆ _maxSceneArr

const int CGE::CGEEngine::_maxSceneArr = {1, 8, 16, 23, 24}

Definition at line 146 of file cge.h.

◆ _midiPlayer

MusicPlayer* CGE::CGEEngine::_midiPlayer

Definition at line 203 of file cge.h.

◆ _miniScene

Sprite* CGE::CGEEngine::_miniScene

Definition at line 184 of file cge.h.

◆ _miniShp

BitmapPtr* CGE::CGEEngine::_miniShp

Definition at line 204 of file cge.h.

◆ _miniShpList

BitmapPtr* CGE::CGEEngine::_miniShpList

Definition at line 205 of file cge.h.

◆ _mode

int CGE::CGEEngine::_mode

Definition at line 164 of file cge.h.

◆ _mouse

Mouse* CGE::CGEEngine::_mouse

Definition at line 182 of file cge.h.

◆ _music

bool CGE::CGEEngine::_music

Definition at line 154 of file cge.h.

◆ _now

int CGE::CGEEngine::_now

Definition at line 162 of file cge.h.

◆ _offUseCount

int CGE::CGEEngine::_offUseCount

Definition at line 166 of file cge.h.

◆ _oldLev

int CGE::CGEEngine::_oldLev

Definition at line 152 of file cge.h.

◆ _pocket

Sprite* CGE::CGEEngine::_pocket[kPocketNX]

Definition at line 196 of file cge.h.

◆ _pocLight

Sprite* CGE::CGEEngine::_pocLight

Definition at line 180 of file cge.h.

◆ _pocPtr

int CGE::CGEEngine::_pocPtr

Definition at line 153 of file cge.h.

◆ _pocref

int CGE::CGEEngine::_pocref[kPocketNX]

Definition at line 155 of file cge.h.

◆ _quitFlag

bool CGE::CGEEngine::_quitFlag

Definition at line 147 of file cge.h.

◆ _randomSource

Common::RandomSource CGE::CGEEngine::_randomSource

Definition at line 202 of file cge.h.

◆ _recentStep

int CGE::CGEEngine::_recentStep

Definition at line 326 of file cge.h.

◆ _resman

ResourceManager* CGE::CGEEngine::_resman

Definition at line 195 of file cge.h.

◆ _sceneLight

SceneLight* CGE::CGEEngine::_sceneLight

Definition at line 189 of file cge.h.

◆ _shadow

Sprite* CGE::CGEEngine::_shadow

Definition at line 185 of file cge.h.

◆ _showBoundariesFl

bool CGE::CGEEngine::_showBoundariesFl

Definition at line 148 of file cge.h.

◆ _sound

Sound* CGE::CGEEngine::_sound

Definition at line 194 of file cge.h.

◆ _sprite

Sprite* CGE::CGEEngine::_sprite

Definition at line 183 of file cge.h.

◆ _sprK1

Sprite* CGE::CGEEngine::_sprK1

Definition at line 171 of file cge.h.

◆ _sprK2

Sprite* CGE::CGEEngine::_sprK2

Definition at line 172 of file cge.h.

◆ _sprK3

Sprite* CGE::CGEEngine::_sprK3

Definition at line 173 of file cge.h.

◆ _sprTv

Sprite* CGE::CGEEngine::_sprTv

Definition at line 170 of file cge.h.

◆ _startGameSlot

int CGE::CGEEngine::_startGameSlot

Definition at line 206 of file cge.h.

◆ _startupMode

int CGE::CGEEngine::_startupMode

Definition at line 151 of file cge.h.

◆ _sys

System* CGE::CGEEngine::_sys

Definition at line 179 of file cge.h.

◆ _talk

Talk* CGE::CGEEngine::_talk

Definition at line 199 of file cge.h.

◆ _text

Text* CGE::CGEEngine::_text

Definition at line 198 of file cge.h.

◆ _vga

Vga* CGE::CGEEngine::_vga

Definition at line 178 of file cge.h.

◆ _volume

uint8 CGE::CGEEngine::_volume[2]

Definition at line 156 of file cge.h.

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