Changeset 8858 for code/trunk/src/modules/objects/triggers
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 5 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/objects/triggers/DistanceMultiTrigger.cc
r8706 r8858 247 247 this->setBeaconModeDirect(distanceMultiTriggerBeaconMode::exclude); 248 248 else 249 COUT(1) << "Invalid beacon mode in DistanceMultiTrigger." << endl;249 orxout(internal_error, context::triggers) << "Invalid beacon mode in DistanceMultiTrigger." << endl; 250 250 } 251 251 -
code/trunk/src/modules/objects/triggers/DistanceTrigger.cc
r8706 r8858 108 108 if (targetId == NULL) 109 109 { 110 COUT(1) << "Error: \"" << targetStr << "\" is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ')' << std::endl;110 orxout(internal_error, context::triggers) << "\"" << targetStr << "\" is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ')' << endl; 111 111 return; 112 112 } … … 209 209 this->setTriggeringPawn(pawn); 210 210 else 211 CCOUT(2) << "Pawn was NULL." << endl;211 orxout(internal_warning, context::triggers) << "Pawn was NULL." << endl; 212 212 } 213 213 … … 270 270 this->setBeaconModeDirect(distanceTriggerBeaconMode::exclude); 271 271 else 272 COUT(1) << "Invalid beacon mode in DistanceTrigger." << endl;272 orxout(internal_error, context::triggers) << "Invalid beacon mode in DistanceTrigger." << endl; 273 273 } 274 274 -
code/trunk/src/modules/objects/triggers/MultiTrigger.cc
r8706 r8858 72 72 MultiTrigger::~MultiTrigger() 73 73 { 74 COUT(4) << "Destroying MultiTrigger &" << this << ". " << this->stateQueue_.size() << " states still in queue. Deleting." << std::endl;74 orxout(verbose, context::triggers) << "Destroying MultiTrigger &" << this << ". " << this->stateQueue_.size() << " states still in queue. Deleting." << endl; 75 75 while(this->stateQueue_.size() > 0) 76 76 { … … 94 94 XMLPortParamLoadOnly(MultiTrigger, "target", addTarget, xmlelement, mode).defaultValues("Pawn"); //TODO: Remove load only 95 95 96 COUT(4) << "MultiTrigger '" << this->getName() << "' (&" << this << ") created." << std::endl;96 orxout(verbose, context::triggers) << "MultiTrigger '" << this->getName() << "' (&" << this << ") created." << endl; 97 97 } 98 98 … … 132 132 if(state == NULL) 133 133 { 134 COUT(1) << "In MultiTrigger '" << this->getName() << "' (&" << this << "), Error: State of new states queue was NULL. State ignored." << std::endl;134 orxout(internal_error, context::triggers) << "In MultiTrigger '" << this->getName() << "' (&" << this << "), Error: State of new states queue was NULL. State ignored." << endl; 135 135 queue->pop(); 136 136 continue; … … 241 241 // Print some debug output if the state has changed. 242 242 if(state->originator != NULL) 243 COUT(4) << "MultiTrigger '" << this->getName() << "' (&" << this << ") changed state. originator: " << state->originator->getIdentifier()->getName() << " (&" << state->originator << "), active: " << bActive << ", triggered: " << state->bTriggered << "." << std::endl;243 orxout(verbose, context::triggers) << "MultiTrigger '" << this->getName() << "' (&" << this << ") changed state. originator: " << state->originator->getIdentifier()->getName() << " (&" << state->originator << "), active: " << bActive << ", triggered: " << state->bTriggered << "." << endl; 244 244 else 245 COUT(4) << "MultiTrigger '" << this->getName() << "' (&" << this << ") changed state. originator: NULL, active: " << bActive << ", triggered: " << state->bTriggered << "." << std::endl;245 orxout(verbose, context::triggers) << "MultiTrigger '" << this->getName() << "' (&" << this << ") changed state. originator: NULL, active: " << bActive << ", triggered: " << state->bTriggered << "." << endl; 246 246 247 247 // If the MultiTrigger has a parent trigger, that is itself a MultiTrigger, it needs to call a method to notify him, that its activity has changed. … … 254 254 { 255 255 this->BaseObject::setActive(false); 256 COUT(4) << "MultiTrigger '" << this->getName() << "' (&" << this << ") ran out of activations. Setting it to inactive." << std::endl;256 orxout(verbose, context::triggers) << "MultiTrigger '" << this->getName() << "' (&" << this << ") ran out of activations. Setting it to inactive." << endl; 257 257 } 258 258 } … … 301 301 if (target == NULL) 302 302 { 303 COUT(1) << "Error: '" << targetStr << "' is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ")" << std::endl;303 orxout(internal_error, context::triggers) << "'" << targetStr << "' is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ")" << endl; 304 304 return; 305 305 } … … 329 329 if (target == NULL) 330 330 { 331 COUT(1) << "Error: '" << targetStr << "' is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ")" << std::endl;331 orxout(internal_error, context::triggers) << "'" << targetStr << "' is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ")" << endl; 332 332 return; 333 333 } … … 447 447 { 448 448 this->fireEvent(status); 449 COUT(4) << "MultiTrigger '" << this->getName() << "' (&" << this << "): Fired event. status: " << status << "." << std::endl;449 orxout(verbose, context::triggers) << "MultiTrigger '" << this->getName() << "' (&" << this << "): Fired event. status: " << status << "." << endl; 450 450 return; 451 451 } … … 453 453 MultiTriggerContainer* container = new MultiTriggerContainer(this, this, originator); 454 454 this->fireEvent(status, container); 455 COUT(4) << "MultiTrigger '" << this->getName() << "' (&" << this << "): Fired event. originator: " << originator->getIdentifier()->getName() << " (&" << originator << "), status: " << status << "." << std::endl;455 orxout(verbose, context::triggers) << "MultiTrigger '" << this->getName() << "' (&" << this << "): Fired event. originator: " << originator->getIdentifier()->getName() << " (&" << originator << "), status: " << status << "." << endl; 456 456 delete container; 457 457 } -
code/trunk/src/modules/objects/triggers/TriggerBase.cc
r8706 r8858 128 128 this->setMode(TriggerMode::EventTriggerXOR); 129 129 else 130 COUT(2) << "Invalid mode '" << modeName << "' in TriggerBase " << this->getName() << " &(" << this << "). Leaving mode at '" << this->getModeString() << "'." << std::endl;130 orxout(internal_warning, context::triggers) << "Invalid mode '" << modeName << "' in TriggerBase " << this->getName() << " &(" << this << "). Leaving mode at '" << this->getModeString() << "'." << endl; 131 131 } 132 132
Note: See TracChangeset
for help on using the changeset viewer.