ScummVM
CGE2::CGE2Engine Class Reference

#include <cge2.h>

Inheritance diagram for CGE2::CGE2Engine:
Collaboration diagram for CGE2::CGE2Engine:

Public Member Functions

 CGE2Engine (OSystem *syst, const ADGameDescription *gameDescription)
 
virtual bool hasFeature (EngineFeature f) const
 Determine whether the engine supports the specified feature. More...
 
virtual bool canSaveGameStateCurrently ()
 Indicates whether a game state can be saved. More...
 
virtual bool canLoadGameStateCurrently ()
 Indicates whether a game state can be loaded. More...
 
virtual Common::Error saveGameState (int slot, const Common::String &desc)
 Save a game state. More...
 
virtual Common::Error loadGameState (int slot)
 Load 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...
 
bool showTitle (const char *name)
 
void cge2_main ()
 
char * mergeExt (char *buf, const char *name, const char *ext)
 
void inf (const char *text, ColorBank col=kCBInf)
 
void movie (const char *ext)
 
void runGame ()
 
void loadHeroes ()
 
void loadScript (const char *fname, bool onlyToolbar=false)
 
SpriteloadSprite (const char *fname, int ref, int scene, V3D &pos)
 
void badLab (const char *fn)
 
void sceneUp (int cav)
 
void sceneDown ()
 
void closePocket ()
 
void switchScene (int scene)
 
void storeHeroPos ()
 
void showBak (int ref)
 
void loadTab ()
 
int newRandom (int range)
 
void openPocket ()
 
void selectPocket (int n)
 
void busy (bool on)
 
void feedSnail (Sprite *spr, Action snq, Hero *hero)
 
int freePockets (int sx)
 
int findActivePocket (int ref)
 
void pocFul ()
 
void killText ()
 
void mainLoop ()
 
void handleFrame ()
 
Spritelocate (int ref)
 
bool isHero (Sprite *spr)
 
void loadUser ()
 
void loadPos ()
 
void releasePocket (Sprite *spr)
 
void switchHero (int sex)
 
void offUse ()
 
void setAutoColors ()
 
bool cross (const V2D &a, const V2D &b, const V2D &c, const V2D &d)
 
bool contain (const V2D &a, const V2D &b, const V2D &p)
 
long det (const V2D &a, const V2D &b, const V2D &c)
 
int sgn (long n)
 
int mapCross (const V2D &a, const V2D &b)
 
SpritespriteAt (V2D pos)
 
void keyClick ()
 
void swapInPocket (Sprite *spr, Sprite *xspr)
 
void busyStep ()
 
void optionTouch (int opt, uint16 mask)
 
void switchColorMode ()
 
void switchMusic ()
 
void quit ()
 
void setVolume (int idx, int cnt)
 
void checkVolumeSwitches ()
 
void switchCap ()
 
void switchVox ()
 
void switchSay ()
 
void initToolbar ()
 
void initVolumeSwitch (Sprite *volSwitch, int val)
 
void checkMute ()
 
void checkSounds ()
 
void setEye (const V3D &e)
 
void setEye (const V2D &e2, int z=-kScrWidth)
 
void setEye (const char *s)
 
int number (char *s)
 
char * token (char *s)
 
char * tail (char *s)
 
int takeEnum (const char **tab, const char *text)
 
ID ident (const char *s)
 
bool testBool (char *s)
 
void snKill (Sprite *spr)
 
void snHide (Sprite *spr, int val)
 
void snMidi (int val)
 
void snSeq (Sprite *spr, int val)
 
void snRSeq (Sprite *spr, int val)
 
void snSend (Sprite *spr, int val)
 
void snSwap (Sprite *spr, int val)
 
void snCover (Sprite *spr, int val)
 
void snUncover (Sprite *spr, Sprite *spr2)
 
void snKeep (Sprite *spr, int val)
 
void snGive (Sprite *spr, int val)
 
void snGoto (Sprite *spr, int val)
 
void snPort (Sprite *spr, int port)
 
void snMouse (bool on)
 
void snNNext (Sprite *spr, Action act, int val)
 
