Changeset 9869 in orxonox.OLD for trunk/src/world_entities/test_entity.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/test_entity.cc
r9406 r9869 26 26 27 27 #include "test_entity.h" 28 28 #include "debug.h" 29 29 30 30 #include "interactive_model.h" … … 35 35 36 36 37 38 CREATE_FACTORY(TestEntity, CL_TEST_ENTITY); 37 #include "class_id_DEPRECATED.h" 38 ObjectListDefinition(TestEntity); 39 CREATE_FACTORY(TestEntity); 39 40 40 41 #include "script_class.h" 41 CREATE_SCRIPTABLE_CLASS(TestEntity, CL_TEST_ENTITY, 42 addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) 43 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX)) 44 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY)) 45 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ)) 46 42 CREATE_SCRIPTABLE_CLASS(TestEntity, 43 addMethod("setAbsCoor", Executor3<PNode, lua_State*,float,float,float>(&PNode::setAbsCoor)) 44 ->addMethod("getAbsCoorX", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorX)) 45 ->addMethod("getAbsCoorY", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorY)) 46 ->addMethod("getAbsCoorZ", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorZ)) 47 47 ); 48 48 … … 75 75 void TestEntity::init() 76 76 { 77 this-> setClassID(CL_TEST_ENTITY, "TestEntity");77 this->registerObject(this, TestEntity::_objectList); 78 78 this->toList(OM_GROUP_00); 79 79 … … 91 91 92 92 LoadParam(root, "md2animation", this, TestEntity, setAnim) 93 94 93 .describe("sets the animation of the md2 model") 94 .defaultValues(1); 95 95 96 96 }
Note: See TracChangeset
for help on using the changeset viewer.