ScummVM API documentation
hpl::LowLevelSystem Class Reference

Public Member Functions

unsigned long getTime ()
 
cDate getDate ()
 
iScriptcreateScript (const tString &name)
 
bool addScriptFunc (const tString &funcDecl, asGENFUNC_t func, int callConv)
 
bool addScriptVar (const tString &varDecl, void *var)
 
void sleep (const unsigned int millisecs)
 

Member Function Documentation

◆ getTime()

unsigned long hpl::LowLevelSystem::getTime ( )

Remark: Usually not finer then 10ms accuracy.

Returns
Number of millisecs since start of app.

◆ getDate()

cDate hpl::LowLevelSystem::getDate ( )

Gets the current date.

◆ createScript()

iScript* hpl::LowLevelSystem::createScript ( const tString name)

Creates a ne script

Parameters
namename of the script.
Returns

◆ addScriptFunc()

bool hpl::LowLevelSystem::addScriptFunc ( const tString funcDecl,
asGENFUNC_t  func,
int  callConv 
)

Add a function to the script vm. Example: "void test(float x)"

Parameters
funcDeclthe declaration.
Returns

◆ addScriptVar()

bool hpl::LowLevelSystem::addScriptVar ( const tString varDecl,
void *  var 
)

Add a variable to the script vm. Example: "int MyVar"

Parameters
varDeclthe declartion
*pVarthe variable
Returns

◆ sleep()

void hpl::LowLevelSystem::sleep ( const unsigned int  millisecs)

Sets the main thread to rest for a number of milliseconds.

Parameters
alMillisecs

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