ScummVM API documentation
LingoDec::Handler Struct Reference

Public Member Functions

void setScript (Script *s)
 
void readRecord (Common::SeekableReadStream &stream)
 
void readData (Common::SeekableReadStream &stream)
 
Common::Array< int16 > readVarnamesTable (Common::SeekableReadStream &stream, uint16 count, uint32 offset)
 
void readNames ()
 
bool validName (int id) const
 
Common::String getName (int id) const
 
Common::String getArgumentName (int id) const
 
Common::String getLocalName (int id) const
 
Common::SharedPtr< Nodepop ()
 
int variableMultiplier ()
 
Common::SharedPtr< NodereadVar (int varType)
 
Common::String getVarNameFromSet (const Bytecode &bytecode)
 
Common::SharedPtr< NodereadV4Property (uint32 offset, int propertyType, int propertyID)
 
Common::SharedPtr< NodereadChunkRef (uint32 offset, Common::SharedPtr< Node > string)
 
void tagLoops ()
 
bool isRepeatWithIn (uint32 startIndex, uint32 endIndex)
 
BytecodeTag identifyLoop (uint32 startIndex, uint32 endIndex)
 
void parse ()
 
uint32 translateBytecode (Bytecode &bytecode, uint32 index)
 
void writeBytecodeText (CodeWriterVisitor &code) const
 

Public Attributes

int16 nameID = 0
 
uint16 vectorPos = 0
 
uint32 compiledLen = 0
 
uint32 compiledOffset = 0
 
uint16 argumentCount = 0
 
uint32 argumentOffset = 0
 
uint16 localsCount = 0
 
uint32 localsOffset = 0
 
uint16 globalsCount = 0
 
uint32 globalsOffset = 0
 
uint32 unknown1 = 0
 
uint16 unknown2 = 0
 
uint16 lineCount = 0
 
uint32 lineOffset = 0
 
uint32 stackHeight = 0
 
Common::Array< int16 > argumentNameIDs
 
Common::Array< int16 > localNameIDs
 
Common::Array< int16 > globalNameIDs
 
Scriptscript = nullptr
 
Common::Array< BytecodebytecodeArray
 
Common::StableMap< uint32, size_t > bytecodePosMap
 
Common::Array< Common::StringargumentNames
 
Common::Array< Common::StringlocalNames
 
Common::Array< Common::StringglobalNames
 
Common::String name
 
Common::Array< Common::SharedPtr< Node > > stack
 
AST ast
 
bool isGenericEvent = false
 

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