Public Member Functions | |
ADSInterpreter (DgdsEngine *vm) | |
bool | load (const Common::String &filename) |
void | unload () |
bool | run () |
int | numArgs (uint16 opcode) const |
void | segmentOrState (int16 seg, uint16 val) |
void | segmentSetState (int16 seg, uint16 val) |
void | setHitTTMOp0110 (bool val=true) |
bool | getHitTTMOp0110 () const |
void | setGotoTarget (int32 target) |
int16 | getStateForSceneOp (uint16 segnum) |
void | setScriptDelay (int16 delay) |
Common::Error | syncState (Common::Serializer &s) |
Protected Member Functions | |
bool | handleOperation (uint16 code, Common::SeekableReadStream *scr) |
void | handleRandomOp (Common::SeekableReadStream *scr) |
bool | handleLogicOp (uint16 code, Common::SeekableReadStream *scr) |
bool | logicOpResult (uint16 code, const TTMEnviro *env, const TTMSeq *seq, uint16 arg) |
int16 | randomOpGetProportion (uint16 code, Common::SeekableReadStream *scr) |
bool | playScene () |
bool | skipToElseOrEndif () |
bool | skipToEndIf () |
bool | skipToEndWhile () |
bool | skipSceneLogicBranch () |
Common::SharedPtr< TTMSeq > | findTTMSeq (int16 enviro, int16 seq) |
TTMEnviro * | findTTMEnviro (int16 enviro) |
bool | runUntilBranchOpOrEnd () |
void | findUsedSequencesForSegment (int segno) |
void | findEndOrInitOp () |
bool | updateSeqTimeAndFrame (const TTMEnviro *env, Common::SharedPtr< TTMSeq > seq) |
int | getArrIndexOfSegNum (uint16 segnum) |
Protected Attributes | |
DgdsEngine * | _vm |
TTMInterpreter * | _ttmInterpreter |
Common::HashMap< Common::String, ADSData > | _adsTexts |
ADSData * | _adsData |
Common::SharedPtr< TTMSeq > | _currentTTMSeq |