ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <lua.h>

Inheritance diagram for Grim::LuaBase:
Collaboration diagram for Grim::LuaBase:

List of all members.

Public Types

typedef LuaBase LuaClass

Public Member Functions

 LuaBase ()
virtual ~LuaBase ()
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)
 Call a Lua function in the system table.
bool callback (const char *name, const LuaObjects &objects)
 Call a Lua function in the system table passing the specified arguments.

Static Public Member Functions

static LuaBaseinstance ()

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)
 DECLARE_LUA_OPCODE (dummyHandler)
 DECLARE_LUA_OPCODE (typeOverride)
 DECLARE_LUA_OPCODE (concatFallback)

Private Attributes

int _translationMode
unsigned int _frameTimeCollection
int refSystemTable
int refTypeOverride
int refOldConcatFallback
int refTextObjectX
int refTextObjectY
int refTextObjectFont
int refTextObjectWidth
int refTextObjectHeight
int refTextObjectFGColor
int refTextObjectBGColor
int refTextObjectFXColor
int refTextObjectHIColor
int refTextObjectDuration
int refTextObjectCenter
int refTextObjectLJustify
int refTextObjectRJustify
int refTextObjectVolume
int refTextObjectBackground
int refTextObjectPan
int refTextObjectLayer

Static Private Attributes

static LuaBases_instance = nullptr

Friends

class LuaObjects

Detailed Description

Definition at line 103 of file lua.h.


Member Typedef Documentation

Reimplemented in Grim::Lua_V2, and Grim::Lua_V1.

Definition at line 105 of file lua.h.


Constructor & Destructor Documentation

Grim::LuaBase::LuaBase (  ) 

Definition at line 109 of file lua.cpp.

Grim::LuaBase::~LuaBase (  )  [virtual]

Definition at line 118 of file lua.cpp.


Member Function Documentation

void Grim::LuaBase::boot (  )  [virtual]

Reimplemented in Grim::Lua_V1.

Definition at line 257 of file lua.cpp.

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

Call a Lua function in the system table.

Parameters:
name The name of the function.

Definition at line 313 of file lua.cpp.

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

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

Parameters:
name The name of the function;
objects The arguments to be passed to the function.

Definition at line 318 of file lua.cpp.

Grim::LuaBase::DECLARE_LUA_OPCODE ( dummyHandler   )  [protected]
Grim::LuaBase::DECLARE_LUA_OPCODE ( typeOverride   )  [protected]
Grim::LuaBase::DECLARE_LUA_OPCODE ( concatFallback   )  [protected]
int Grim::LuaBase::dofile ( const char *  filename  ) 

Definition at line 296 of file lua.cpp.

bool Grim::LuaBase::findCostume ( lua_Object  costumeObj,
Actor actor,
Costume **  costume 
) [virtual]

Reimplemented in Grim::Lua_V2.

Definition at line 395 of file lua.cpp.

void Grim::LuaBase::forceDemo (  )  [virtual]

Definition at line 237 of file lua.cpp.

Actor * Grim::LuaBase::getactor ( lua_Object  obj  )  [protected]

Definition at line 364 of file lua.cpp.

Bitmap * Grim::LuaBase::getbitmap ( lua_Object  obj  )  [protected]

Definition at line 368 of file lua.cpp.

bool Grim::LuaBase::getbool ( int  num  )  [protected]

Definition at line 349 of file lua.cpp.

Color Grim::LuaBase::getcolor ( lua_Object  obj  )  [protected]

Definition at line 380 of file lua.cpp.

Font * Grim::LuaBase::getfont ( lua_Object  obj  )  [protected]

Definition at line 376 of file lua.cpp.

int Grim::LuaBase::getobject ( lua_Object  obj  )  [protected]
ObjectState * Grim::LuaBase::getobjectstate ( lua_Object  obj  )  [protected]

Definition at line 388 of file lua.cpp.

PrimitiveObject * Grim::LuaBase::getprimitive ( lua_Object  obj  )  [protected]

Definition at line 384 of file lua.cpp.

TextObject * Grim::LuaBase::gettextobject ( lua_Object  obj  )  [protected]

Definition at line 372 of file lua.cpp.

static LuaBase* Grim::LuaBase::instance (  )  [inline, static]

Definition at line 109 of file lua.h.

void Grim::LuaBase::loadSystemScript (  )  [virtual]

Definition at line 253 of file lua.cpp.

Common::String Grim::LuaBase::parseMsgText ( const char *  msg,
char *  msgId 
) [virtual]

Definition at line 412 of file lua.cpp.

void Grim::LuaBase::parseSayLineTable ( lua_Object  paramObj,
bool *  background,
int *  vol,
int *  pan,
float *  x,
float *  y 
) [virtual]

Definition at line 435 of file lua.cpp.

virtual void Grim::LuaBase::postRestoreHandle (  )  [inline, virtual]

Reimplemented in Grim::Lua_V1.

Definition at line 125 of file lua.h.

void Grim::LuaBase::pushbool ( bool  val  )  [protected]

Definition at line 353 of file lua.cpp.

void Grim::LuaBase::pushobject ( const PoolObjectBase o  )  [protected]

Definition at line 360 of file lua.cpp.

void Grim::LuaBase::registerLua (  )  [virtual]

Definition at line 135 of file lua.cpp.

void Grim::LuaBase::registerOpcodes (  )  [virtual]

Reimplemented in Grim::Lua_V2, and Grim::Lua_V1.

Definition at line 249 of file lua.cpp.

void Grim::LuaBase::setFrameTime ( float  frameTime  ) 

Definition at line 282 of file lua.cpp.

void Grim::LuaBase::setMovieTime ( float  movieTime  ) 

Definition at line 289 of file lua.cpp.

void Grim::LuaBase::setTextObjectParams ( TextObjectCommon textObject,
lua_Object  tableObj 
) [virtual]

Definition at line 479 of file lua.cpp.

void Grim::LuaBase::update ( int  frameTime,
int  movieTime 
)

Definition at line 263 of file lua.cpp.


Friends And Related Function Documentation

friend class LuaObjects [friend]

Definition at line 191 of file lua.h.


Member Data Documentation

unsigned int Grim::LuaBase::_frameTimeCollection [private]

Definition at line 166 of file lua.h.

Definition at line 165 of file lua.h.

Definition at line 170 of file lua.h.

Definition at line 168 of file lua.h.

Definition at line 185 of file lua.h.

Definition at line 177 of file lua.h.

Definition at line 181 of file lua.h.

Definition at line 180 of file lua.h.

Definition at line 176 of file lua.h.

Definition at line 173 of file lua.h.

Definition at line 178 of file lua.h.

Definition at line 175 of file lua.h.

Definition at line 179 of file lua.h.

Definition at line 187 of file lua.h.

Definition at line 182 of file lua.h.

Definition at line 186 of file lua.h.

Definition at line 183 of file lua.h.

Definition at line 184 of file lua.h.

Definition at line 174 of file lua.h.

Definition at line 171 of file lua.h.

Definition at line 172 of file lua.h.

Definition at line 169 of file lua.h.

LuaBase * Grim::LuaBase::s_instance = nullptr [static, private]

Definition at line 189 of file lua.h.


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


Generated on Sat Jul 20 2019 05:03:02 for ResidualVM by doxygen 1.7.1
curved edge   curved edge