Changeset 9178 in orxonox.OLD
- Timestamp:
- Jul 4, 2006, 10:47:00 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/attractor_mine.cc
r9176 r9178 34 34 35 35 CREATE_FACTORY(AttractorMine, CL_ATTRACTOR_MINE); 36 #include "script_class.h" 37 CREATE_SCRIPTABLE_CLASS(AttractorMine, CL_ATTRACTOR_MINE, 38 addMethod("setName", ExecutorLua1<BaseObject,const std::string&>(&BaseObject::setName)) 39 //Coordinates 40 ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) 41 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX)) 42 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY)) 43 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ)) 44 ); 45 46 36 47 37 48 -
branches/presentation/src/world_entities/space_ships/space_ship.cc
r9162 r9178 58 58 CREATE_SCRIPTABLE_CLASS(SpaceShip, CL_SPACE_SHIP, 59 59 addMethod("hasPlayer", ExecutorLua0ret<Playable,bool>(&Playable::hasPlayer)) 60 //->addMethod("loadModel", ExecutorLua2<WorldEntity,const std::string& ,float>(&WorldEntity::loadModel)) 61 ->addMethod("setName", ExecutorLua1<BaseObject,const std::string&>(&BaseObject::setName)) 60 62 //Coordinates 61 63 ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) … … 404 406 Vector accel(0.0, 0.0, 0.0); 405 407 /* 406 Vector rot(0.0, 0.0, 0.0); // wird ben ötigt für Helicopter408 Vector rot(0.0, 0.0, 0.0); // wird ben�igt fr Helicopter 407 409 */ 408 410 //float rotVal = 0.0; -
branches/presentation/src/world_entities/world_entity.h
r9174 r9178 47 47 48 48 void loadModel(const std::string& fileName, float scaling = 1.0f, unsigned int modelNumber = 0, unsigned int obbTreeDepth = 4); 49 //void loadModel(const std::string& fileN, float scal = 1.0f){this->loadModel(fileN,scal,0,4);} 49 50 void setModel(Model* model, unsigned int modelNumber = 0); 50 51 Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; };
Note: See TracChangeset
for help on using the changeset viewer.