Changeset 1732 for code/branches/network/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Sep 7, 2008, 4:33:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/SpaceShip.cc
r1730 r1732 76 76 return *it; 77 77 } 78 return NULL;78 return 0; 79 79 } 80 80 … … 158 158 bool SpaceShip::create(){ 159 159 if(!myShip_){ 160 if(network::Host::running()) 161 COUT(3) << "this id: " << this->objectID << " myShipID: " << network::Host::getShipID() << std::endl; 160 162 if(network::Host::running() && objectID == network::Host::getShipID()) 161 163 myShip_=true; … … 163 165 HUD::getSingleton().addRadarObject(this, this->getProjectileColour()); 164 166 } 165 if(Model::create()) 166 this->init(); 167 else 168 return false; 167 assert(Model::create()); 168 this->init(); 169 169 return true; 170 170 } … … 287 287 288 288 void SpaceShip::getFocus(){ 289 COUT( 4) << "requesting focus" << std::endl;289 COUT(3) << "requesting focus" << std::endl; 290 290 //if(!network::Host::running() || network::Host::getShipID()==objectID) 291 291 if(myShip_) … … 301 301 // COUT(4) << "begin camera creation" << std::endl; 302 302 this->camNode_ = this->getNode()->createChildSceneNode(camName_); 303 COUT( 4) << "position: (this)" << this->getNode()->getPosition() << std::endl;303 COUT(3) << "position: (this)" << this->getNode()->getPosition() << std::endl; 304 304 this->camNode_->setPosition(Vector3(-25,0,5)); 305 305 // Quaternion q1 = Quaternion(Radian(Degree(90)),Vector3(0,-1,0));
Note: See TracChangeset
for help on using the changeset viewer.