Changeset 8811 for code/branches/output/src/modules/pickup/PickupSpawner.cc
- Timestamp:
- Aug 1, 2011, 7:09:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/modules/pickup/PickupSpawner.cc
r7801 r8811 90 90 if(this->pickup_ == NULL) 91 91 { 92 COUT(2) << "A PickupSpawner was created without a valid Pickupable. This won't work." << std::endl;92 orxout(internal_warning, context::pickups) << "A PickupSpawner was created without a valid Pickupable. This won't work." << endl; 93 93 this->setActive(false); 94 94 } … … 144 144 if(this->pickup_ == NULL) 145 145 { 146 COUT(2) << "A PickupSpawner was created without a valid Pickupable. This won't work." << std::endl;146 orxout(internal_warning, context::pickups) << "A PickupSpawner was created without a valid Pickupable. This won't work." << endl; 147 147 this->setActive(false); 148 148 } … … 239 239 else 240 240 { 241 COUT(4) << "PickupSpawner (&" << this << ") empty, selfdestruct initialized." << std::endl;241 orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") empty, selfdestruct initialized." << endl; 242 242 this->setActive(false); 243 243 this->destroy(); … … 264 264 if(this->pickup_ != NULL) 265 265 { 266 COUT(1) << "In PickupSpawner (&" << this << "): setPickupable called, with this->pickup_ already set." << std::endl;266 orxout(internal_error, context::pickups) << "In PickupSpawner (&" << this << "): setPickupable called, with this->pickup_ already set." << endl; 267 267 return; 268 268 } 269 269 if(pickup == NULL) 270 270 { 271 COUT(1) << "In PickupSpawner (&" << this << "): Argument of setPickupable is NULL." << std::endl;271 orxout(internal_error, context::pickups) << "In PickupSpawner (&" << this << "): Argument of setPickupable is NULL." << endl; 272 272 return; 273 273 } … … 298 298 if(this->isActive()) // Checks whether PickupSpawner is active. 299 299 { 300 COUT(4) << "PickupSpawner (&" << this << ") triggered and active." << std::endl;300 orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") triggered and active." << endl; 301 301 302 302 PickupCarrier* carrier = dynamic_cast<PickupCarrier*>(pawn); … … 306 306 if(!carrier->isTarget(this->pickup_)) 307 307 { 308 COUT(4) << "PickupSpawner (&" << this << ") triggered but Pawn wasn't a target of the Pickupable." << std::endl;308 orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") triggered but Pawn wasn't a target of the Pickupable." << endl; 309 309 return; 310 310 } … … 335 335 if(this->spawnsRemaining_ == 0) 336 336 { 337 COUT(1) << "Massive Error: PickupSpawner still alive until having spawned last item." << std::endl;337 orxout(internal_error, context::pickups) << "Massive Error: PickupSpawner still alive until having spawned last item." << endl; 338 338 return NULL; 339 339 } … … 349 349 void PickupSpawner::respawnTimerCallback() 350 350 { 351 COUT(4) << "PickupSpawner (&" << this << ") reactivated." << std::endl;351 orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") reactivated." << endl; 352 352 353 353 this->setActive(true);
Note: See TracChangeset
for help on using the changeset viewer.