Toon::ToonEngine Class Reference

#include <toon.h>

+ Inheritance diagram for Toon::ToonEngine:
+ Collaboration diagram for Toon::ToonEngine:

Public Member Functions

 ToonEngine (OSystem *syst, const ADGameDescription *gameDescription)
 ~ToonEngine () override
Common::Error run () override
 Init the engine and start its main loop. More...
bool showMainmenu (bool &loadedGame)
bool showOptions ()
void init ()
bool loadToonDat ()
char ** loadTextsVariants (Common::File &in)
void unloadTextsVariants (char **texts)
void unloadToonDat ()
void setPaletteEntries (uint8 *palette, int32 offset, int32 num)
void fixPaletteEntries (uint8 *palette, int num)
void flushPalette (bool deferFlushToNextRender=true)
void parseInput ()
void initChapter ()
void initFonts ()
void setFont (bool alternative)
void loadScene (int32 SceneId, bool forGameLoad=false)
void exitScene ()
void loadCursor ()
void setCursor (int32 type, bool inventory=false, int32 offsetX=0, int offsetY=0)
void loadAdditionalPalette (const Common::String &fileName, int32 mode)
void setupGeneralPalette ()
void render ()
void update (int32 timeIncrement)
void doFrame ()
void updateAnimationSceneScripts (int32 timeElapsed)
void updateCharacters (int32 timeElapsed)
void setSceneAnimationScriptUpdate (bool enable)
bool isUpdatingSceneAnimation ()
int32 getCurrentUpdatingSceneAnimation ()
int32 randRange (int32 minStart, int32 maxStart)
void selectHotspot ()
void clickEvent ()
int32 runEventScript (int32 x, int32 y, int32 mode, int32 id, int32 scriptId)
void flipScreens ()
void drawInfoLine ()
void drawConversationLine ()
const char * getLocationString (int32 locationId, bool alreadyVisited)
int32 getScaleAtPoint (int32 x, int32 y)
int32 getZAtPoint (int32 x, int32 y)
int32 getLayerAtPoint (int32 x, int32 y)
int32 characterTalk (int32 dialogid, bool blocking=true)
int32 simpleCharacterTalk (int32 dialogid)
void sayLines (int numLines, int dialogId)
void haveAConversation (int32 convId)
void processConversationClick (Conversation *conv, int32 status)
int32 runConversationCommand (int16 **command)
void prepareConversations ()
void drawConversationIcons ()
void simpleUpdate (bool waitCharacterToTalk=false)
int32 waitTicks (int32 numTicks, bool breakOnMouseClick)
void copyToVirtualScreen (bool updateScreen=true)
void getMouseEvent ()
int32 showInventory ()
void drawSack ()
void addItemToInventory (int32 item)
void deleteItemFromInventory (int32 item)
void replaceItemFromInventory (int32 item, int32 destItem)
void rearrangeInventory ()
void createMouseItem (int32 item)
void deleteMouseItem ()
void showCutaway (const Common::String &cutawayPicture)
void hideCutaway ()
void drawPalette ()
void newGame ()
void playSoundWrong ()
void playSFX (int32 id, int32 volume)
void storeRifFlags (int32 location)
void restoreRifFlags (int32 location)
void getTextPosition (int32 characterId, int32 *retX, int32 *retY)
int32 getConversationFlag (int32 locationId, int32 param)
int32 getSpecialInventoryItem (int32 item)
CharactergetCharacterById (int32 charId)
Common::String getSavegameName (int nr)
bool loadGame (int32 slot)
bool saveGame (int32 slot, const Common::String &saveGameDesc)
void fadeIn (int32 numFrames)
void fadeOut (int32 numFrames)
void initCharacter (int32 characterId, int32 animScriptId, int32 animToPlayId, int32 sceneAnimationId)
int32 handleInventoryOnFlux (int32 itemId)
int32 handleInventoryOnInventory (int32 itemDest, int32 itemSrc)
int32 handleInventoryOnDrew (int32 itemId)
int32 pauseSceneAnimationScript (int32 animScriptId, int32 tickToWait)
void updateTimer (int32 timeIncrement)
Common::String createRoomFilename (const Common::String &name)
void createShadowLUT ()
void playTalkAnimOnCharacter (int32 animID, int32 characterId, bool talker)
void updateScrolling (bool force, int32 timeIncrement)
void enableTimer (int32 timerId)
void setTimer (int32 timerId, int32 timerWait)
void disableTimer (int32 timerId)
void updateTimers ()
void makeLineNonWalkable (int32 x, int32 y, int32 x2, int32 y2)
void makeLineWalkable (int32 x, int32 y, int32 x2, int32 y2)
void renderInventory ()
void viewInventoryItem (const Common::String &str, int32 lineId, int32 itemDest)
void storePalette ()
void restorePalette ()
const char * getSpecialConversationMusic (int32 locationId)
void playRoomMusic ()
void waitForScriptStep ()
void doMagnifierEffect ()
void drawCustomText (int16 x, int16 y, const char *line, Graphics::Surface *frame, byte color)
bool canSaveGameStateCurrently () override
 Indicates whether a game state can be saved. More...
