ScummVM API documentation
Kyra::TIMInterpreter Class Reference

Classes

struct  CommandEntry
 

Public Member Functions

 TIMInterpreter (KyraEngine_v1 *engine, Screen_v2 *screen_v2, OSystem *system)
 
TIMload (const char *filename, const Common::Array< const TIMOpcode *> *opcodes)
 
void unload (TIM *&tim) const
 
bool callback (Common::IFFChunk &chunk)
 
virtual int initAnimStruct (int index, const char *filename, int x, int y, int, int offscreenBuffer, uint16 wsaFlags)
 
virtual int freeAnimStruct (int index)
 
TimAnimatoranimator ()
 
void setLangData (const char *filename)
 
void clearLangData ()
 
const char * getCTableEntry (uint idx) const
 
void resetFinishedFlag ()
 
bool finished () const
 
int exec (TIM *tim, bool loop)
 
void stopCurFunc ()
 
void stopAllFuncs (TIM *tim)
 
void refreshTimersAfterPause (uint32 elapsedTime)
 
void displayText (uint16 textId, int16 flags)
 
void displayText (uint16 textId, int16 flags, uint8 color)
 
void setupTextPalette (uint index, int fadePalette)
 
virtual void resetDialogueState (TIM *tim)
 

Public Attributes

int _drawPage2
 
int _palDelayInc
 
int _palDiff
 
int _palDelayAcc
 
int _abortFlag
 

Protected Types

typedef int(TIMInterpreter::* CommandProc) (const uint16 *)
 

Protected Member Functions

virtual void update ()
 
virtual void checkSpeechProgress ()
 
char * getTableEntry (uint idx)
 
virtual int execCommand (int cmd, const uint16 *param)
 
int cmd_initFunc0 (const uint16 *param)
 
int cmd_stopCurFunc (const uint16 *param)
 
int cmd_initWSA (const uint16 *param)
 
int cmd_uninitWSA (const uint16 *param)
 
int cmd_initFunc (const uint16 *param)
 
int cmd_stopFunc (const uint16 *param)
 
int cmd_wsaDisplayFrame (const uint16 *param)
 
int cmd_displayText (const uint16 *param)
 
int cmd_loadVocFile (const uint16 *param)
 
int cmd_unloadVocFile (const uint16 *param)
 
int cmd_playVocFile (const uint16 *param)
 
int cmd_loadSoundFile (const uint16 *param)
 
int cmd_playMusicTrack (const uint16 *param)
 
virtual int cmd_setLoopIp (const uint16 *param)
 
virtual int cmd_continueLoop (const uint16 *param)
 
int cmd_resetLoopIp (const uint16 *param)
 
int cmd_resetAllRuntimes (const uint16 *param)
 
int cmd_execOpcode (const uint16 *param)
 
int cmd_initFuncNow (const uint16 *param)
 
int cmd_stopFuncNow (const uint16 *param)
 
int cmd_return_1 (const uint16 *)
 
int cmd_return_n1 (const uint16 *)
 

Protected Attributes

KyraEngine_v1_vm
 
Screen_v2_screen
 
OSystem_system
 
TIM_currentTim
 
int _currentFunc
 
TimAnimator_animator
 
bool _finished
 
int _avtlChunkSize
 
const char * _filename
 
TIM_tim
 
Common::String _vocFiles [120]
 
char _audioFilename [32]
 
uint8 * _langData
 
bool _textDisplayed
 
uint8 * _textAreaBuffer
 
const CommandEntry_commands
 
int _commandsSize
 

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