Changeset 8783 in orxonox.OLD for trunk/src/world_entities/space_ships
- Timestamp:
- Jun 26, 2006, 2:00:31 PM (19 years ago)
- Location:
- trunk/src/world_entities/space_ships
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/helicopter.cc
r8495 r8783 36 36 CREATE_FACTORY(Helicopter, CL_HELICOPTER); 37 37 #include "script_class.h" 38 //CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER, NULL); 39 38 CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER, 39 addMethod("moveUp", ExecutorLua1<Helicopter,bool>(&Helicopter::moveUp)) 40 ->addMethod("moveDown", ExecutorLua1<Helicopter,bool>(&Helicopter::moveDown)) 41 ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) 42 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX)) 43 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY)) 44 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ)) 45 46 ); 40 47 41 48 /** -
trunk/src/world_entities/space_ships/helicopter.h
r8711 r8783 83 83 }; 84 84 85 CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER,86 addMethod("moveUp", ExecutorLua1<Helicopter,bool>(&Helicopter::moveUp))87 ->addMethod("moveDown", ExecutorLua1<Helicopter,bool>(&Helicopter::moveDown))88 ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))89 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))90 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))91 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))92 93 );94 95 96 85 #endif /* _HELICOPTERS_H */
Note: See TracChangeset
for help on using the changeset viewer.