Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/test_entity.cc
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/test_entity.cc
r9406 r9709 35 35 36 36 37 38 CREATE_FACTORY(TestEntity, CL_TEST_ENTITY); 37 #include "class_id.h" 38 NewObjectListDefinition(TestEntity); 39 CREATE_FACTORY(TestEntity); 39 40 40 41 #include "script_class.h" 41 CREATE_SCRIPTABLE_CLASS(TestEntity, CL_TEST_ENTITY,42 CREATE_SCRIPTABLE_CLASS(TestEntity, TestEntity::classID(), 42 43 addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) 43 44 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX)) 44 45 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY)) 45 46 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ)) 46 47 47 48 ); 48 49 … … 75 76 void TestEntity::init() 76 77 { 77 this-> setClassID(CL_TEST_ENTITY, "TestEntity");78 this->registerObject(this, TestEntity::_objectList); 78 79 this->toList(OM_GROUP_00); 79 80
Note: See TracChangeset
for help on using the changeset viewer.