Changeset 1787 for code/trunk/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Sep 15, 2008, 11:19:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1783 r1787 77 77 ObjectList<SpaceShip>::iterator it; 78 78 for(it = ObjectList<SpaceShip>::begin(); it; ++it){ 79 assert(it->isA( Class(SpaceShip)));79 assert(it->isA(GetClassIdentifier(SpaceShip))); 80 80 if( (it)->myShip_ || (network::Host::running() && network::Host::getShipID()==(it)->objectID) ){ 81 81 // COUT(1) << "^^^^^^^^^^ myShip_:" << *it << " classname: " << (*it)->getIdentifier()->getName() << " objectid: " << (*it)->objectID << std::endl; … … 273 273 // END CREATING ADDITIONAL EFFECTS 274 274 275 if (this->isExactlyA( Class(SpaceShip)))275 if (this->isExactlyA(GetClassIdentifier(SpaceShip))) 276 276 { 277 277 // START of testing crosshair … … 376 376 COUT(4) << "requesting focus for camera" << std::endl; 377 377 //CameraHandler::getInstance()->requestFocus(cam_); 378 if(this->isExactlyA( Class(SpaceShip))){378 if(this->isExactlyA(GetClassIdentifier(SpaceShip))){ 379 379 getFocus(); 380 380 COUT(4) << "getting focus for obj id: " << objectID << std::endl; … … 421 421 myShip_=true; //TODO: this is a hack 422 422 SpaceShip::create(); 423 /*if (this->isExactlyA( Class(SpaceShip)))423 /*if (this->isExactlyA(GetClassIdentifier(SpaceShip))) 424 424 getFocus();*/ 425 425 }
Note: See TracChangeset
for help on using the changeset viewer.