Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6695 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Jan 25, 2006, 2:39:53 PM (19 years ago)
Author:
patrick
Message:

merged the network branche to the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6692 r6695  
    9797  if (root != NULL)
    9898    this->loadParams(root);
     99  else
     100  {
     101    this->loadModel("models/ships/reap_#.obj");
     102  }
     103
     104}
     105
     106
     107/**
     108 * initializes a Spaceship
     109 */
     110void SpaceShip::init()
     111{
     112//  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
     113  this->setClassID(CL_SPACE_SHIP, "SpaceShip");
     114
     115  PRINTF(4)("SPACESHIP INIT\n");
    99116
    100117  //weapons:
     
    112129
    113130  this->getWeaponManager()->changeWeaponConfig(1);
    114 }
    115 
    116 
    117 /**
    118  * initializes a Spaceship
    119  */
    120 void SpaceShip::init()
    121 {
    122 //  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
    123   this->setClassID(CL_SPACE_SHIP, "SpaceShip");
    124 
    125   PRINTF(4)("SPACESHIP INIT\n");
    126131
    127132  EventHandler::getInstance()->grabEvents(true);
     
    206211  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
    207212}
     213
    208214
    209215/**
Note: See TracChangeset for help on using the changeset viewer.