Changeset 9233 in orxonox.OLD for branches/presentation/src
- Timestamp:
- Jul 5, 2006, 2:24:48 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/gate.cc
r9229 r9233 36 36 CREATE_FACTORY(Gate, CL_GATE); 37 37 38 39 #include "script_class.h" 40 CREATE_SCRIPTABLE_CLASS(Gate, CL_GATE, 41 addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide)) 42 ->addMethod("unhide", ExecutorLua0<WorldEntity>(&WorldEntity::unhide)) 43 // ->addMethod("destroy", ExecutorLua0<Gate>(&Gate::destroy())) 44 ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) 45 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX)) 46 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY)) 47 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ)) 48 ); 38 49 39 50 -
branches/presentation/src/world_entities/script_trigger.cc
r9208 r9233 139 139 BaseObject* targetEntity = ClassList::getObject(target, CL_WORLD_ENTITY); 140 140 141 141 if (targetEntity != NULL) 142 142 { 143 143 this->setTarget(dynamic_cast<WorldEntity*>(targetEntity)); -
branches/presentation/src/world_entities/space_ships/space_ship.cc
r9221 r9233 61 61 ->addMethod("loadModel", ExecutorLua2<WorldEntity,const std::string& ,float>(&WorldEntity::loadModel2)) 62 62 ->addMethod("setName", ExecutorLua1<BaseObject,const std::string&>(&BaseObject::setName)) 63 ->addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide)) 64 ->addMethod("unhide", ExecutorLua0<WorldEntity>(&WorldEntity::unhide)) 63 65 //Coordinates 64 66 ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
Note: See TracChangeset
for help on using the changeset viewer.