void snRNNext (Sprite *spr, int val)
 
void snRMTNext (Sprite *spr, int val)
 
void snRFTNext (Sprite *spr, int val)
 
void snRmNear (Sprite *spr)
 
void snRmMTake (Sprite *spr)
 
void snRmFTake (Sprite *spr)
 
void snSetRef (Sprite *spr, int val)
 
void snFlash (bool on)
 
void snCycle (int cnt)
 
void snWalk (Sprite *spr, int val)
 
void snReach (Sprite *spr, int val)
 
void snSound (Sprite *spr, int wav, Audio::Mixer::SoundType soundType=Audio::Mixer::kSFXSoundType)
 
void snRoom (Sprite *spr, bool on)
 
void snGhost (Bitmap *bmp)
 
void snSay (Sprite *spr, int val)
 
void hide1 (Sprite *spr)
 
SpriteexpandSprite (Sprite *spr)
 
void qGame ()
 
void xScene ()
 
- 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

const ADGameDescription_gameDescription
 
Common::RandomSource _randomSource
 
bool _quitFlag
 
Dac_bitmapPalette
 
GamePhase _gamePhase
 
int _now
 
int _sex
 
int _mouseTop
 
bool _dark
 
int _waitSeq
 
int _waitRef
 
struct {
   int *   _wait
 
