ScummVM API documentation
Dgds::ADSInterpreter Class Reference

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< TTMSeqfindTTMSeq (int16 enviro, int16 seq)
 
TTMEnvirofindTTMEnviro (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
 

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