Changeset 9746 in orxonox.OLD for branches/new_class_id/src/world_entities/test_entity.cc
- Timestamp:
- Sep 16, 2006, 3:34:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/test_entity.cc
r9716 r9746 26 26 27 27 #include "test_entity.h" 28 28 #include "debug.h" 29 29 30 30 #include "interactive_model.h" … … 41 41 #include "script_class.h" 42 42 CREATE_SCRIPTABLE_CLASS(TestEntity, TestEntity::classID(), 43 addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) 44 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX)) 45 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY)) 46 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ)) 47 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)) 48 47 ); 49 48 … … 92 91 93 92 LoadParam(root, "md2animation", this, TestEntity, setAnim) 94 95 93 .describe("sets the animation of the md2 model") 94 .defaultValues(1); 96 95 97 96 }
Note: See TracChangeset
for help on using the changeset viewer.