ScummVM API documentation
Grim::LuaBase Class Reference
Inheritance diagram for Grim::LuaBase:
Grim::Lua_V1 Grim::Lua_Remastered Grim::Lua_V2

Public Types

typedef LuaBase LuaClass
 

Public Member Functions

int dofile (const char *filename)
 
virtual bool findCostume (lua_Object costumeObj, Actor *actor, Costume **costume)
 
virtual Common::String parseMsgText (const char *msg, char *msgId)
 
virtual void parseSayLineTable (lua_Object paramObj, bool *background, int *vol, int *pan, float *x, float *y)
 
virtual void setTextObjectParams (TextObjectCommon *textObject, lua_Object tableObj)
 
void update (int frameTime, int movieTime)
 
void setFrameTime (float frameTime)
 
void setMovieTime (float movieTime)
 
virtual void registerLua ()
 
virtual void registerOpcodes ()
 
virtual void loadSystemScript ()
 
virtual void boot ()
 
virtual void postRestoreHandle ()
 
virtual void forceDemo ()
 
bool callback (const char *name)
 
bool callback (const char *name, const LuaObjects &objects)
 

Static Public Member Functions

static LuaBaseinstance ()
 
static void static_dummyHandler ()
 
static void static_typeOverride ()
 
static void static_concatFallback ()
 

Protected Member Functions

bool getbool (int num)
 
void pushbool (bool val)
 
void pushobject (const PoolObjectBase *o)
 
int getobject (lua_Object obj)
 
Actorgetactor (lua_Object obj)
 
Bitmapgetbitmap (lua_Object obj)
 
TextObjectgettextobject (lua_Object obj)
 
Fontgetfont (lua_Object obj)
 
Color getcolor (lua_Object obj)
 
PrimitiveObjectgetprimitive (lua_Object obj)
 
ObjectStategetobjectstate (lua_Object obj)
 
virtual void dummyHandler ()
 
virtual void typeOverride ()
 
virtual void concatFallback ()
 

Protected Attributes

int _translationMode
 

Member Function Documentation

◆ callback() [1/2]

bool Grim::LuaBase::callback ( const char *  name)

Call a Lua function in the system table.

Parameters
nameThe name of the function.

◆ callback() [2/2]

bool Grim::LuaBase::callback ( const char *  name,
const LuaObjects objects 
)

Call a Lua function in the system table passing the specified arguments.

Parameters
nameThe name of the function;
objectsThe arguments to be passed to the function.

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