Changeset 8051 in orxonox.OLD for trunk/src/lib/util/executor/executor_lua.cc
- Timestamp:
- Jun 1, 2006, 12:57:57 AM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor_lua.cc
r8042 r8051 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "executor_lua.h" 19 19 20 using namespace std; 20 template<> bool fromLua<bool>(lua_state* state) { return lua_tonumber(state); }; 21 template<> int fromLua<int>(lua_state* state); 22 template<> unsigned int fromLua<unsigned int>(lua_state* state); 23 template<> float fromLua<float>(lua_state* state); 24 template<> char fromLua<char>(lua_state* state); 25 template<> const std::string& fromLua<const std::string&>(lua_state* state); 21 26 22 23 /**24 * standard constructor25 * @todo this constructor is not jet implemented - do it26 */27 ProtoClass::ProtoClass ()28 {29 this->setClassID(CL_PROTO_ID, "ProtoClass");30 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 }42 43 44 /**45 * standard deconstructor46 */47 ProtoClass::~ProtoClass ()48 {49 // delete what has to be deleted here50 }
Note: See TracChangeset
for help on using the changeset viewer.