Changeset 9916 in orxonox.OLD for trunk/src/lib/script_engine
- Timestamp:
- Nov 3, 2006, 9:29:16 PM (18 years ago)
- Location:
- trunk/src/lib/script_engine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/script_engine/Makefile.am
r9869 r9916 13 13 14 14 libORXscript_a_SOURCES = \ 15 script_class.cc \ 16 script_method.cc \ 15 17 script.cc \ 16 18 script_manager.cc \ 17 script_class.cc \18 script_method.cc \19 19 executor_lua_state.cc 20 20 -
trunk/src/lib/script_engine/script.cc
r9869 r9916 24 24 25 25 ObjectListDefinition(Script); 26 27 CREATE_SCRIPTABLE_CLASS(Script,28 addMethod("addObject", Executor2<Script, lua_State*,const std::string&, const std::string& >(&Script::addObject))29 ->addMethod("registerClass", Executor1<Script, lua_State*,const std::string&>(&Script::registerClass))30 ->addMethod("selectFunction", Executor2ret<Script, lua_State*, bool, const std::string&, int >(&Script::selectFunction))31 ->addMethod("executeFunction", Executor0ret<Script, lua_State*,bool >(&Script::executeFunction))32 );33 26 34 27 -
trunk/src/lib/script_engine/script_class.cc
r9897 r9916 17 17 18 18 #include "script_class.h" 19 #include "script.h" 20 #include "debug.h" 19 21 #include <cassert> 20 22 21 23 ObjectListDefinition(ScriptClass); 24 25 CREATE_SCRIPTABLE_CLASS(Script, 26 addMethod("addObject", Executor2<Script, lua_State*,const std::string&, const std::string& >(&Script::addObject)) 27 ->addMethod("registerClass", Executor1<Script, lua_State*,const std::string&>(&Script::registerClass)) 28 ->addMethod("selectFunction", Executor2ret<Script, lua_State*, bool, const std::string&, int >(&Script::selectFunction)) 29 ->addMethod("executeFunction", Executor0ret<Script, lua_State*,bool >(&Script::executeFunction)) 30 ); 22 31 /** 23 32 * @brief standard constructor … … 27 36 : BaseObject(name), _classID(classID) 28 37 { 38 PRINTF(4)("Name %s\n", name.c_str()); 29 39 assert(scriptMethods != NULL); 30 40 this->registerObject(this, ScriptClass::_objectList);
Note: See TracChangeset
for help on using the changeset viewer.