1#ifndef ULT_GAME_MONKEY_H_INCLUDED
2#define ULT_GAME_MONKEY_H_INCLUDED
41 mScriptCall.AddParamInt(param);
47 mScriptCall.AddParamFloat(param);
53 mScriptCall.AddParamString(param.c_str());
68 if (mScriptCall.GetReturnedInt(retVal)) {
78 if (mScriptCall.GetReturnedFloat(retVal)) {
88 if (mScriptCall.GetReturnedString(retVal)) {
152 const char*
GetError() {
return mErrorBuffer.c_str(); }
156 std::string mErrorBuffer;
Definition GameMonkey.h:26
bool GetReturnValueAsFloat(float &retVal)
Definition GameMonkey.h:77
void AddIntParam(int param)
Definition GameMonkey.h:40
gmCall * GetCallPtr()
Definition GameMonkey.h:97
void AddStringParam(const std::string ¶m)
Definition GameMonkey.h:52
void ExecuteCall()
Definition GameMonkey.h:59
virtual ~GameMonkeyFunction()
Definition GameMonkey.h:35
bool GetReturnValueAsString(const char *retVal)
Definition GameMonkey.h:87
void AddFloatParam(float param)
Definition GameMonkey.h:46
bool GetReturnValueAsInt(int &retVal)
Definition GameMonkey.h:67
GameMonkeyFunction()
Definition GameMonkey.h:31
virtual ~GameMonkey()
Definition GameMonkey.h:119
bool LoadScript(const std::string &script, GmScript *handle)
Definition GameMonkey.cpp:6
void ExecuteScript(GmScript handle)
Definition GameMonkey.cpp:28
bool GetScriptFunction(const std::string &name, GameMonkeyFunction &call)
Definition GameMonkey.cpp:33
const char * GetError()
Definition GameMonkey.h:152
void RegisterHostFunction(const std::string &name, gmCFunction func)
Definition GameMonkey.cpp:42
GameMonkey()
Definition GameMonkey.h:114
int GmScript
Definition GameMonkey.h:19