bool canLoadGameStateCurrently () override
 Indicates whether a game state can be loaded. More...
void pauseEngineIntern (bool pause) override
 Actual implementation of pauseEngine by subclasses. More...
Resourcesresources ()
Statestate ()
Graphics::SurfacegetMainSurface ()
PicturegetMask ()
PicturegetPicture ()
AnimationManagergetAnimationManager ()
MoviegetMoviePlayer ()
SceneAnimationgetSceneAnimation (int32 id)
SceneAnimationScriptgetSceneAnimationScript (int32 id)
EMCInterpretergetScript ()
HotspotsgetHotspots ()
CharactergetCharacter (int32 charId)
uint8getShadowLUT ()
int32 getCurrentLineToSay ()
int32 getCurrentCharacterTalking ()
CharacterDrewgetDrew ()
CharacterFluxgetFlux ()
int32 getTickLength ()
int32 getOldMilli ()
AudioManagergetAudioManager ()
int32 getScriptRegionNested ()
int32 getMouseX ()
int32 getMouseY ()
PathFindinggetPathFinding ()
Common::WriteStreamgetSaveBufferStream ()
bool shouldQuitGame () const
Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override
 Save a game state. More...
Common::Error loadGameState (int slot) override
 Load a game state. More...
bool hasFeature (EngineFeature f) const override
 Determine whether the engine supports the specified feature. More...
void dirtyAllScreen ()
void addDirtyRect (int32 left, int32 top, int32 right, int32 bottom)
void clearDirtyRects ()
- 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 Attributes

const ADGameDescription_gameDescription
Common::Language _language
byte _numVariant
byte _gameVariant
char ** _locationDirNotVisited
char ** _locationDirVisited
char ** _specialInfoLine
- Public Attributes inherited from Engine

Protected Attributes

int32 _tickLength
bool _additionalPalette2Present
EMCData _scriptData
EMCState _scriptState [4]
int32 _currentScriptRegion
SceneAnimation _sceneAnimations [64]
SceneAnimationScript _sceneAnimationScripts [64]
int32 _lastProcessedSceneScript
bool _animationSceneScriptRunFlag
bool _updatingSceneScriptRunFlag
Common::Array< Common::Rect_dirtyRects
Common::Array< Common::Rect_oldDirtyRects
bool _dirtyAll
int32 _cursorOffsetX
int32 _cursorOffsetY
char * _currentTextLine
int32 _currentTextLineId
int32 _currentTextLineX
int32 _currentTextLineY
int32 _currentTextLineCharacterId
int32 _oldScrollValue
Character_characters [32]
int32 _currentHotspotItem
bool _shouldQuit
int32 _scriptStep
int32 _mouseX
int32 _mouseY
int32 _mouseButton
int32 _lastMouseButton
int32 _oldTimer
int32 _oldTimer2
int32 _lastRenderTime
Common::RandomSource _rnd
bool _firstFrame
bool _isDemo
bool _showConversationText
bool _useAlternativeFont
bool _needPaletteFlush
- Protected Attributes inherited from Engine
const Common::String _targetName

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 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...
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)

Detailed Description

Definition at line 99 of file toon.h.

Constructor & Destructor Documentation

◆ ToonEngine()