   int   _ref [2]
 
_soundStat
 
bool _taken
 
bool _endGame
 
int _req
 
NotifyFunctionType _midiNotify
 
NotifyFunctionType _spriteNotify
 
int _startGameSlot
 
bool _sayCap
 
bool _sayVox
 
int _oldMusicVolume
 
int _oldSfxVolume
 
bool _music
 
bool _muteAll
 
ResourceManager_resman
 
Vga_vga
 
MusicPlayer_midiPlayer
 
Fx_fx
 
Sound_sound
 
Text_text
 
HeroTab_heroTab [2]
 
V3D_eye
 
V3D_eyeTab [kSceneMax]
 
Spare_spare
 
CommandHandler_commandHandler
 
CommandHandler_commandHandlerTurbo
 
Font_font
 
InfoLine_infoLine
 
Mouse_mouse
 
Keyboard_keyboard
 
Talk_talk
 
V3D_point [kMaxPoint]
 
System_sys
 
Sprite_busyPtr
 
Sprite_vol [2]
 
EventManager_eventManager
 
Map_map
 
- Public Attributes inherited from Engine
OSystem_system
 
Audio::Mixer_mixer
 

Private Member Functions

void tick ()
 
void init ()
 
void deinit ()
 
Common::String generateSaveName (int slot)
 Support method that generates a savegame name. More...
 
void writeSavegameHeader (Common::OutSaveFile *out, SavegameHeader &header)
 
void saveGame (int slotNumber, const Common::String &desc)
 
bool loadGame (int slotNumber)
 
void syncHeader (Common::Serializer &s)
 
void syncGame (Common::SeekableReadStream *readStream, Common::WriteStream *writeStream)
 
void resetGame ()
 

Private Attributes

uint32 _lastFrame
 
uint32 _lastTick
 
CGE2Console_console
 

Additional Inherited Members

- Public Types inherited from Engine
enum  EngineFeature {
  kSupportsSubtitleOptions, kSupportsRTL, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime,
  kSupportsJoystick
}
 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...
 
- Protected Attributes inherited from Engine
Common::TimerManager_timer
 
Common::EventManager_eventMan
 
Common::SaveFileManager_saveFileMan
 
GUI::Dialog_mainMenuDialog
 
const Common::String _targetName
 

Detailed Description

Definition at line 141 of file cge2.h.

Constructor & Destructor Documentation

◆ CGE2Engine()

CGE2::CGE2Engine::CGE2Engine ( OSystem syst,
const ADGameDescription gameDescription 
)

Definition at line 46 of file cge2.cpp.

Member Function Documentation

◆ badLab()

void CGE2::CGE2Engine::badLab ( const char *  fn)

Definition at line 152 of file cge2_main.cpp.

◆ busy()

void CGE2::CGE2Engine::busy ( bool  on)

Definition at line 607 of file cge2_main.cpp.

◆ busyStep()

void CGE2::CGE2Engine::busyStep ( )

Definition at line 618 of file cge2_main.cpp.

◆ canLoadGameStateCurrently()

bool CGE2::CGE2Engine::canLoadGameStateCurrently ( )
virtual

Indicates whether a game state can be loaded.

Reimplemented from Engine.

Definition at line 77 of file saveload.cpp.

◆ canSaveGameStateCurrently()

bool CGE2::CGE2Engine::canSaveGameStateCurrently ( )
virtual

Indicates whether a game state can be saved.

Reimplemented from Engine.

Definition at line 45 of file saveload.cpp.

◆ cge2_main()

void CGE2::CGE2Engine::cge2_main ( )

Definition at line 739 of file cge2_main.cpp.

◆ checkMute()

void CGE2::CGE2Engine::checkMute ( )

Definition at line 215 of file toolbar.cpp.

◆ checkSounds()

void CGE2::CGE2Engine::checkSounds ( )

Definition at line 542 of file cge2_main.cpp.

◆ checkVolumeSwitches()

void CGE2::CGE2Engine::checkVolumeSwitches ( )

Definition at line 140 of file toolbar.cpp.

◆ closePocket()

void CGE2::CGE2Engine::closePocket ( )

Definition at line 95 of file inventory.cpp.

◆ contain()

bool CGE2::CGE2Engine::contain ( const V2D a,
const V2D b,
const V2D p 
)

Definition at line 526 of file hero.cpp.

◆ cross()

bool CGE2::CGE2Engine::cross ( const V2D a,
const V2D b,
const V2D c,
const V2D d 
)

Definition at line 519 of file hero.cpp.

◆ deinit()

void CGE2::CGE2Engine::deinit ( )
private

Definition at line 148 of file cge2.cpp.

◆ det()

long CGE2::CGE2Engine::det ( const V2D a,
const V2D b,
const V2D c 
)

Definition at line 533 of file hero.cpp.

◆ expandSprite()

Sprite * CGE2::CGE2Engine::expandSprite ( Sprite spr)

Definition at line 685 of file snail.cpp.

◆ feedSnail()

void CGE2::CGE2Engine::feedSnail ( Sprite spr,
Action  snq,
Hero hero 
)

Definition at line 769 of file snail.cpp.

◆ findActivePocket()

int CGE2::CGE2Engine::findActivePocket ( int  ref)

Definition at line 33 of file inventory.cpp.

◆ freePockets()

int CGE2::CGE2Engine::freePockets ( int  sx)

Definition at line 77 of file inventory.cpp.

◆ generateSaveName()

Common::String CGE2::CGE2Engine::generateSaveName ( int  slot)
private

Support method that generates a savegame name.

Parameters
slotSlot number

Definition at line 285 of file saveload.cpp.

◆ getDebugger()

GUI::Debugger* CGE2::CGE2Engine::getDebugger ( )
inlinevirtual

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 168 of file cge2.h.

◆ handleFrame()

void CGE2::CGE2Engine::handleFrame ( )

Definition at line 550 of file cge2_main.cpp.

◆ hasFeature()

bool CGE2::CGE2Engine::hasFeature ( EngineFeature  f) const
virtual

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

Definition at line 187 of file cge2.cpp.

◆ hide1()

void CGE2::CGE2Engine::hide1 ( Sprite spr)

Definition at line 666 of file snail.cpp.

◆ ident()

ID CGE2::CGE2Engine::ident ( const char *  s)

Definition at line 144 of file cge2_main.cpp.

◆ inf()

void CGE2::CGE2Engine::inf ( const char *  text,
ColorBank  col = kCBInf 
)

Definition at line 179 of file text.cpp.

◆ init()

void CGE2::CGE2Engine::init ( void  )
private

Definition at line 114 of file cge2.cpp.

◆ initToolbar()

void CGE2::CGE2Engine::initToolbar ( )

Definition at line 172 of file toolbar.cpp.

◆ initVolumeSwitch()

void CGE2::CGE2Engine::initVolumeSwitch ( Sprite volSwitch,
int  val 
)

Definition at line 209 of file toolbar.cpp.

◆ isHero()

bool CGE2::CGE2Engine::isHero ( Sprite spr)

Definition at line 587 of file cge2_main.cpp.

◆ keyClick()

void CGE2::CGE2Engine::keyClick ( )

Definition at line 923 of file cge2_main.cpp.

◆ killText()

void CGE2::CGE2Engine::killText ( )

Definition at line 821 of file cge2_main.cpp.

◆ loadGame()

bool CGE2::CGE2Engine::loadGame ( int  slotNumber)
private

Definition at line 92 of file saveload.cpp.

◆ loadGameState()

Common::Error CGE2::CGE2Engine::loadGameState ( int  slot)
virtual

Load a game state.

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

Reimplemented from Engine.

Definition at line 81 of file saveload.cpp.

◆ loadHeroes()

void CGE2::CGE2Engine::loadHeroes ( )

Definition at line 659 of file cge2_main.cpp.

◆ loadPos()

void CGE2::CGE2Engine::loadPos ( )

Definition at line 697 of file cge2_main.cpp.

◆ loadScript()

void CGE2::CGE2Engine::loadScript ( const char *  fname,
bool  onlyToolbar = false 
)

Definition at line 312 of file cge2_main.cpp.

◆ loadSprite()

Sprite * CGE2::CGE2Engine::loadSprite ( const char *  fname,
int  ref,
int  scene,
V3D pos 
)

Definition at line 156 of file cge2_main.cpp.

◆ loadTab()

void CGE2::CGE2Engine::loadTab ( )

Definition at line 718 of file cge2_main.cpp.

◆ loadUser()

void CGE2::CGE2Engine::loadUser ( )

Definition at line 648 of file cge2_main.cpp.

◆ locate()

Sprite * CGE2::CGE2Engine::locate ( int  ref)

Definition at line 576 of file cge2_main.cpp.

◆ mainLoop()

void CGE2::CGE2Engine::mainLoop ( )

Definition at line 524 of file cge2_main.cpp.

◆ mapCross()

int CGE2::CGE2Engine::mapCross ( const V2D a,
const V2D b 
)

Definition at line 554 of file hero.cpp.

◆ mergeExt()

char * CGE2::CGE2Engine::mergeExt ( char *  buf,
const char *  name,
const char *  ext 
)

Definition at line 761 of file cge2_main.cpp.

◆ movie()

void CGE2::CGE2Engine::movie ( const char *  ext)

Definition at line 383 of file cge2_main.cpp.

◆ newRandom()

int CGE2::CGE2Engine::newRandom ( int  range)

Definition at line 789 of file cge2_main.cpp.

◆ number()

int CGE2::CGE2Engine::number ( char *  s)

Definition at line 113 of file cge2_main.cpp.

◆ offUse()

void CGE2::CGE2Engine::offUse ( )

Definition at line 927 of file cge2_main.cpp.

◆ openPocket()

void CGE2::CGE2Engine::openPocket ( )

Definition at line 86 of file inventory.cpp.

◆ optionTouch()

void CGE2::CGE2Engine::optionTouch ( int  opt,
uint16  mask 
)

Definition at line 49 of file toolbar.cpp.

◆ pocFul()

void CGE2::CGE2Engine::pocFul ( )

Definition at line 56 of file inventory.cpp.

◆ qGame()

void CGE2::CGE2Engine::qGame ( )

Definition at line 691 of file snail.cpp.

◆ quit()

void CGE2::CGE2Engine::quit ( void  )

Definition at line 101 of file toolbar.cpp.

◆ readSavegameHeader()

WARN_UNUSED_RESULT bool CGE2::CGE2Engine::readSavegameHeader ( Common::InSaveFile in,
SavegameHeader header,
bool  skipThumbnail = true 
)
static

Definition at line 183 of file saveload.cpp.

◆ releasePocket()

void CGE2::CGE2Engine::releasePocket ( Sprite spr)

Definition at line 64 of file inventory.cpp.

◆ resetGame()

void CGE2::CGE2Engine::resetGame ( )
private

Definition at line 135 of file saveload.cpp.

◆ run()

Common::Error CGE2::CGE2Engine::run ( )
virtual

Init the engine and start its main loop.

Returns
returns kNoError on success, else an error code.

Implements Engine.

Definition at line 192 of file cge2.cpp.

◆ runGame()

void CGE2::CGE2Engine::runGame ( )

Definition at line 625 of file cge2_main.cpp.

◆ saveGame()

void CGE2::CGE2Engine::saveGame ( int  slotNumber,
const Common::String desc 
)
private

Definition at line 57 of file saveload.cpp.

◆ saveGameState()

Common::Error CGE2::CGE2Engine::saveGameState ( int  slot,
const Common::String desc 
)
virtual

Save a game state.

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

Reimplemented from Engine.

Definition at line 50 of file saveload.cpp.

◆ sceneDown()

void CGE2::CGE2Engine::sceneDown ( )

Definition at line 459 of file cge2_main.cpp.

◆ sceneUp()

void CGE2::CGE2Engine::sceneUp ( int  cav)

Definition at line 411 of file cge2_main.cpp.

◆ selectPocket()

void CGE2::CGE2Engine::selectPocket ( int  n)

Definition at line 45 of file inventory.cpp.

◆ setAutoColors()

void CGE2::CGE2Engine::setAutoColors ( )

Definition at line 33 of file talk.cpp.

◆ setEye() [1/3]

void CGE2::CGE2Engine::setEye ( const V3D e)

Definition at line 770 of file cge2_main.cpp.

◆ setEye() [2/3]

void CGE2::CGE2Engine::setEye ( const V2D e2,
int  z = -kScrWidth 
)

Definition at line 774 of file cge2_main.cpp.

◆ setEye() [3/3]

void CGE2::CGE2Engine::setEye ( const char *  s)

Definition at line 780 of file cge2_main.cpp.

◆ setVolume()

void CGE2::CGE2Engine::setVolume ( int  idx,
int  cnt 
)

Definition at line 118 of file toolbar.cpp.

◆ sgn()

int CGE2::CGE2Engine::sgn ( long  n)

Definition at line 537 of file hero.cpp.

◆ showBak()

void CGE2::CGE2Engine::showBak ( int  ref)

Definition at line 513 of file cge2_main.cpp.

◆ showTitle()

bool CGE2::CGE2Engine::showTitle ( const char *  name)

Definition at line 796 of file cge2_main.cpp.

◆ snCover()

void CGE2::CGE2Engine::snCover ( Sprite spr,
int  val 
)

Definition at line 402 of file snail.cpp.

◆ snCycle()

void CGE2::CGE2Engine::snCycle ( int  cnt)

Definition at line 576 of file snail.cpp.

◆ snFlash()

void CGE2::CGE2Engine::snFlash ( bool  on)

Definition at line 553 of file snail.cpp.

◆ snGhost()

void CGE2::CGE2Engine::snGhost ( Bitmap bmp)

Definition at line 636 of file snail.cpp.

◆ snGive()

void CGE2::CGE2Engine::snGive ( Sprite spr,
int  val 
)

Definition at line 475 of file snail.cpp.

◆ snGoto()

void CGE2::CGE2Engine::snGoto ( Sprite spr,
int  val 
)

Definition at line 488 of file snail.cpp.

◆ snHide()

void CGE2::CGE2Engine::snHide ( Sprite spr,
int  val 
)

Definition at line 303 of file snail.cpp.

◆ snKeep()

void CGE2::CGE2Engine::snKeep ( Sprite spr,
int  val 
)

Definition at line 437 of file snail.cpp.

◆ snKill()

void CGE2::CGE2Engine::snKill ( Sprite spr)

Definition at line 283 of file snail.cpp.

◆ snMidi()

void CGE2::CGE2Engine::snMidi ( int  val)

Definition at line 311 of file snail.cpp.

◆ snMouse()

void CGE2::CGE2Engine::snMouse ( bool  on)

Definition at line 503 of file snail.cpp.

◆ snNNext()

void CGE2::CGE2Engine::snNNext ( Sprite spr,
Action  act,
int  val 
)

Definition at line 510 of file snail.cpp.

◆ snPort()

void CGE2::CGE2Engine::snPort ( Sprite spr,
int  port 
)

Definition at line 498 of file snail.cpp.

◆ snReach()

void CGE2::CGE2Engine::snReach ( Sprite spr,
int  val 
)

Definition at line 593 of file snail.cpp.

◆ snRFTNext()

void CGE2::CGE2Engine::snRFTNext ( Sprite spr,
int  val 
)

Definition at line 528 of file snail.cpp.

◆ snRmFTake()

void CGE2::CGE2Engine::snRmFTake ( Sprite spr)

Definition at line 543 of file snail.cpp.

◆ snRmMTake()

void CGE2::CGE2Engine::snRmMTake ( Sprite spr)

Definition at line 538 of file snail.cpp.

◆ snRmNear()

void CGE2::CGE2Engine::snRmNear ( Sprite spr)

Definition at line 533 of file snail.cpp.

◆ snRMTNext()

void CGE2::CGE2Engine::snRMTNext ( Sprite spr,
int  val 
)

Definition at line 523 of file snail.cpp.

◆ snRNNext()

void CGE2::CGE2Engine::snRNNext ( Sprite spr,
int  val 
)

Definition at line 518 of file snail.cpp.

◆ snRoom()

void CGE2::CGE2Engine::snRoom ( Sprite spr,
bool  on 
)

Definition at line 614 of file snail.cpp.

◆ snRSeq()

void CGE2::CGE2Engine::snRSeq ( Sprite spr,
int  val 
)

Definition at line 327 of file snail.cpp.

◆ snSay()

void CGE2::CGE2Engine::snSay ( Sprite spr,
int  val 
)

Definition at line 646 of file snail.cpp.

◆ snSend()

void CGE2::CGE2Engine::snSend ( Sprite spr,
int  val 
)

Definition at line 332 of file snail.cpp.

◆ snSeq()

void CGE2::CGE2Engine::snSeq ( Sprite spr,
int  val 
)

Definition at line 318 of file snail.cpp.

◆ snSetRef()

void CGE2::CGE2Engine::snSetRef ( Sprite spr,
int  val 
)

Definition at line 548 of file snail.cpp.

◆ snSound()

void CGE2::CGE2Engine::snSound ( Sprite spr,
int  wav,
Audio::Mixer::SoundType  soundType = Audio::Mixer::kSFXSoundType 
)

Definition at line 598 of file snail.cpp.

◆ snSwap()

void CGE2::CGE2Engine::snSwap ( Sprite spr,
int  val 
)

Definition at line 367 of file snail.cpp.

◆ snUncover()

void CGE2::CGE2Engine::snUncover ( Sprite spr,
Sprite spr2 
)

Definition at line 422 of file snail.cpp.

◆ snWalk()

void CGE2::CGE2Engine::snWalk ( Sprite spr,
int  val 
)

Definition at line 580 of file snail.cpp.

◆ spriteAt()

Sprite * CGE2::CGE2Engine::spriteAt ( V2D  pos)

Definition at line 948 of file cge2_main.cpp.

◆ storeHeroPos()

void CGE2::CGE2Engine::storeHeroPos ( )

Definition at line 502 of file cge2_main.cpp.

◆ swapInPocket()

void CGE2::CGE2Engine::swapInPocket ( Sprite spr,
Sprite xspr 
)

Definition at line 670 of file snail.cpp.

◆ switchCap()

void CGE2::CGE2Engine::switchCap ( )

Definition at line 150 of file toolbar.cpp.

◆ switchColorMode()

void CGE2::CGE2Engine::switchColorMode ( )

Definition at line 85 of file toolbar.cpp.

◆ switchHero()

void CGE2::CGE2Engine::switchHero ( int  sex)

Definition at line 829 of file cge2_main.cpp.

◆ switchMusic()

void CGE2::CGE2Engine::switchMusic ( )

Definition at line 93 of file toolbar.cpp.

◆ switchSay()

void CGE2::CGE2Engine::switchSay ( )

Definition at line 167 of file toolbar.cpp.

◆ switchScene()

void CGE2::CGE2Engine::switchScene ( int  scene)

Definition at line 478 of file cge2_main.cpp.

◆ switchVox()

void CGE2::CGE2Engine::switchVox ( )

Definition at line 158 of file toolbar.cpp.

◆ syncGame()

void CGE2::CGE2Engine::syncGame ( Common::SeekableReadStream readStream,
Common::WriteStream writeStream 
)
private

Definition at line 224 of file saveload.cpp.

◆ syncHeader()

void CGE2::CGE2Engine::syncHeader ( Common::Serializer s)
private

Definition at line 261 of file saveload.cpp.

◆ tail()

char * CGE2::CGE2Engine::tail ( char *  s)

Definition at line 128 of file cge2_main.cpp.

◆ takeEnum()

int CGE2::CGE2Engine::takeEnum ( const char **  tab,
const char *  text 
)

Definition at line 134 of file cge2_main.cpp.

◆ testBool()

bool CGE2::CGE2Engine::testBool ( char *  s)

Definition at line 148 of file cge2_main.cpp.

◆ tick()

void CGE2::CGE2Engine::tick ( )
private

Definition at line 591 of file cge2_main.cpp.

◆ token()

char * CGE2::CGE2Engine::token ( char *  s)

Definition at line 124 of file cge2_main.cpp.

◆ writeSavegameHeader()

void CGE2::CGE2Engine::writeSavegameHeader ( Common::OutSaveFile out,
SavegameHeader header 
)
private

Definition at line 145 of file saveload.cpp.

◆ xScene()

void CGE2::CGE2Engine::xScene ( )

Definition at line 700 of file snail.cpp.

Member Data Documentation

◆ _bitmapPalette

Dac* CGE2::CGE2Engine::_bitmapPalette

Definition at line 285 of file cge2.h.

◆ _busyPtr

Sprite* CGE2::CGE2Engine::_busyPtr

Definition at line 332 of file cge2.h.

◆ _commandHandler

CommandHandler* CGE2::CGE2Engine::_commandHandler

Definition at line 323 of file cge2.h.

◆ _commandHandlerTurbo

CommandHandler* CGE2::CGE2Engine::_commandHandlerTurbo

Definition at line 324 of file cge2.h.

◆ _console

CGE2Console* CGE2::CGE2Engine::_console
private

Definition at line 146 of file cge2.h.

◆ _dark

bool CGE2::CGE2Engine::_dark

Definition at line 290 of file cge2.h.

◆ _endGame

bool CGE2::CGE2Engine::_endGame

Definition at line 300 of file cge2.h.

◆ _eventManager

EventManager* CGE2::CGE2Engine::_eventManager

Definition at line 334 of file cge2.h.

◆ _eye

V3D* CGE2::CGE2Engine::_eye

Definition at line 320 of file cge2.h.

◆ _eyeTab

V3D* CGE2::CGE2Engine::_eyeTab[kSceneMax]

Definition at line 321 of file cge2.h.

◆ _font

Font* CGE2::CGE2Engine::_font

Definition at line 325 of file cge2.h.

◆ _fx

Fx* CGE2::CGE2Engine::_fx

Definition at line 316 of file cge2.h.

◆ _gameDescription

const ADGameDescription* CGE2::CGE2Engine::_gameDescription

Definition at line 280 of file cge2.h.

◆ _gamePhase

GamePhase CGE2::CGE2Engine::_gamePhase

Definition at line 286 of file cge2.h.

◆ _heroTab

HeroTab* CGE2::CGE2Engine::_heroTab[2]

Definition at line 319 of file cge2.h.

◆ _infoLine

InfoLine* CGE2::CGE2Engine::_infoLine

Definition at line 326 of file cge2.h.

◆ _keyboard

Keyboard* CGE2::CGE2Engine::_keyboard

Definition at line 328 of file cge2.h.

◆ _lastFrame

uint32 CGE2::CGE2Engine::_lastFrame
private

Definition at line 143 of file cge2.h.

◆ _lastTick

uint32 CGE2::CGE2Engine::_lastTick
private

Definition at line 143 of file cge2.h.

◆ _map

Map* CGE2::CGE2Engine::_map

Definition at line 335 of file cge2.h.

◆ _midiNotify

NotifyFunctionType CGE2::CGE2Engine::_midiNotify

Definition at line 302 of file cge2.h.

◆ _midiPlayer

MusicPlayer* CGE2::CGE2Engine::_midiPlayer

Definition at line 315 of file cge2.h.

◆ _mouse

Mouse* CGE2::CGE2Engine::_mouse

Definition at line 327 of file cge2.h.

◆ _mouseTop

int CGE2::CGE2Engine::_mouseTop

Definition at line 289 of file cge2.h.

◆ _music

bool CGE2::CGE2Engine::_music

Definition at line 310 of file cge2.h.

◆ _muteAll

bool CGE2::CGE2Engine::_muteAll

Definition at line 311 of file cge2.h.

◆ _now

int CGE2::CGE2Engine::_now

Definition at line 287 of file cge2.h.

◆ _oldMusicVolume

int CGE2::CGE2Engine::_oldMusicVolume

Definition at line 308 of file cge2.h.

◆ _oldSfxVolume

int CGE2::CGE2Engine::_oldSfxVolume

Definition at line 309 of file cge2.h.

◆ _point

V3D* CGE2::CGE2Engine::_point[kMaxPoint]

Definition at line 330 of file cge2.h.

◆ _quitFlag

bool CGE2::CGE2Engine::_quitFlag

Definition at line 284 of file cge2.h.

◆ _randomSource

Common::RandomSource CGE2::CGE2Engine::_randomSource

Definition at line 282 of file cge2.h.

◆ _ref

int CGE2::CGE2Engine::_ref[2]

Definition at line 296 of file cge2.h.

◆ _req

int CGE2::CGE2Engine::_req

Definition at line 301 of file cge2.h.

◆ _resman

ResourceManager* CGE2::CGE2Engine::_resman

Definition at line 313 of file cge2.h.

◆ _sayCap

bool CGE2::CGE2Engine::_sayCap

Definition at line 306 of file cge2.h.

◆ _sayVox

bool CGE2::CGE2Engine::_sayVox

Definition at line 307 of file cge2.h.

◆ _sex

int CGE2::CGE2Engine::_sex

Definition at line 288 of file cge2.h.

◆ _sound

Sound* CGE2::CGE2Engine::_sound

Definition at line 317 of file cge2.h.

◆ _soundStat

struct { ... } CGE2::CGE2Engine::_soundStat

◆ _spare

Spare* CGE2::CGE2Engine::_spare

Definition at line 322 of file cge2.h.

◆ _spriteNotify

NotifyFunctionType CGE2::CGE2Engine::_spriteNotify

Definition at line 303 of file cge2.h.

◆ _startGameSlot

int CGE2::CGE2Engine::_startGameSlot

Definition at line 304 of file cge2.h.

◆ _sys

System* CGE2::CGE2Engine::_sys

Definition at line 331 of file cge2.h.

◆ _taken

bool CGE2::CGE2Engine::_taken

Definition at line 299 of file cge2.h.

◆ _talk

Talk* CGE2::CGE2Engine::_talk

Definition at line 329 of file cge2.h.

◆ _text

Text* CGE2::CGE2Engine::_text

Definition at line 318 of file cge2.h.

◆ _vga

Vga* CGE2::CGE2Engine::_vga

Definition at line 314 of file cge2.h.

◆ _vol

Sprite* CGE2::CGE2Engine::_vol[2]

Definition at line 333 of file cge2.h.

◆ _wait

int* CGE2::CGE2Engine::_wait

Definition at line 295 of file cge2.h.

◆ _waitRef

int CGE2::CGE2Engine::_waitRef

Definition at line 292 of file cge2.h.

◆ _waitSeq

int CGE2::CGE2Engine::_waitSeq

Definition at line 291 of file cge2.h.


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