Changeset 9235 in orxonox.OLD for trunk/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Jul 5, 2006, 4:39:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r9110 r9235 58 58 CREATE_SCRIPTABLE_CLASS(SpaceShip, CL_SPACE_SHIP, 59 59 addMethod("hasPlayer", ExecutorLua0ret<Playable,bool>(&Playable::hasPlayer)) 60 ->addMethod("fire", ExecutorLua1<Playable, bool>(&Playable::fire)) 61 ->addMethod("loadModel", ExecutorLua2<WorldEntity,const std::string& ,float>(&WorldEntity::loadModel2)) 62 ->addMethod("setName", ExecutorLua1<BaseObject,const std::string&>(&BaseObject::setName)) 63 ->addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide)) 64 ->addMethod("unhide", ExecutorLua0<WorldEntity>(&WorldEntity::unhide)) 60 65 //Coordinates 61 66 ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) … … 352 357 // return; 353 358 354 // spaceship controlled movement 359 // spaceship controlled movement fire(bool bF){ this->bFire = bF;} 355 360 //if (this->getOwner() == this->getHostID()) 356 361 this->calculateVelocity(time); … … 404 409 Vector accel(0.0, 0.0, 0.0); 405 410 /* 406 Vector rot(0.0, 0.0, 0.0); // wird ben ötigt für Helicopter411 Vector rot(0.0, 0.0, 0.0); // wird ben�igt fr Helicopter 407 412 */ 408 413 //float rotVal = 0.0; … … 513 518 } 514 519 515 void SpaceShip::destroy( )520 void SpaceShip::destroy( WorldEntity* killer ) 516 521 { 517 522 PRINTF(0)("spaceship destroy\n");
Note: See TracChangeset
for help on using the changeset viewer.