Toon::ToonEngine::ToonEngine ( OSystem syst,
const ADGameDescription gameDescription 

Definition at line 1153 of file toon.cpp.

◆ ~ToonEngine()

Toon::ToonEngine::~ToonEngine ( )

Definition at line 1306 of file toon.cpp.

Member Function Documentation

◆ addDirtyRect()

void Toon::ToonEngine::addDirtyRect ( int32  left,
int32  top,
int32  right,
int32  bottom 

Definition at line 5062 of file toon.cpp.

◆ addItemToInventory()

void Toon::ToonEngine::addItemToInventory ( int32  item)

Definition at line 3092 of file toon.cpp.

◆ canLoadGameStateCurrently()

bool Toon::ToonEngine::canLoadGameStateCurrently ( )

Indicates whether a game state can be loaded.

Reimplemented from Engine.

Definition at line 3339 of file toon.cpp.

◆ canSaveGameStateCurrently()

bool Toon::ToonEngine::canSaveGameStateCurrently ( )

Indicates whether a game state can be saved.

Reimplemented from Engine.

Definition at line 3335 of file toon.cpp.

◆ characterTalk()

int32 Toon::ToonEngine::characterTalk ( int32  dialogid,
bool  blocking = true 

Definition at line 2381 of file toon.cpp.

◆ clearDirtyRects()

void Toon::ToonEngine::clearDirtyRects ( )

Definition at line 5092 of file toon.cpp.

◆ clickEvent()

void Toon::ToonEngine::clickEvent ( )

Definition at line 1800 of file toon.cpp.

◆ copyToVirtualScreen()

void Toon::ToonEngine::copyToVirtualScreen ( bool  updateScreen = true)

Definition at line 489 of file toon.cpp.

◆ createMouseItem()

void Toon::ToonEngine::createMouseItem ( int32  item)

Definition at line 3122 of file toon.cpp.

◆ createRoomFilename()

Common::String Toon::ToonEngine::createRoomFilename ( const Common::String name)

Definition at line 4878 of file toon.cpp.

◆ createShadowLUT()

void Toon::ToonEngine::createShadowLUT ( )

Definition at line 4883 of file toon.cpp.

◆ deleteItemFromInventory()

void Toon::ToonEngine::deleteItemFromInventory ( int32  item)

Definition at line 4849 of file toon.cpp.

◆ deleteMouseItem()

void Toon::ToonEngine::deleteMouseItem ( )

Definition at line 3127 of file toon.cpp.

◆ dirtyAllScreen()

void Toon::ToonEngine::dirtyAllScreen ( )

Definition at line 5056 of file toon.cpp.

◆ disableTimer()

void Toon::ToonEngine::disableTimer ( int32  timerId)

Definition at line 272 of file toon.cpp.

◆ doFrame()

void Toon::ToonEngine::doFrame ( )

Definition at line 547 of file toon.cpp.

◆ doMagnifierEffect()

void Toon::ToonEngine::doMagnifierEffect ( )

Definition at line 440 of file toon.cpp.

◆ drawConversationIcons()

void Toon::ToonEngine::drawConversationIcons ( )

Definition at line 2591 of file toon.cpp.

◆ drawConversationLine()

void Toon::ToonEngine::drawConversationLine ( )

Definition at line 3286 of file toon.cpp.

◆ drawCustomText()

void Toon::ToonEngine::drawCustomText ( int16  x,
int16  y,
const char *  line,
Graphics::Surface frame,
byte  color 

Definition at line 3294 of file toon.cpp.

◆ drawInfoLine()

void Toon::ToonEngine::drawInfoLine ( )

Definition at line 2206 of file toon.cpp.

◆ drawPalette()

void Toon::ToonEngine::drawPalette ( )

Definition at line 3168 of file toon.cpp.

◆ drawSack()

void Toon::ToonEngine::drawSack ( )

Definition at line 3086 of file toon.cpp.

◆ enableTimer()

void Toon::ToonEngine::enableTimer ( int32  timerId)

Definition at line 265 of file toon.cpp.

◆ exitScene()

void Toon::ToonEngine::exitScene ( )

Definition at line 2070 of file toon.cpp.

◆ fadeIn()

void Toon::ToonEngine::fadeIn ( int32  numFrames)

Definition at line 2153 of file toon.cpp.

◆ fadeOut()

void Toon::ToonEngine::fadeOut ( int32  numFrames)

Definition at line 2168 of file toon.cpp.

◆ fixPaletteEntries()

void Toon::ToonEngine::fixPaletteEntries ( uint8 palette,
int  num 

Definition at line 1410 of file toon.cpp.

◆ flipScreens()

void Toon::ToonEngine::flipScreens ( )

Definition at line 2137 of file toon.cpp.

◆ flushPalette()

void Toon::ToonEngine::flushPalette ( bool  deferFlushToNextRender = true)

Definition at line 1378 of file toon.cpp.

◆ getAnimationManager()

AnimationManager* Toon::ToonEngine::getAnimationManager ( )

Definition at line 238 of file toon.h.

◆ getAudioManager()

AudioManager* Toon::ToonEngine::getAudioManager ( )

Definition at line 294 of file toon.h.

◆ getCharacter()

Character* Toon::ToonEngine::getCharacter ( int32  charId)

Definition at line 262 of file toon.h.

◆ getCharacterById()

Character * Toon::ToonEngine::getCharacterById ( int32  charId)

Definition at line 3278 of file toon.cpp.

◆ getConversationFlag()

int32 Toon::ToonEngine::getConversationFlag ( int32  locationId,
int32  param 

Definition at line 2708 of file toon.cpp.

◆ getCurrentCharacterTalking()

int32 Toon::ToonEngine::getCurrentCharacterTalking ( )

Definition at line 274 of file toon.h.

◆ getCurrentLineToSay()

int32 Toon::ToonEngine::getCurrentLineToSay ( )

Definition at line 270 of file toon.h.

◆ getCurrentUpdatingSceneAnimation()

int32 Toon::ToonEngine::getCurrentUpdatingSceneAnimation ( )

Definition at line 1762 of file toon.cpp.

◆ getDrew()

CharacterDrew* Toon::ToonEngine::getDrew ( )

Definition at line 278 of file toon.h.

◆ getFlux()

CharacterFlux* Toon::ToonEngine::getFlux ( )

Definition at line 282 of file toon.h.

◆ getHotspots()

Hotspots* Toon::ToonEngine::getHotspots ( )

Definition at line 258 of file toon.h.

◆ getLayerAtPoint()

int32 Toon::ToonEngine::getLayerAtPoint ( int32  x,
int32  y 

Definition at line 2250 of file toon.cpp.

◆ getLocationString()

const char * Toon::ToonEngine::getLocationString ( int32  locationId,
bool  alreadyVisited 

Definition at line 2231 of file toon.cpp.

◆ getMainSurface()

Graphics::Surface& Toon::ToonEngine::getMainSurface ( )

Definition at line 226 of file toon.h.

◆ getMask()

Picture* Toon::ToonEngine::getMask ( )

Definition at line 230 of file toon.h.

◆ getMouseEvent()

void Toon::ToonEngine::getMouseEvent ( )

Definition at line 3074 of file toon.cpp.

◆ getMouseX()

int32 Toon::ToonEngine::getMouseX ( )

Definition at line 302 of file toon.h.

◆ getMouseY()

int32 Toon::ToonEngine::getMouseY ( )

Definition at line 306 of file toon.h.

◆ getMoviePlayer()

Movie* Toon::ToonEngine::getMoviePlayer ( )

Definition at line 242 of file toon.h.

◆ getOldMilli()

int32 Toon::ToonEngine::getOldMilli ( )

Definition at line 290 of file toon.h.

◆ getPathFinding()

PathFinding* Toon::ToonEngine::getPathFinding ( )

Definition at line 310 of file toon.h.

◆ getPicture()

Picture* Toon::ToonEngine::getPicture ( )

Definition at line 234 of file toon.h.

◆ getSaveBufferStream()

Common::WriteStream * Toon::ToonEngine::getSaveBufferStream ( )

Definition at line 2227 of file toon.cpp.

◆ getSavegameName()

Common::String Toon::ToonEngine::getSavegameName ( int  nr)

Definition at line 3343 of file toon.cpp.

◆ getScaleAtPoint()

int32 Toon::ToonEngine::getScaleAtPoint ( int32  x,
int32  y 

Definition at line 2238 of file toon.cpp.

◆ getSceneAnimation()

SceneAnimation* Toon::ToonEngine::getSceneAnimation ( int32  id)

Definition at line 246 of file toon.h.

◆ getSceneAnimationScript()

SceneAnimationScript* Toon::ToonEngine::getSceneAnimationScript ( int32  id)

Definition at line 250 of file toon.h.

◆ getScript()

EMCInterpreter* Toon::ToonEngine::getScript ( )

Definition at line 254 of file toon.h.

◆ getScriptRegionNested()

int32 Toon::ToonEngine::getScriptRegionNested ( )

Definition at line 298 of file toon.h.

◆ getShadowLUT()

uint8* Toon::ToonEngine::getShadowLUT ( )

Definition at line 266 of file toon.h.

◆ getSpecialConversationMusic()

const char * Toon::ToonEngine::getSpecialConversationMusic ( int32  locationId)

Definition at line 3705 of file toon.cpp.

◆ getSpecialInventoryItem()

int32 Toon::ToonEngine::getSpecialInventoryItem ( int32  item)

Definition at line 3616 of file toon.cpp.

◆ getTextPosition()

void Toon::ToonEngine::getTextPosition ( int32  characterId,
int32 retX,
int32 retY 

Definition at line 3214 of file toon.cpp.

◆ getTickLength()

int32 Toon::ToonEngine::getTickLength ( )

Definition at line 286 of file toon.h.

◆ getZAtPoint()

int32 Toon::ToonEngine::getZAtPoint ( int32  x,
int32  y 

Definition at line 2262 of file toon.cpp.

◆ handleInventoryOnDrew()

int32 Toon::ToonEngine::handleInventoryOnDrew ( int32  itemId)

Definition at line 4652 of file toon.cpp.

◆ handleInventoryOnFlux()

int32 Toon::ToonEngine::handleInventoryOnFlux ( int32  itemId)

Definition at line 3672 of file toon.cpp.

◆ handleInventoryOnInventory()

int32 Toon::ToonEngine::handleInventoryOnInventory ( int32  itemDest,
int32  itemSrc 

Definition at line 3840 of file toon.cpp.

◆ hasFeature()

bool Toon::ToonEngine::hasFeature ( EngineFeature  f) const

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

Definition at line 328 of file toon.h.

◆ haveAConversation()

void Toon::ToonEngine::haveAConversation ( int32  convId)

Definition at line 2499 of file toon.cpp.

◆ hideCutaway()

void Toon::ToonEngine::hideCutaway ( )

Definition at line 3149 of file toon.cpp.

◆ init()

void Toon::ToonEngine::init ( void  )

Definition at line 50 of file toon.cpp.

◆ initChapter()

void Toon::ToonEngine::initChapter ( )

Definition at line 1695 of file toon.cpp.

◆ initCharacter()

void Toon::ToonEngine::initCharacter ( int32  characterId,
int32  animScriptId,
int32  animToPlayId,
int32  sceneAnimationId 

Definition at line 3642 of file toon.cpp.

◆ initFonts()

void Toon::ToonEngine::initFonts ( )

Definition at line 2186 of file toon.cpp.

◆ isUpdatingSceneAnimation()

bool Toon::ToonEngine::isUpdatingSceneAnimation ( )

Definition at line 1758 of file toon.cpp.

◆ loadAdditionalPalette()

void Toon::ToonEngine::loadAdditionalPalette ( const Common::String fileName,
int32  mode 

Definition at line 1661 of file toon.cpp.

◆ loadCursor()

void Toon::ToonEngine::loadCursor ( )

Definition at line 1716 of file toon.cpp.

◆ loadGame()

bool Toon::ToonEngine::loadGame ( int32  slot)

Definition at line 3442 of file toon.cpp.

◆ loadGameState()

Common::Error Toon::ToonEngine::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 324 of file toon.h.

◆ loadScene()

void Toon::ToonEngine::loadScene ( int32  SceneId,
bool  forGameLoad = false 

Definition at line 1461 of file toon.cpp.

◆ loadTextsVariants()

char ** Toon::ToonEngine::loadTextsVariants ( Common::File in)

Definition at line 4992 of file toon.cpp.

◆ loadToonDat()

bool Toon::ToonEngine::loadToonDat ( )

Definition at line 4937 of file toon.cpp.

◆ makeLineNonWalkable()

void Toon::ToonEngine::makeLineNonWalkable ( int32  x,
int32  y,
int32  x2,
int32  y2 

Definition at line 5036 of file toon.cpp.

◆ makeLineWalkable()

void Toon::ToonEngine::makeLineWalkable ( int32  x,
int32  y,
int32  x2,
int32  y2 

Definition at line 5040 of file toon.cpp.

◆ newGame()

void Toon::ToonEngine::newGame ( )

Definition at line 3188 of file toon.cpp.

◆ parseInput()

void Toon::ToonEngine::parseInput ( )

Definition at line 179 of file toon.cpp.

◆ pauseEngineIntern()

void Toon::ToonEngine::pauseEngineIntern ( bool  pause)

Actual implementation of pauseEngine by subclasses.

See there for details.

Reimplemented from Engine.

Definition at line 3305 of file toon.cpp.

◆ pauseSceneAnimationScript()

int32 Toon::ToonEngine::pauseSceneAnimationScript ( int32  animScriptId,
int32  tickToWait 

Definition at line 4868 of file toon.cpp.

◆ playRoomMusic()

void Toon::ToonEngine::playRoomMusic ( )

Definition at line 5044 of file toon.cpp.

◆ playSFX()

void Toon::ToonEngine::playSFX ( int32  id,
int32  volume 

Definition at line 3203 of file toon.cpp.

◆ playSoundWrong()

void Toon::ToonEngine::playSoundWrong ( )

Definition at line 3210 of file toon.cpp.

◆ playTalkAnimOnCharacter()

void Toon::ToonEngine::playTalkAnimOnCharacter ( int32  animID,
int32  characterId,
bool  talker 

Definition at line 2357 of file toon.cpp.

◆ prepareConversations()

void Toon::ToonEngine::prepareConversations ( )

Definition at line 2604 of file toon.cpp.

◆ processConversationClick()

void Toon::ToonEngine::processConversationClick ( Conversation conv,
int32  status 

Definition at line 2645 of file toon.cpp.

◆ randRange()

int32 Toon::ToonEngine::randRange ( int32  minStart,
int32  maxStart 

Definition at line 1766 of file toon.cpp.

◆ rearrangeInventory()

void Toon::ToonEngine::rearrangeInventory ( )

Definition at line 3176 of file toon.cpp.

◆ render()

void Toon::ToonEngine::render ( )

Definition at line 377 of file toon.cpp.

◆ renderInventory()

void Toon::ToonEngine::renderInventory ( )

Definition at line 2911 of file toon.cpp.

◆ replaceItemFromInventory()

void Toon::ToonEngine::replaceItemFromInventory ( int32  item,
int32  destItem 

Definition at line 4859 of file toon.cpp.

◆ resources()

Resources* Toon::ToonEngine::resources ( )

Definition at line 218 of file toon.h.

◆ restorePalette()

void Toon::ToonEngine::restorePalette ( )

Definition at line 3700 of file toon.cpp.

◆ restoreRifFlags()

void Toon::ToonEngine::restoreRifFlags ( int32  location)

Definition at line 2280 of file toon.cpp.

◆ run()

Common::Error Toon::ToonEngine::run ( )

Init the engine and start its main loop.

returns kNoError on success, else an error code.

Implements Engine.

Definition at line 1116 of file toon.cpp.

◆ runConversationCommand()

int32 Toon::ToonEngine::runConversationCommand ( int16 **  command)

Definition at line 2859 of file toon.cpp.

◆ runEventScript()

int32 Toon::ToonEngine::runEventScript ( int32  x,
int32  y,
int32  mode,
int32  id,
int32  scriptId 

Definition at line 1770 of file toon.cpp.

◆ saveGame()

bool Toon::ToonEngine::saveGame ( int32  slot,
const Common::String saveGameDesc 

Definition at line 3347 of file toon.cpp.

◆ saveGameState()

Common::Error Toon::ToonEngine::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 320 of file toon.h.

◆ sayLines()

void Toon::ToonEngine::sayLines ( int  numLines,
int  dialogId 

Definition at line 2300 of file toon.cpp.

◆ selectHotspot()

void Toon::ToonEngine::selectHotspot ( )

Definition at line 1965 of file toon.cpp.

◆ setCursor()

void Toon::ToonEngine::setCursor ( int32  type,
bool  inventory = false,
int32  offsetX = 0,
int  offsetY = 0 

Definition at line 1731 of file toon.cpp.

◆ setFont()

void Toon::ToonEngine::setFont ( bool  alternative)

Definition at line 2197 of file toon.cpp.

◆ setPaletteEntries()

void Toon::ToonEngine::setPaletteEntries ( uint8 palette,
int32  offset,
int32  num 

Definition at line 1387 of file toon.cpp.

◆ setSceneAnimationScriptUpdate()

void Toon::ToonEngine::setSceneAnimationScriptUpdate ( bool  enable)

Definition at line 1754 of file toon.cpp.

◆ setTimer()

void Toon::ToonEngine::setTimer ( int32  timerId,
int32  timerWait 

Definition at line 268 of file toon.cpp.

◆ setupGeneralPalette()

void Toon::ToonEngine::setupGeneralPalette ( )

Definition at line 1652 of file toon.cpp.

◆ shouldQuitGame()

bool Toon::ToonEngine::shouldQuitGame ( ) const

Definition at line 316 of file toon.h.

◆ showCutaway()

void Toon::ToonEngine::showCutaway ( const Common::String cutawayPicture)

Definition at line 3133 of file toon.cpp.

◆ showInventory()

int32 Toon::ToonEngine::showInventory ( )

Definition at line 2947 of file toon.cpp.

◆ showMainmenu()

bool Toon::ToonEngine::showMainmenu ( bool &  loadedGame)

Definition at line 945 of file toon.cpp.

◆ showOptions()

bool Toon::ToonEngine::showOptions ( )

Definition at line 668 of file toon.cpp.

◆ simpleCharacterTalk()

int32 Toon::ToonEngine::simpleCharacterTalk ( int32  dialogid)

Definition at line 2338 of file toon.cpp.

◆ simpleUpdate()

void Toon::ToonEngine::simpleUpdate ( bool  waitCharacterToTalk = false)

Definition at line 1392 of file toon.cpp.

◆ state()

State* Toon::ToonEngine::state ( )

Definition at line 222 of file toon.h.

◆ storePalette()

void Toon::ToonEngine::storePalette ( )

Definition at line 3696 of file toon.cpp.

◆ storeRifFlags()

void Toon::ToonEngine::storeRifFlags ( int32  location)

Definition at line 2268 of file toon.cpp.

◆ unloadTextsVariants()

void Toon::ToonEngine::unloadTextsVariants ( char **  texts)

Definition at line 5028 of file toon.cpp.

◆ unloadToonDat()

void Toon::ToonEngine::unloadToonDat ( )

Definition at line 4986 of file toon.cpp.

◆ update()

void Toon::ToonEngine::update ( int32  timeIncrement)

Definition at line 348 of file toon.cpp.

◆ updateAnimationSceneScripts()

void Toon::ToonEngine::updateAnimationSceneScripts ( int32  timeElapsed)

Definition at line 1422 of file toon.cpp.

◆ updateCharacters()

void Toon::ToonEngine::updateCharacters ( int32  timeElapsed)

Definition at line 3160 of file toon.cpp.

◆ updateScrolling()

void Toon::ToonEngine::updateScrolling ( bool  force,
int32  timeIncrement 

Definition at line 307 of file toon.cpp.

◆ updateTimer()

void Toon::ToonEngine::updateTimer ( int32  timeIncrement)

Definition at line 368 of file toon.cpp.

◆ updateTimers()

void Toon::ToonEngine::updateTimers ( )

Definition at line 275 of file toon.cpp.

◆ viewInventoryItem()

void Toon::ToonEngine::viewInventoryItem ( const Common::String str,
int32  lineId,
int32  itemDest 

Definition at line 3777 of file toon.cpp.

◆ waitForScriptStep()

void Toon::ToonEngine::waitForScriptStep ( )

Definition at line 170 of file toon.cpp.

◆ waitTicks()

int32 Toon::ToonEngine::waitTicks ( int32  numTicks,
bool  breakOnMouseClick 

Definition at line 2896 of file toon.cpp.

Member Data Documentation

◆ _additionalPalette1

uint8* Toon::ToonEngine::_additionalPalette1

Definition at line 347 of file toon.h.

◆ _additionalPalette2

uint8* Toon::ToonEngine::_additionalPalette2

Definition at line 348 of file toon.h.

◆ _additionalPalette2Present

bool Toon::ToonEngine::_additionalPalette2Present

Definition at line 349 of file toon.h.

◆ _animationManager

AnimationManager* Toon::ToonEngine::_animationManager

Definition at line 398 of file toon.h.

◆ _animationSceneScriptRunFlag

bool Toon::ToonEngine::_animationSceneScriptRunFlag

Definition at line 372 of file toon.h.

◆ _audioManager

AudioManager* Toon::ToonEngine::_audioManager

Definition at line 428 of file toon.h.

◆ _backupPalette

uint8* Toon::ToonEngine::_backupPalette

Definition at line 346 of file toon.h.

◆ _characters

Character* Toon::ToonEngine::_characters[32]

Definition at line 400 of file toon.h.

◆ _conversationData

int16* Toon::ToonEngine::_conversationData

Definition at line 432 of file toon.h.

◆ _currentCutaway

Picture* Toon::ToonEngine::_currentCutaway

Definition at line 358 of file toon.h.

◆ _currentFont

Animation* Toon::ToonEngine::_currentFont

Definition at line 426 of file toon.h.

◆ _currentHotspotItem

int32 Toon::ToonEngine::_currentHotspotItem

Definition at line 405 of file toon.h.

◆ _currentMask

Picture* Toon::ToonEngine::_currentMask

Definition at line 357 of file toon.h.

◆ _currentPicture

Picture* Toon::ToonEngine::_currentPicture

Definition at line 356 of file toon.h.

◆ _currentScriptRegion

int32 Toon::ToonEngine::_currentScriptRegion

Definition at line 365 of file toon.h.

◆ _currentTextLine

char* Toon::ToonEngine::_currentTextLine

Definition at line 390 of file toon.h.

◆ _currentTextLineCharacterId

int32 Toon::ToonEngine::_currentTextLineCharacterId

Definition at line 394 of file toon.h.

◆ _currentTextLineId

int32 Toon::ToonEngine::_currentTextLineId

Definition at line 391 of file toon.h.

◆ _currentTextLineX

int32 Toon::ToonEngine::_currentTextLineX

Definition at line 392 of file toon.h.

◆ _currentTextLineY

int32 Toon::ToonEngine::_currentTextLineY

Definition at line 393 of file toon.h.

◆ _cursorAnimation

Animation* Toon::ToonEngine::_cursorAnimation

Definition at line 383 of file toon.h.

◆ _cursorAnimationInstance

AnimationInstance* Toon::ToonEngine::_cursorAnimationInstance

Definition at line 382 of file toon.h.

◆ _cursorOffsetX

int32 Toon::ToonEngine::_cursorOffsetX

Definition at line 387 of file toon.h.

◆ _cursorOffsetY

int32 Toon::ToonEngine::_cursorOffsetY

Definition at line 388 of file toon.h.

◆ _cutawayPalette

uint8* Toon::ToonEngine::_cutawayPalette

Definition at line 350 of file toon.h.

◆ _dialogIcons

Animation* Toon::ToonEngine::_dialogIcons

Definition at line 384 of file toon.h.

◆ _dirtyAll

bool Toon::ToonEngine::_dirtyAll

Definition at line 379 of file toon.h.

◆ _dirtyRects

Common::Array<Common::Rect> Toon::ToonEngine::_dirtyRects

Definition at line 376 of file toon.h.

◆ _drew

Character* Toon::ToonEngine::_drew

Definition at line 401 of file toon.h.

◆ _finalPalette

uint8* Toon::ToonEngine::_finalPalette

Definition at line 345 of file toon.h.

◆ _firstFrame

bool Toon::ToonEngine::_firstFrame

Definition at line 434 of file toon.h.

◆ _flux

Character* Toon::ToonEngine::_flux

Definition at line 402 of file toon.h.

◆ _fluxPalette

uint8* Toon::ToonEngine::_fluxPalette

Definition at line 352 of file toon.h.

◆ _fontEZ

Animation* Toon::ToonEngine::_fontEZ

Definition at line 425 of file toon.h.

◆ _fontRenderer

FontRenderer* Toon::ToonEngine::_fontRenderer

Definition at line 423 of file toon.h.

◆ _fontToon

Animation* Toon::ToonEngine::_fontToon

Definition at line 424 of file toon.h.

◆ _gameDescription

const ADGameDescription* Toon::ToonEngine::_gameDescription

Definition at line 104 of file toon.h.

◆ _gameState

State* Toon::ToonEngine::_gameState

Definition at line 344 of file toon.h.

◆ _gameVariant

byte Toon::ToonEngine::_gameVariant

Definition at line 107 of file toon.h.

◆ _genericTexts

TextResource* Toon::ToonEngine::_genericTexts

Definition at line 342 of file toon.h.

◆ _hotspots

Hotspots* Toon::ToonEngine::_hotspots

Definition at line 404 of file toon.h.

◆ _inventoryIcons

Animation* Toon::ToonEngine::_inventoryIcons

Definition at line 385 of file toon.h.

◆ _inventoryIconSlots

Animation* Toon::ToonEngine::_inventoryIconSlots

Definition at line 386 of file toon.h.

◆ _inventoryPicture

Picture* Toon::ToonEngine::_inventoryPicture

Definition at line 359 of file toon.h.

◆ _isDemo

bool Toon::ToonEngine::_isDemo

Definition at line 435 of file toon.h.

◆ _language

Common::Language Toon::ToonEngine::_language

Definition at line 105 of file toon.h.

◆ _lastMouseButton

int32 Toon::ToonEngine::_lastMouseButton

Definition at line 413 of file toon.h.

◆ _lastProcessedSceneScript

int32 Toon::ToonEngine::_lastProcessedSceneScript

Definition at line 371 of file toon.h.

◆ _lastRenderTime

int32 Toon::ToonEngine::_lastRenderTime

Definition at line 417 of file toon.h.

◆ _locationDirNotVisited

char** Toon::ToonEngine::_locationDirNotVisited

Definition at line 108 of file toon.h.

◆ _locationDirVisited

char** Toon::ToonEngine::_locationDirVisited

Definition at line 109 of file toon.h.

◆ _mainSurface

Graphics::Surface* Toon::ToonEngine::_mainSurface

Definition at line 375 of file toon.h.

◆ _mouseButton

int32 Toon::ToonEngine::_mouseButton

Definition at line 412 of file toon.h.

◆ _mouseX

int32 Toon::ToonEngine::_mouseX

Definition at line 410 of file toon.h.

◆ _mouseY

int32 Toon::ToonEngine::_mouseY

Definition at line 411 of file toon.h.

◆ _moviePlayer

Movie* Toon::ToonEngine::_moviePlayer

Definition at line 419 of file toon.h.

◆ _needPaletteFlush

bool Toon::ToonEngine::_needPaletteFlush

Definition at line 438 of file toon.h.

◆ _numVariant

byte Toon::ToonEngine::_numVariant

Definition at line 106 of file toon.h.

◆ _oldDirtyRects

Common::Array<Common::Rect> Toon::ToonEngine::_oldDirtyRects

Definition at line 377 of file toon.h.

◆ _oldScrollValue

int32 Toon::ToonEngine::_oldScrollValue

Definition at line 396 of file toon.h.

◆ _oldTimer

int32 Toon::ToonEngine::_oldTimer

Definition at line 415 of file toon.h.

◆ _oldTimer2

int32 Toon::ToonEngine::_oldTimer2

Definition at line 416 of file toon.h.

◆ _pathFinding

PathFinding* Toon::ToonEngine::_pathFinding

Definition at line 360 of file toon.h.

◆ _resources

Resources* Toon::ToonEngine::_resources

Definition at line 341 of file toon.h.

◆ _rnd

Common::RandomSource Toon::ToonEngine::_rnd

Definition at line 421 of file toon.h.

◆ _roomScaleData

uint8* Toon::ToonEngine::_roomScaleData

Definition at line 353 of file toon.h.

◆ _roomTexts

TextResource* Toon::ToonEngine::_roomTexts

Definition at line 343 of file toon.h.

◆ _saveBufferStream

Common::MemoryWriteStreamDynamic* Toon::ToonEngine::_saveBufferStream

Definition at line 430 of file toon.h.

◆ _sceneAnimations

SceneAnimation Toon::ToonEngine::_sceneAnimations[64]

Definition at line 369 of file toon.h.

◆ _sceneAnimationScripts

SceneAnimationScript Toon::ToonEngine::_sceneAnimationScripts[64]

Definition at line 370 of file toon.h.

◆ _script

EMCInterpreter* Toon::ToonEngine::_script

Definition at line 362 of file toon.h.

◆ _script_func

ScriptFunc* Toon::ToonEngine::_script_func

Definition at line 367 of file toon.h.

◆ _scriptData

EMCData Toon::ToonEngine::_scriptData

Definition at line 363 of file toon.h.

◆ _scriptState

EMCState Toon::ToonEngine::_scriptState[4]

Definition at line 364 of file toon.h.

◆ _scriptStep

int32 Toon::ToonEngine::_scriptStep

Definition at line 408 of file toon.h.

◆ _shadowLUT

uint8* Toon::ToonEngine::_shadowLUT

Definition at line 354 of file toon.h.

◆ _shouldQuit

bool Toon::ToonEngine::_shouldQuit

Definition at line 407 of file toon.h.

◆ _showConversationText

bool Toon::ToonEngine::_showConversationText

Definition at line 436 of file toon.h.

◆ _specialInfoLine

char** Toon::ToonEngine::_specialInfoLine

Definition at line 110 of file toon.h.

◆ _tickLength

int32 Toon::ToonEngine::_tickLength

Definition at line 340 of file toon.h.

◆ _universalPalette

uint8* Toon::ToonEngine::_universalPalette

Definition at line 351 of file toon.h.

◆ _updatingSceneScriptRunFlag

bool Toon::ToonEngine::_updatingSceneScriptRunFlag

Definition at line 373 of file toon.h.

◆ _useAlternativeFont

bool Toon::ToonEngine::_useAlternativeFont

Definition at line 437 of file toon.h.

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