Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6672 in orxonox.OLD for branches/network/src/world_entities


Ignore:
Timestamp:
Jan 24, 2006, 3:02:19 PM (19 years ago)
Author:
patrick
Message:

network: now every entity gets a network uniqueID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/space_ships/space_ship.cc

    r6634 r6672  
    9797  if (root != NULL)
    9898    this->loadParams(root);
     99}
     100
     101
     102/**
     103 * initializes a Spaceship
     104 */
     105void SpaceShip::init()
     106{
     107//  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
     108  this->setClassID(CL_SPACE_SHIP, "SpaceShip");
     109
     110  PRINTF(4)("SPACESHIP INIT\n");
    99111
    100112  //weapons:
     
    114126
    115127  this->getWeaponManager()->changeWeaponConfig(1);
    116 }
    117 
    118 
    119 /**
    120  * initializes a Spaceship
    121  */
    122 void SpaceShip::init()
    123 {
    124 //  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
    125   this->setClassID(CL_SPACE_SHIP, "SpaceShip");
    126 
    127   PRINTF(4)("SPACESHIP INIT\n");
    128128
    129129  EventHandler::getInstance()->grabEvents(true);
     
    202202  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
    203203}
     204
    204205
    205206/**
Note: See TracChangeset for help on using the changeset viewer.