Public Member Functions | |
LBCode (MohawkEngine_LivingBooks *vm, uint16 baseId) | |
LBValue | runCode (LBItem *src, uint32 offset) |
uint | parseCode (const Common::String &source) |
void | cmdUnimplemented (const Common::Array< LBValue > ¶ms) |
void | cmdEval (const Common::Array< LBValue > ¶ms) |
void | cmdRandom (const Common::Array< LBValue > ¶ms) |
void | cmdStringLen (const Common::Array< LBValue > ¶ms) |
void | cmdSubstring (const Common::Array< LBValue > ¶ms) |
void | cmdMax (const Common::Array< LBValue > ¶ms) |
void | cmdMin (const Common::Array< LBValue > ¶ms) |
void | cmdAbs (const Common::Array< LBValue > ¶ms) |
void | cmdGetRect (const Common::Array< LBValue > ¶ms) |
void | cmdMakePoint (const Common::Array< LBValue > ¶ms) |
void | cmdTopLeft (const Common::Array< LBValue > ¶ms) |
void | cmdBottomRight (const Common::Array< LBValue > ¶ms) |
void | cmdMousePos (const Common::Array< LBValue > ¶ms) |
void | cmdTop (const Common::Array< LBValue > ¶ms) |
void | cmdLeft (const Common::Array< LBValue > ¶ms) |
void | cmdBottom (const Common::Array< LBValue > ¶ms) |
void | cmdRight (const Common::Array< LBValue > ¶ms) |
void | cmdXPos (const Common::Array< LBValue > ¶ms) |
void | cmdYPos (const Common::Array< LBValue > ¶ms) |
void | cmdWidth (const Common::Array< LBValue > ¶ms) |
void | cmdHeight (const Common::Array< LBValue > ¶ms) |
void | cmdMove (const Common::Array< LBValue > ¶ms) |
void | cmdSetDragParams (const Common::Array< LBValue > ¶ms) |
void | cmdNewList (const Common::Array< LBValue > ¶ms) |
void | cmdAdd (const Common::Array< LBValue > ¶ms) |
void | cmdAddAt (const Common::Array< LBValue > ¶ms) |
void | cmdSetAt (const Common::Array< LBValue > ¶ms) |
void | cmdListLen (const Common::Array< LBValue > ¶ms) |
void | cmdDeleteAt (const Common::Array< LBValue > ¶ms) |
void | cmdSetProperty (const Common::Array< LBValue > ¶ms) |
void | cmdGetProperty (const Common::Array< LBValue > ¶ms) |
void | cmdDeleteVar (const Common::Array< LBValue > ¶ms) |
void | cmdExec (const Common::Array< LBValue > ¶ms) |
void | cmdReturn (const Common::Array< LBValue > ¶ms) |
void | cmdSetPlayParams (const Common::Array< LBValue > ¶ms) |
void | cmdSetKeyEvent (const Common::Array< LBValue > ¶ms) |
void | cmdSetHitTest (const Common::Array< LBValue > ¶ms) |
void | cmdLBXCreate (const Common::Array< LBValue > ¶ms) |
void | cmdLBXFunc (const Common::Array< LBValue > ¶ms) |
void | cmdKey (const Common::Array< LBValue > ¶ms) |
void | itemClone (const Common::Array< LBValue > ¶ms) |
void | itemIsPlaying (const Common::Array< LBValue > ¶ms) |
void | itemIsLoaded (const Common::Array< LBValue > ¶ms) |
void | itemMoveTo (const Common::Array< LBValue > ¶ms) |
void | itemSeek (const Common::Array< LBValue > ¶ms) |
void | itemSeekToFrame (const Common::Array< LBValue > ¶ms) |
void | itemSetParent (const Common::Array< LBValue > ¶ms) |
Protected Member Functions | |
void | nextToken () |
LBValue | runCode (byte terminator) |
void | parseStatement () |
void | parseComparisons () |
void | parseConcat () |
void | parseArithmetic1 () |
void | parseArithmetic2 () |
void | parseMain () |
LBValue * | getIndexedVar (Common::String varname, const Common::Array< LBValue > &index) |
LBItem * | resolveItem (const LBValue &value) |
Common::Array< LBValue > | readParams () |
Common::Rect | getRectFromParams (const Common::Array< LBValue > ¶ms) |
void | runGeneralCommand () |
void | runItemCommand () |
void | runNotifyCommand () |
uint | nextFreeString () |
bool | parseCodeSymbol (Common::String name, uint &pos, Common::Array< byte > &code, bool useAllAliases) |
Protected Attributes | |
MohawkEngine_LivingBooks * | _vm |
uint32 | _size |
byte * | _data |
Common::HashMap< uint16, Common::String > | _strings |
uint32 | _currOffset |
LBItem * | _currSource |
Common::Stack< LBValue > | _stack |
byte | _currToken |
LBValue | _currValue |