Changeset 8858 for code/trunk/src/modules/pickup/PickupSpawner.cc
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:mergeinfo changed
/code/branches/output (added) merged: 8739-8740,8765,8771-8772,8774-8780,8787-8789,8794-8799,8801,8803-8812,8814,8816-8817,8820,8822,8825-8837,8840,8844,8846,8848-8850,8853-8854
- Property svn:ignore
-
code/trunk/src/modules/pickup/PickupSpawner.cc
r7801 r8858 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.