Changeset 1318 for code/branches/merge/src/orxonox
- Timestamp:
- May 18, 2008, 10:00:17 PM (16 years ago)
- Location:
- code/branches/merge/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merge/src/orxonox/objects/SpaceShip.cc
r1306 r1318 64 64 SpaceShip* SpaceShip::instance_s; 65 65 66 SpaceShip *SpaceShip::getLocalShip(){ 67 Iterator<SpaceShip> it; 68 for(it = ObjectList<SpaceShip>::start(); it; ++it){ 69 if((it)->server_ || ( network::Client::getSingleton() && network::Client::getSingleton()->getShipID()==it->objectID ) ) 70 return *it; 71 } 72 return NULL; 73 } 74 66 75 SpaceShip::SpaceShip() : 67 76 //testvector_(0,0,0), -
code/branches/merge/src/orxonox/objects/SpaceShip.h
r1272 r1318 44 44 { 45 45 public: 46 47 static SpaceShip *getLocalShip(); 48 46 49 SpaceShip(); 47 50 ~SpaceShip();
Note: See TracChangeset
for help on using the changeset viewer.