Changeset 8809 for code/branches/output/src/orxonox/interfaces
- Timestamp:
- Aug 1, 2011, 4:37:38 PM (13 years ago)
- Location:
- code/branches/output/src/orxonox/interfaces
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/interfaces/PickupCarrier.cc
r8351 r8809 75 75 if(it != this->pickups_.end() && temp == *it) // Infinite loop avoidance, in case the pickup wasn't removed from the carrier somewhere in the carrierDestroy() procedure. 76 76 { 77 COUT(2) << "Oops. In a PickupCarrier, while cleaning up, a Pickupable (&" << temp << ") didn't unregister itself as it should have." << std::endl;;77 orxout(internal_warning, context::pickups) << "Oops. In a PickupCarrier, while cleaning up, a Pickupable (&" << temp << ") didn't unregister itself as it should have." << endl;; 78 78 it++; 79 79 } … … 158 158 bool PickupCarrier::addPickup(Pickupable* pickup) 159 159 { 160 COUT(4) << "Adding Pickupable (&" << pickup << ") to PickupCarrier (&" << this << ")" << std::endl;160 orxout(verbose, context::pickups) << "Adding Pickupable (&" << pickup << ") to PickupCarrier (&" << this << ")" << endl; 161 161 return this->pickups_.insert(pickup).second; 162 162 } … … 172 172 bool PickupCarrier::removePickup(Pickupable* pickup) 173 173 { 174 COUT(4) << "Removing Pickupable (&" << pickup << ") from PickupCarrier (&" << this << ")" << std::endl;174 orxout(verbose, context::pickups) << "Removing Pickupable (&" << pickup << ") from PickupCarrier (&" << this << ")" << endl; 175 175 return this->pickups_.erase(pickup) == 1; 176 176 } -
code/branches/output/src/orxonox/interfaces/Pickupable.cc
r8464 r8809 71 71 if(this->pickupIdentifier_ != NULL) 72 72 { 73 COUT(4) << "Pickupable (&" << this << ") destroyed." << std::endl;73 orxout(verbose, context::pickups) << "Pickupable (&" << this << ") destroyed." << endl; 74 74 this->pickupIdentifier_->destroy(); 75 75 } … … 107 107 this->OrxonoxClass::destroy(); 108 108 else 109 COUT(2) << this->getIdentifier()->getName() << " may be unsafe. " << std::endl;109 orxout(internal_warning, context::pickups) << this->getIdentifier()->getName() << " may be unsafe. " << endl; 110 110 } 111 111 … … 126 126 return false; 127 127 128 COUT(4) << "Pickupable (&" << this << ") set to used " << used << "." << std::endl;128 orxout(verbose, context::pickups) << "Pickupable (&" << this << ") set to used " << used << "." << endl; 129 129 130 130 this->used_ = used; … … 201 201 return false; 202 202 203 COUT(4) << "Target " << target->getName() << " added to Pickupable (" << this->getIdentifier()->getName() << ") (&" << this << ")." << std::endl;203 orxout(verbose, context::pickups) << "Target " << target->getName() << " added to Pickupable (" << this->getIdentifier()->getName() << ") (&" << this << ")." << endl; 204 204 this->targets_.push_back(target); 205 205 return true; … … 221 221 if(!this->setCarrier(carrier)) 222 222 { 223 COUT(3) << "A Pickupable (&" << this << ") was trying to be added to a PickupCarrier, but was already present." << std::endl;223 orxout(internal_warning, context::pickups) << "A Pickupable (&" << this << ") was trying to be added to a PickupCarrier, but was already present." << endl; 224 224 return false; 225 225 } 226 226 227 227 this->setPickedUp(true); 228 COUT(4) << "Pickupable (&" << this << ") got picked up by a PickupCarrier (&" << carrier << ")." << std::endl;228 orxout(verbose, context::pickups) << "Pickupable (&" << this << ") got picked up by a PickupCarrier (&" << carrier << ")." << endl; 229 229 return true; 230 230 } … … 245 245 assert(this->getCarrier()); // The Carrier cannot be NULL at this point. 246 246 if(!this->getCarrier()->removePickup(this)) //TODO Shouldn't this be a little later? 247 COUT(2) << "Pickupable (&" << this << ", " << this->getIdentifier()->getName() << ") is being dropped, but it was not present in the PickupCarriers list of pickups." << std::endl;248 249 COUT(4) << "Pickupable (&" << this << ") got dropped up by a PickupCarrier (&" << this->getCarrier() << ")." << std::endl;247 orxout(internal_warning, context::pickups) << "Pickupable (&" << this << ", " << this->getIdentifier()->getName() << ") is being dropped, but it was not present in the PickupCarriers list of pickups." << endl; 248 249 orxout(verbose, context::pickups) << "Pickupable (&" << this << ") got dropped up by a PickupCarrier (&" << this->getCarrier() << ")." << endl; 250 250 this->setUsed(false); 251 251 this->setPickedUp(false); … … 276 276 return false; 277 277 278 COUT(4) << "Pickupable (&" << this << ") set to pickedUp " << pickedUp << "." << std::endl;278 orxout(verbose, context::pickups) << "Pickupable (&" << this << ") set to pickedUp " << pickedUp << "." << endl; 279 279 280 280 this->pickedUp_ = pickedUp; … … 305 305 return false; 306 306 307 COUT(4) << "Pickupable (&" << this << ") changed Carrier (& " << carrier << ")." << std::endl;307 orxout(verbose, context::pickups) << "Pickupable (&" << this << ") changed Carrier (& " << carrier << ")." << endl; 308 308 309 309 if(carrier != NULL && tell) … … 340 340 Pickupable* pickup = dynamic_cast<Pickupable*>(item); 341 341 342 COUT(4) << "Pickupable (&" << this << ") cloned. Clone is new Pickupable (&" << pickup << ")." << std::endl;342 orxout(verbose, context::pickups) << "Pickupable (&" << this << ") cloned. Clone is new Pickupable (&" << pickup << ")." << endl; 343 343 return pickup; 344 344 } -
code/branches/output/src/orxonox/interfaces/RadarViewable.cc
r8738 r8809 83 83 // else 84 84 // { 85 // CCOUT(2) << "Attempting to access the radar, but the radar is non existent." << std::endl;85 // orxout(internal_warning) << "Attempting to access the radar, but the radar is non existent." << endl; 86 86 // } 87 87 // this->radarObjectDescription_ = str; … … 106 106 if (!object) 107 107 { 108 COUT(1) << "Assertion: Every RadarViewable has to be assigned a WorldEntity pointer!" << std::endl;108 orxout(user_error) << "Assertion: Every RadarViewable has to be assigned a WorldEntity pointer!" << endl; 109 109 assert(0); 110 110 }
Note: See TracChangeset
for help on using the changeset viewer.