Changeset 1834 for code/branches/network/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Sep 26, 2008, 12:59:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/SpaceShip.cc
r1772 r1834 78 78 for(it = ObjectList<SpaceShip>::begin(); it; ++it){ 79 79 assert(it->isA(Class(SpaceShip))); 80 if( (it)->myShip_ || (network::Host::running() && network::Host::getShipID()==(it)-> objectID) ){80 if( (it)->myShip_ || (network::Host::running() && network::Host::getShipID()==(it)->getObjectID()) ){ 81 81 // COUT(1) << "^^^^^^^^^^ myShip_:" << *it << " classname: " << (*it)->getIdentifier()->getName() << " objectid: " << (*it)->objectID << std::endl; 82 82 return *it; … … 173 173 if(network::Host::running()) 174 174 // COUT(3) << "this id: " << this->objectID << " myShipID: " << network::Host::getShipID() << std::endl; 175 if(network::Host::running() && objectID== network::Host::getShipID()){175 if(network::Host::running() && getObjectID() == network::Host::getShipID()){ 176 176 if(!network::Host::isServer()) 177 177 setObjectMode(0x3); … … 375 375 if(this->isExactlyA(Class(SpaceShip))){ 376 376 getFocus(); 377 COUT(3) << "getting focus for obj id: " << objectID<< std::endl;377 COUT(3) << "getting focus for obj id: " << getObjectID() << std::endl; 378 378 }else 379 COUT(3) << "not getting focus (not exactly spaceship) for obj id: " << objectID<< std::endl;379 COUT(3) << "not getting focus (not exactly spaceship) for obj id: " << getObjectID() << std::endl; 380 380 }else 381 COUT(3) << "not getting focus (not my ship) for obj id: " << objectID<< std::endl;381 COUT(3) << "not getting focus (not my ship) for obj id: " << getObjectID() << std::endl; 382 382 } 383 383 … … 475 475 projectile->setColour(this->getProjectileColour()); 476 476 projectile->create(); 477 if (projectile-> classID== 0)477 if (projectile->getClassID() == 0) 478 478 { 479 479 COUT(3) << "generated projectile with classid 0" << std::endl; // TODO: remove this output … … 570 570 } 571 571 572 COUT(5) << "steering our ship: " << objectID<< std::endl;572 COUT(5) << "steering our ship: " << getObjectID() << std::endl; 573 573 this->acceleration_.x = 0; 574 574 this->acceleration_.y = 0;
Note: See TracChangeset
for help on using the changeset viewer.