Changeset 8811 for code/branches/output
- Timestamp:
- Aug 1, 2011, 7:09:29 PM (13 years ago)
- Location:
- code/branches/output/src
- Files:
-
- 63 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/util/output/OutputDefinitions.h
r8809 r8811 102 102 REGISTER_OUTPUT_CONTEXT(quests); 103 103 REGISTER_OUTPUT_CONTEXT(notifications); 104 REGISTER_OUTPUT_CONTEXT(trigger );104 REGISTER_OUTPUT_CONTEXT(triggers); 105 105 REGISTER_OUTPUT_CONTEXT(docking); 106 106 } -
code/branches/output/src/modules/designtools/ScreenshotManager.cc
r8415 r8811 153 153 finalImage->save(PathConfig::getInstance().getLogPathString() + "screenshot_" + getTimestamp() + this->fileExtension_); 154 154 delete finalImage; 155 COUT(3) << "Finished taking " << this->gridSize_*this->windowWidth_ << "x" << this->gridSize_*this->windowHeight_ << " pixel HD screenshot. Storing in log/." << endl;155 orxout(user_info) << "Finished taking " << this->gridSize_*this->windowWidth_ << "x" << this->gridSize_*this->windowHeight_ << " pixel HD screenshot. Storing in log/." << endl; 156 156 } 157 157 else 158 COUT(1) << "There needs to be an active camera to make screenshots." << endl;158 orxout(user_error) << "There needs to be an active camera to make screenshots." << endl; 159 159 160 160 this->cleanup(); … … 257 257 this->buffer_->blitToMemory(this->finalPicturePB_->getSubVolume(subBox)); 258 258 259 COUT(4) << "Created screenshot number " << nbScreenshots << " for multi grid HD screenshot." << endl;259 orxout(internal_info) << "Created screenshot number " << nbScreenshots << " for multi grid HD screenshot." << endl; 260 260 261 261 } -
code/branches/output/src/modules/designtools/SkyboxGenerator.cc
r8413 r8811 149 149 else 150 150 { 151 COUT(1) << "You must be in a level to generate a skybox." << endl;151 orxout(user_error) << "You must be in a level to generate a skybox." << endl; 152 152 this->bGenerateSkybox_ = false; 153 153 return; … … 175 175 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(PathConfig::getInstance().getLogPathString(), "FileSystem", Resource::getDefaultResourceGroup()); 176 176 177 COUT(4) << "Setting up SkyboxGenerator..." << endl;177 orxout(internal_status) << "Setting up SkyboxGenerator..." << endl; 178 178 179 179 this->bSetup_ = false; … … 194 194 entity->pitch(Degree((float)rotate.second)); 195 195 196 COUT(4) << "Created face number " << this->faceCounter_ << "." << endl;196 orxout(internal_info) << "Created face number " << this->faceCounter_ << "." << endl; 197 197 // Check whether we've generated all 6 faces. 198 198 if(++this->faceCounter_ >= 6) … … 225 225 CommandExecutor::execute("pause"); 226 226 227 COUT(3) << "Skybox with face size " << this->size_ << "x" << this->size_ << " pixels created. Storing in log/." << endl;227 orxout(user_info) << "Skybox with face size " << this->size_ << "x" << this->size_ << " pixels created. Storing in log/." << endl; 228 228 } 229 229 } -
code/branches/output/src/modules/docking/Dock.cc
r8729 r8811 87 87 { 88 88 if(!pTrigger->isForPlayer()) { // The PlayerTrigger is not exclusively for Pawns which means we cannot extract one. 89 COUT(4) << "Docking:execute PlayerTrigger was not triggered by a player.." << std::endl;89 orxout(verbose, context::docking) << "Docking:execute PlayerTrigger was not triggered by a player.." << endl; 90 90 return false; 91 91 } … … 94 94 else 95 95 { 96 COUT(4) << "Docking::execute Not a player trigger, can't extract pawn from it.." << std::endl;96 orxout(verbose, context::docking) << "Docking::execute Not a player trigger, can't extract pawn from it.." << endl; 97 97 return false; 98 98 } 99 99 if(player == NULL) 100 100 { 101 COUT(4) << "Docking::execute Can't retrieve PlayerInfo from Trigger. (" << trigger->getIdentifier()->getName() << ")" << std::endl;101 orxout(verbose, context::docking) << "Docking::execute Can't retrieve PlayerInfo from Trigger. (" << trigger->getIdentifier()->getName() << ")" << endl; 102 102 return false; 103 103 } … … 168 168 if(candidates_.find(player) == candidates_.end()) 169 169 { 170 COUT(2) << "Dock::dock Player is not a candidate!" << std::endl;170 orxout(internal_warning, context::docking) << "Dock::dock Player is not a candidate!" << endl; 171 171 return false; 172 172 } … … 187 187 if(docked_.find(player) == docked_.end()) 188 188 { 189 COUT(2) << "Dock::dockingAnimationFinished Player is not currently docked." << std::endl;189 orxout(internal_warning, context::docking) << "Dock::dockingAnimationFinished Player is not currently docked." << endl; 190 190 return false; 191 191 } … … 200 200 if(docked_.find(player) == docked_.end()) 201 201 { 202 COUT(2) << "Dock::undock Player is not docked to this Dock." << std::endl;202 orxout(internal_warning, context::docking) << "Dock::undock Player is not docked to this Dock." << endl; 203 203 return false; 204 204 } … … 218 218 219 219 bool Dock::undockingAnimationFinished(PlayerInfo* player) { 220 COUT(4) << "Dock::undockingAnimationFinished executed" << std::endl;220 orxout(verbose, context::docking) << "Dock::undockingAnimationFinished executed" << endl; 221 221 return true; 222 222 } -
code/branches/output/src/modules/docking/DockToShip.cc
r8706 r8811 43 43 { 44 44 RegisterObject(DockToShip); 45 COUT(4) << "DockToShip instance created.." << endl;45 orxout(verbose, context::docking) << "DockToShip instance created.." << endl; 46 46 } 47 47 … … 69 69 bool DockToShip::docking(PlayerInfo* player) 70 70 { 71 COUT(4) << "DockToShip::attach" << endl;71 orxout(verbose, context::docking) << "DockToShip::attach" << endl; 72 72 73 73 DockingTarget *target = DockingEffect::findTarget(this->target_); 74 74 if (target == NULL) { 75 COUT(0) << "Can't retrieve target for '" << this->target_ << "'.." << std::endl;75 orxout(internal_warning, context::docking) << "Can't retrieve target for '" << this->target_ << "'.." << endl; 76 76 return false; 77 77 } … … 79 79 ControllableEntity *dockTo = (ControllableEntity*) target->getParent(); 80 80 if (dockTo == NULL) { 81 COUT(2) << "Parent is not a ControllableEntity.." << std::endl;81 orxout(internal_warning, context::docking) << "Parent is not a ControllableEntity.." << endl; 82 82 return false; 83 83 } … … 92 92 bool DockToShip::release(PlayerInfo* player) 93 93 { 94 COUT(4) << "DockToShip::release" << endl;94 orxout(verbose, context::docking) << "DockToShip::release" << endl; 95 95 96 96 player->stopTemporaryControl(); -
code/branches/output/src/modules/docking/DockingController.cc
r8706 r8811 97 97 if (docking) 98 98 { 99 COUT(4) << "DockingController::takeControl Taking over control." << std::endl;99 orxout(verbose, context::docking) << "DockingController::takeControl Taking over control." << endl; 100 100 101 101 this->entity_->setDestroyWhenPlayerLeft(false); … … 108 108 void DockingController::positionReached() 109 109 { 110 COUT(4) << "DockingController::positionReached() called." << std::endl;110 orxout(verbose, context::docking) << "DockingController::positionReached() called." << endl; 111 111 112 112 assert(this->player_); -
code/branches/output/src/modules/docking/DockingTarget.cc
r8706 r8811 53 53 SUPER(DockingTarget, XMLPort, xmlelement, mode); 54 54 55 COUT(4) << "DockingTarget with name '" << this->getName() << "' created.." << std::endl;55 orxout(verbose, context::docking) << "DockingTarget with name '" << this->getName() << "' created.." << endl; 56 56 } 57 57 -
code/branches/output/src/modules/gametypes/RaceCheckPoint.cc
r8706 r8811 109 109 { 110 110 const std::string& message = "You have " + multi_cast<std::string>(this->bTimeLimit_) 111 + " seconds to reach the check point " + multi_cast<std::string>(this->bCheckpointIndex_+1) + "\n";112 COUT(3) << message;111 + " seconds to reach the check point " + multi_cast<std::string>(this->bCheckpointIndex_+1); 112 orxout(level::message) << message << endl; 113 113 const_cast<GametypeInfo*>(gametype->getGametypeInfo())->sendAnnounceMessage(message); 114 114 } -
code/branches/output/src/modules/gametypes/SpaceRace.cc
r8740 r8811 59 59 + "You didn't reach the check point " + multi_cast<std::string>(this->bCheckpointsReached_+1) 60 60 + " before the time limit. You lose!"; 61 COUT(3) << message;61 orxout(level::message) << message << endl; 62 62 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message); 63 63 Host::Broadcast(message); … … 70 70 const std::string& message = "You win!! You have reached the last check point after "+ multi_cast<std::string>(s) 71 71 + "." + multi_cast<std::string>(ms) + " seconds."; 72 COUT(3) << message << std::endl;72 orxout(level::message) << message << endl; 73 73 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message); 74 74 Host::Broadcast(message); … … 77 77 std::set<float>::iterator it; 78 78 for (it=this->scores_.begin(); it!=this->scores_.end(); it++) 79 COUT(3) << multi_cast<std::string>(*it) << std::endl;79 orxout(level::message) << multi_cast<std::string>(*it) << endl; 80 80 } 81 81 } … … 86 86 87 87 std::string message("The match has started! Reach the check points as quickly as possible!"); 88 COUT(3) << message << std::endl;88 orxout(level::message) << message << endl; 89 89 Host::Broadcast(message); 90 90 } … … 98 98 const std::string& message = "Checkpoint " + multi_cast<std::string>(this->getCheckpointsReached()) 99 99 + " reached after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) 100 + " seconds. \n";101 COUT(3) << message;100 + " seconds."; 101 orxout(level::message) << message << endl; 102 102 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message); 103 103 Host::Broadcast(message); -
code/branches/output/src/modules/notifications/NotificationDispatcher.cc
r8706 r8811 137 137 return false; 138 138 139 COUT(4) << "NotificationDispatcher (&" << this << ") triggered." << std::endl;139 orxout(verbose, context::notifications) << "NotificationDispatcher (&" << this << ") triggered." << endl; 140 140 141 141 PlayerTrigger* pTrigger = orxonox_cast<PlayerTrigger*>(trigger); … … 155 155 if(player == NULL) 156 156 { 157 COUT(4) << "The NotificationDispatcher was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << std::endl;157 orxout(verbose, context::notifications) << "The NotificationDispatcher was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << endl; 158 158 return false; 159 159 } -
code/branches/output/src/modules/notifications/NotificationManager.cc
r8706 r8811 57 57 RegisterRootObject(NotificationManager); 58 58 59 COUT(3) << "NotificatioManager created." << std::endl;59 orxout(internal_info, context::notifications) << "NotificatioManager created." << endl; 60 60 } 61 61 … … 71 71 this->allNotificationsList_.clear(); 72 72 73 COUT(3) << "NotificationManager destroyed." << std::endl;73 orxout(internal_info, context::notifications) << "NotificationManager destroyed." << endl; 74 74 } 75 75 … … 132 132 133 133 if(commandExecuted) 134 COUT(3) << "Notification command \"" << NotificationListener::command2Str(command) << "\" executed." << endl;134 orxout(internal_info, context::notifications) << "Notification command \"" << NotificationListener::command2Str(command) << "\" executed." << endl; 135 135 136 136 return commandExecuted; … … 198 198 } 199 199 200 COUT(4) << "Notification (&" << notification << ") registered with the NotificationManager." << std::endl;200 orxout(verbose, context::notifications) << "Notification (&" << notification << ") registered with the NotificationManager." << endl; 201 201 202 202 return true; … … 219 219 this->removeNotification(notification, *(this->notificationLists_.find(queue->getName())->second)); 220 220 221 COUT(4) << "Notification (&" << notification << ") unregistered with the NotificationManager from NotificationQueue " << queue->getName() << "." << std::endl;221 orxout(verbose, context::notifications) << "Notification (&" << notification << ") unregistered with the NotificationManager from NotificationQueue " << queue->getName() << "." << endl; 222 222 } 223 223 … … 351 351 queue->update(); // Update the queue. 352 352 353 COUT(4) << "NotificationQueue '" << queue->getName() << "' registered with the NotificationManager." << std::endl;353 orxout(verbose, context::notifications) << "NotificationQueue '" << queue->getName() << "' registered with the NotificationManager." << endl; 354 354 return true; 355 355 } … … 384 384 this->notificationLists_.erase(queue->getName()); 385 385 386 COUT(4) << "NotificationQueue '" << queue->getName() << "' unregistered with the NotificationManager." << std::endl;386 orxout(verbose, context::notifications) << "NotificationQueue '" << queue->getName() << "' unregistered with the NotificationManager." << endl; 387 387 } 388 388 -
code/branches/output/src/modules/notifications/NotificationQueue.cc
r8706 r8811 131 131 { 132 132 this->registered_ = false; 133 COUT(1) << "Error: NotificationQueue '" << this->getName() << "' could not be registered." << std::endl;133 orxout(internal_error, context::notifications) << "NotificationQueue '" << this->getName() << "' could not be registered." << endl; 134 134 return; 135 135 } 136 136 137 COUT(3) << "NotificationQueue '" << this->getName() << "' created." << std::endl;137 orxout(internal_info, context::notifications) << "NotificationQueue '" << this->getName() << "' created." << endl; 138 138 } 139 139 … … 215 215 delete notifications; 216 216 217 COUT(4) << "NotificationQueue '" << this->getName() << "' updated." << std::endl;217 orxout(verbose, context::notifications) << "NotificationQueue '" << this->getName() << "' updated." << endl; 218 218 } 219 219 … … 232 232 this->push(notification, time); 233 233 234 COUT(4) << "NotificationQueue '" << this->getName() << "' updated. A new Notification has been added." << std::endl;234 orxout(verbose, context::notifications) << "NotificationQueue '" << this->getName() << "' updated. A new Notification has been added." << endl; 235 235 } 236 236 … … 265 265 this->notificationPushed(notification); 266 266 267 COUT(5) << "Notification \"" << notification->getMessage() << "\" pushed to NotificationQueue '" << this->getName() << "'" << endl;268 COUT(3) << "NotificationQueue \"" << this->getName() << "\": " << notification->getMessage() << endl;267 orxout(verbose_more, context::notifications) << "Notification \"" << notification->getMessage() << "\" pushed to NotificationQueue '" << this->getName() << "'" << endl; 268 orxout(internal_info, context::notifications) << "NotificationQueue \"" << this->getName() << "\": " << notification->getMessage() << endl; 269 269 } 270 270 … … 284 284 if(container == *it) 285 285 { 286 COUT(5) << "Notification \"" << (*it)->notification->getMessage() << "\" popped from NotificationQueue '" << this->getName() << "'" << endl;286 orxout(verbose_more, context::notifications) << "Notification \"" << (*it)->notification->getMessage() << "\" popped from NotificationQueue '" << this->getName() << "'" << endl; 287 287 this->ordering_.erase(it); 288 288 break; … … 311 311 std::vector<NotificationContainer*>::difference_type index = it - this->notifications_.begin (); 312 312 313 COUT(5) << "Notification \"" << (*it)->notification->getMessage() << "\" removed from NotificationQueue '" << this->getName() << "'" << endl;313 orxout(verbose_more, context::notifications) << "Notification \"" << (*it)->notification->getMessage() << "\" removed from NotificationQueue '" << this->getName() << "'" << endl; 314 314 315 315 this->ordering_.erase(containerIterator); … … 333 333 void NotificationQueue::clear(bool noGraphics) 334 334 { 335 COUT(4) << "Clearing NotificationQueue " << this->getName() << "." << endl;335 orxout(verbose, context::notifications) << "Clearing NotificationQueue " << this->getName() << "." << endl; 336 336 this->ordering_.clear(); 337 337 // Delete all NotificationContainers in the list. … … 367 367 if(size == 0) 368 368 { 369 COUT(2) << "Trying to set maximal size of NotificationQueue '" << this->getName() << "' to 0. Ignoring..." << endl;369 orxout(internal_warning, context::notifications) << "Trying to set maximal size of NotificationQueue '" << this->getName() << "' to 0. Ignoring..." << endl; 370 370 return; 371 371 } … … 398 398 if(time != NotificationQueue::INF && time <= 0) 399 399 { 400 COUT(2) << "Trying to set display time of NotificationQueue '" << this->getName() << "' to non-positive value. Ignoring..." << endl;400 orxout(internal_warning, context::notifications) << "Trying to set display time of NotificationQueue '" << this->getName() << "' to non-positive value. Ignoring..." << endl; 401 401 } 402 402 -
code/branches/output/src/modules/notifications/NotificationQueueCEGUI.cc
r8729 r8811 143 143 if(size.x < 0.0 || size.x > 1.0 || size.z < 0.0 || size.z > 1.0) 144 144 { 145 COUT(2) << "The display size of the NotificationQueueCEGUI " << this->getName() << " was trying to be set, but the relative size was not in [0,1]. Aborting..." << endl;145 orxout(internal_warning, context::notifications) << "The display size of the NotificationQueueCEGUI " << this->getName() << " was trying to be set, but the relative size was not in [0,1]. Aborting..." << endl; 146 146 return; 147 147 } … … 183 183 if(position.x < 0.0 || position.x > 1.0 || position.z < 0.0 || position.z > 1.0) 184 184 { 185 COUT(2) << "The position the NotificationQueueCEGUI " << this->getName() << " was trying to be set, but the relative position was not in [0,1]. Aborting..." << endl;185 orxout(internal_warning, context::notifications) << "The position the NotificationQueueCEGUI " << this->getName() << " was trying to be set, but the relative position was not in [0,1]. Aborting..." << endl; 186 186 return; 187 187 } -
code/branches/output/src/modules/objects/ForceField.cc
r8397 r8811 216 216 else 217 217 { 218 COUT(2) << "Wrong mode '" << mode << "' in ForceField. Setting to 'tube'." << std::endl;218 orxout(internal_warning) << "Wrong mode '" << mode << "' in ForceField. Setting to 'tube'." << endl; 219 219 this->mode_ = forceFieldMode::tube; 220 220 } -
code/branches/output/src/modules/objects/Planet.cc
r7401 r8811 73 73 { 74 74 float distance = this->getPosition().distance( activeCamera->getWorldPosition() ); 75 // COUT(2) << distance << std::endl;75 // orxout(internal_warning) << distance << endl; 76 76 float planetRadius = this->getScale(); 77 77 -
code/branches/output/src/modules/objects/Script.cc
r8706 r8811 137 137 return false; 138 138 139 COUT(4) << "Script (&" << this << ") triggered." << std::endl;139 orxout(internal_info) << "Script (&" << this << ") triggered." << endl; 140 140 141 141 PlayerTrigger* pTrigger = orxonox_cast<PlayerTrigger*>(trigger); … … 155 155 if(player == NULL) //TODO: Will this ever happen? If not, change in NotificationDispatcher as well. 156 156 { 157 COUT(4) << "The Script was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << std::endl;157 orxout(internal_warning) << "The Script was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << endl; 158 158 return false; 159 159 } … … 272 272 else 273 273 { 274 COUT(2) << "Invalid mode '" << mode << "' in Script object. Setting to 'normal'." << std::endl;274 orxout(internal_warning) << "Invalid mode '" << mode << "' in Script object. Setting to 'normal'." << endl; 275 275 this->setMode(ScriptMode::normal); 276 276 this->modeStr_ = Script::NORMAL; … … 323 323 else 324 324 { 325 COUT(2) << "Invalid times '" << times << "' in Script. Setting to infinity." << std::endl;325 orxout(internal_warning) << "Invalid times '" << times << "' in Script. Setting to infinity." << endl; 326 326 this->times_ = Script::INF; 327 327 this->remainingExecutions_ = Script::INF; -
code/branches/output/src/modules/objects/SpaceBoundaries.cc
r8706 r8811 215 215 distance = this->computeDistance(currentPawn); 216 216 humanItem = this->isHumanPlayer(currentPawn); 217 COUT(5) << "Distance:" << distance << std::endl; // message for debugging217 // orxout() << "Distance:" << distance << endl; // message for debugging 218 218 if(distance > this->warnDistance_ && distance < this->maxDistance_) // Display warning 219 219 { … … 231 231 if( humanItem ) 232 232 { 233 COUT(5) << "Health should be decreasing!" << std::endl;233 // orxout() << "Health should be decreasing!" << endl; 234 234 this->displayWarning("You are out of the area now!"); 235 235 } -
code/branches/output/src/modules/objects/collisionshapes/BoxCollisionShape.cc
r8706 r8811 93 93 if(!this->hasUniformScaling()) 94 94 { 95 CCOUT(1) << "Error: Non-uniform scaling is not yet supported." << endl;95 orxout(internal_error) << "BoxCollisionShape: Non-uniform scaling is not yet supported." << endl; 96 96 return; 97 97 } -
code/branches/output/src/modules/objects/collisionshapes/ConeCollisionShape.cc
r8706 r8811 92 92 if(!this->hasUniformScaling()) 93 93 { 94 CCOUT(1) << "Error: Non-uniform scaling is not yet supported." << endl;94 orxout(internal_error) << "ConeCollisionShape: Non-uniform scaling is not yet supported." << endl; 95 95 return; 96 96 } -
code/branches/output/src/modules/objects/collisionshapes/PlaneCollisionShape.cc
r8706 r8811 92 92 if(!this->hasUniformScaling()) 93 93 { 94 CCOUT(1) << "Error: Non-uniform scaling is not yet supported." << endl;94 orxout(internal_error) << "PlaneCollisionShape: Non-uniform scaling is not yet supported." << endl; 95 95 return; 96 96 } -
code/branches/output/src/modules/objects/collisionshapes/SphereCollisionShape.cc
r8706 r8811 89 89 if(!this->hasUniformScaling()) 90 90 { 91 CCOUT(1) << "Error: Non-uniform scaling is not yet supported." << endl;91 orxout(internal_error) << "SphereCollisionShape: Non-uniform scaling is not yet supported." << endl; 92 92 return; 93 93 } -
code/branches/output/src/modules/objects/eventsystem/EventFilter.cc
r8729 r8811 63 63 if (this->bActive_) 64 64 { 65 COUT(2) << "Warning: Detected Event loop in EventFilter \"" << this->getName() << '"' << std::endl;65 orxout(internal_warning, context::events) << "Detected Event loop in EventFilter \"" << this->getName() << '"' << endl; 66 66 return; 67 67 } -
code/branches/output/src/modules/objects/eventsystem/EventListener.cc
r8729 r8811 59 59 if (this->bActive_) 60 60 { 61 COUT(2) << "Warning: Detected Event loop in EventListener \"" << this->getName() << '"' << std::endl;61 orxout(internal_warning, context::events) << "Detected Event loop in EventListener \"" << this->getName() << '"' << endl; 62 62 return; 63 63 } 64 64 65 COUT(4) << "EventListener, processing event: originator: " << event.originator_->getIdentifier()->getName() << " (&" << event.originator_ << ")" << ", activate: " << event.activate_ << ", name: " << event.name_ << std::endl;65 orxout(verbose, context::events) << "EventListener, processing event: originator: " << event.originator_->getIdentifier()->getName() << " (&" << event.originator_ << ")" << ", activate: " << event.activate_ << ", name: " << event.name_ << endl; 66 66 67 67 this->bActive_ = true; -
code/branches/output/src/modules/objects/eventsystem/EventTarget.cc
r6417 r8811 60 60 if (this->bActive_) 61 61 { 62 COUT(2) << "Warning: Detected Event loop in EventTarget \"" << this->getName() << '"' << std::endl;62 orxout(internal_warning, context::events) << "Detected Event loop in EventTarget \"" << this->getName() << '"' << endl; 63 63 return; 64 64 } -
code/branches/output/src/modules/objects/triggers/DistanceMultiTrigger.cc
r8706 r8811 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/branches/output/src/modules/objects/triggers/DistanceTrigger.cc
r8706 r8811 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/branches/output/src/modules/objects/triggers/MultiTrigger.cc
r8706 r8811 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/branches/output/src/modules/objects/triggers/TriggerBase.cc
r8706 r8811 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 -
code/branches/output/src/modules/overlays/GUIOverlay.cc
r7401 r8811 76 76 GUIManager::getInstance().showGUIExtra(this->guiName_, str); 77 77 78 COUT(4) << "Showing GUI " << this->guiName_ << std::endl;78 orxout(internal_info) << "Showing GUI " << this->guiName_ << endl; 79 79 } 80 80 else 81 81 { 82 82 GUIManager::hideGUI(this->guiName_); 83 COUT(4) << "Hiding GUI " << this->guiName_ << std::endl;83 orxout(internal_info) << "Hiding GUI " << this->guiName_ << endl; 84 84 } 85 85 } -
code/branches/output/src/modules/overlays/hud/ChatOverlay.cc
r8327 r8811 87 87 88 88 this->messages_.push_back(multi_cast<Ogre::DisplayString>(text)); 89 COUT(0) << "Chat: " << text << std::endl;89 orxout(level::message) << "Chat: " << text << endl; 90 90 91 91 Timer* timer = new Timer(); -
code/branches/output/src/modules/overlays/hud/HUDNavigation.cc
r8706 r8811 105 105 if ( fontPtr.isNull() ) 106 106 { 107 COUT ( 2 ) << "Warning: HUDNavigation: Font '" << font << "' not found" << std::endl;107 orxout(internal_warning) << "HUDNavigation: Font '" << font << "' not found" << endl; 108 108 return; 109 109 } … … 125 125 if ( size <= 0.0f ) 126 126 { 127 COUT ( 2 ) << "Warning: HUDNavigation: Negative font size not allowed" << std::endl;127 orxout(internal_warning) << "HUDNavigation: Negative font size not allowed" << endl; 128 128 return; 129 129 } -
code/branches/output/src/modules/overlays/hud/HUDRadar.cc
r8738 r8811 160 160 if( !wePointer ) 161 161 { 162 CCOUT(0) << "Cannot display a non-WorldEntitiy on the radar" << std::endl;162 orxout(internal_error) << "Cannot display a non-WorldEntitiy on the radar" << endl; 163 163 assert(0); 164 164 } -
code/branches/output/src/modules/pickup/Pickup.cc
r7547 r8811 169 169 else 170 170 { 171 COUT(1) << "Invalid activationType '" << type << "' in pickup." << std::endl;171 orxout(internal_error, context::pickups) << "Invalid activationType '" << type << "' in pickup." << endl; 172 172 } 173 173 } … … 191 191 else 192 192 { 193 COUT(1) << "Invalid durationType '" << type << "' in pickup." << std::endl;193 orxout(internal_error, context::pickups) << "Invalid durationType '" << type << "' in pickup." << endl; 194 194 } 195 195 } -
code/branches/output/src/modules/pickup/PickupManager.cc
r8729 r8811 72 72 this->defaultRepresentation_ = new PickupRepresentation(); 73 73 74 COUT(3) << "PickupManager created." << std::endl;74 orxout(internal_info, context::pickups) << "PickupManager created." << endl; 75 75 } 76 76 … … 101 101 this->indexes_.clear(); 102 102 103 COUT(3) << "PickupManager destroyed." << std::endl;103 orxout(internal_info, context::pickups) << "PickupManager destroyed." << endl; 104 104 } 105 105 … … 126 126 this->representations_[identifier] = representation; 127 127 128 COUT(4) << "PickupRepresentation &" << representation << " registered with the PickupManager." << std::endl;128 orxout(verbose, context::pickups) << "PickupRepresentation &" << representation << " registered with the PickupManager." << endl; 129 129 return true; 130 130 } … … 151 151 this->representations_.erase(it); 152 152 153 COUT(4) << "PickupRepresentation &" << representation << " unregistered with the PickupManager." << std::endl;153 orxout(verbose, context::pickups) << "PickupRepresentation &" << representation << " unregistered with the PickupManager." << endl; 154 154 return true; 155 155 } … … 208 208 if(it == this->representations_.end()) // If there is no PickupRepresentation associated with the input PickupIdentifier. 209 209 { 210 COUT(4) << "PickupManager::getRepresentation() returned default representation." << std::endl;210 orxout(verbose, context::pickups) << "PickupManager::getRepresentation() returned default representation." << endl; 211 211 return this->defaultRepresentation_; 212 212 } … … 284 284 if(manager.pickupInventoryContainers_.find(pickup) == manager.pickupInventoryContainers_.end()) 285 285 { 286 COUT(1) << "Error: Pickupable &(" << pickup << ") was not registered with PickupManager for the PickupInventory, when it changed used." << std::endl;286 orxout(internal_error, context::pickups) << "Pickupable &(" << pickup << ") was not registered with PickupManager for the PickupInventory, when it changed used." << endl; 287 287 return; 288 288 } -
code/branches/output/src/modules/pickup/PickupRepresentation.cc
r8713 r8811 140 140 this->spawnerRepresentation_->setVisible(false); 141 141 142 COUT(4) << "PickupRepresentation created: name: '" << this->name_ << "', description: '" << this->description_ << "', spawnerTemplate: '" << this->spawnerTemplate_ << "'." << std::endl;142 orxout(verbose, context::pickups) << "PickupRepresentation created: name: '" << this->name_ << "', description: '" << this->description_ << "', spawnerTemplate: '" << this->spawnerTemplate_ << "'." << endl; 143 143 } 144 144 … … 155 155 if(this->spawnerRepresentation_ == NULL) 156 156 { 157 COUT(4) << "PickupRepresentation: No spawner representation found." << std::endl;157 orxout(verbose, context::pickups) << "PickupRepresentation: No spawner representation found." << endl; 158 158 if(this->spawnerTemplate_ == "") 159 159 { 160 COUT(4) << "PickupRepresentation: Spawner template is empty." << std::endl;160 orxout(verbose, context::pickups) << "PickupRepresentation: Spawner template is empty." << endl; 161 161 // If neither spawnerRepresentation nor spawnerTemplate was specified 162 162 return this->getDefaultSpawnerRepresentation(spawner); -
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); -
code/branches/output/src/modules/pickup/items/DronePickup.cc
r7548 r8811 179 179 if(pawn == NULL) 180 180 { 181 COUT(1) << "Invalid PickupCarrier in DronePickup." << std::endl;181 orxout(internal_error, context::pickups) << "Invalid PickupCarrier in DronePickup." << endl; 182 182 } 183 183 -
code/branches/output/src/modules/pickup/items/HealthPickup.cc
r7548 r8811 169 169 break; 170 170 default: 171 COUT(1) << "Invalid healthType in HealthPickup." << std::endl;171 orxout(internal_error, context::pickups) << "Invalid healthType in HealthPickup." << endl; 172 172 } 173 173 … … 218 218 break; 219 219 default: 220 COUT(1) << "Invalid healthType in HealthPickup." << std::endl;220 orxout(internal_error, context::pickups) << "Invalid healthType in HealthPickup." << endl; 221 221 } 222 222 … … 234 234 if(pawn == NULL) 235 235 { 236 COUT(1) << "Something went horribly wrong in Health Pickup. PickupCarrier is no Pawn." << std::endl;236 orxout(internal_error, context::pickups) << "Something went horribly wrong in Health Pickup. PickupCarrier is no Pawn." << endl; 237 237 this->Pickupable::destroy(); 238 238 return; … … 268 268 if(pawn == NULL) 269 269 { 270 COUT(1) << "Invalid PickupCarrier in HealthPickup." << std::endl;270 orxout(internal_error, context::pickups) << "Invalid PickupCarrier in HealthPickup." << endl; 271 271 } 272 272 … … 312 312 return HealthPickup::healthTypePermanent_s; 313 313 default: 314 COUT(1) << "Invalid healthType in HealthPickup." << std::endl;314 orxout(internal_error, context::pickups) << "Invalid healthType in HealthPickup." << endl; 315 315 return BLANKSTRING; 316 316 } … … 331 331 else 332 332 { 333 COUT(1) << "Invalid health in HealthPickup." << std::endl;333 orxout(internal_error, context::pickups) << "Invalid health in HealthPickup." << endl; 334 334 this->health_ = 0.0; 335 335 } … … 350 350 else 351 351 { 352 COUT(1) << "Invalid healthSpeed in HealthPickup." << std::endl;352 orxout(internal_error, context::pickups) << "Invalid healthSpeed in HealthPickup." << endl; 353 353 } 354 354 } … … 376 376 else 377 377 { 378 COUT(1) << "Invalid healthType in HealthPickup." << std::endl;378 orxout(internal_error, context::pickups) << "Invalid healthType in HealthPickup." << endl; 379 379 } 380 380 } -
code/branches/output/src/modules/pickup/items/InvisiblePickup.cc
r8220 r8811 206 206 if(pawn == NULL) 207 207 { 208 COUT(1) << "Invalid PickupCarrier in InvisiblePickup." << std::endl;208 orxout(internal_error, context::pickups) << "Invalid PickupCarrier in InvisiblePickup." << endl; 209 209 } 210 210 return pawn; … … 225 225 else 226 226 { 227 COUT(1) << "Invalid duration in InvisiblePickup." << std::endl;227 orxout(internal_error, context::pickups) << "Invalid duration in InvisiblePickup." << endl; 228 228 this->duration_ = 0.0f; 229 229 } -
code/branches/output/src/modules/pickup/items/MetaPickup.cc
r7548 r8811 232 232 } 233 233 else 234 COUT(2) << "Invalid metaType '" << type << "' in MetaPickup." << std::endl;234 orxout(internal_warning, context::pickups) << "Invalid metaType '" << type << "' in MetaPickup." << endl; 235 235 } 236 236 -
code/branches/output/src/modules/pickup/items/ShieldPickup.cc
r7548 r8811 181 181 if(pawn == NULL) 182 182 { 183 COUT(1) << "Invalid PickupCarrier in ShieldPickup." << std::endl;183 orxout(internal_error, context::pickups) << "Invalid PickupCarrier in ShieldPickup." << endl; 184 184 } 185 185 return pawn; … … 220 220 else 221 221 { 222 COUT(1) << "Invalid duration in ShieldPickup." << std::endl;222 orxout(internal_error, context::pickups) << "Invalid duration in ShieldPickup." << endl; 223 223 this->duration_ = 0.0f; 224 224 } … … 239 239 else 240 240 { 241 COUT(1) << "Invalid Shieldhealth in ShieldPickup." << std::endl;241 orxout(internal_error, context::pickups) << "Invalid Shieldhealth in ShieldPickup." << endl; 242 242 this->shieldHealth_=0; 243 243 } … … 258 258 else 259 259 { 260 COUT(1) << "Invalid Absorption in ShieldPickup." << std::endl;260 orxout(internal_error, context::pickups) << "Invalid Absorption in ShieldPickup." << endl; 261 261 this->shieldAbsorption_=0; 262 262 } -
code/branches/output/src/modules/pickup/items/ShrinkPickup.h
r8713 r8811 93 93 */ 94 94 inline void setShrinkFactor(float factor) 95 { if(factor <= 1.0f) { COUT(2) << "Invalid shrinking factor in ShrinkPickup. Ignoring.." << endl; return; } this->shrinkFactor_ = factor; }95 { if(factor <= 1.0f) { orxout(internal_warning, context::pickups) << "Invalid shrinking factor in ShrinkPickup. Ignoring.." << endl; return; } this->shrinkFactor_ = factor; } 96 96 /** 97 97 @brief Get the duration for which the ship remains shrunken. … … 105 105 */ 106 106 inline void setDuration(float duration) 107 { if(duration < 0.0f) { COUT(2) << "Invalid duration in ShrinkPickup. Ignoring.." << endl; return; } this->duration_ = duration; }107 { if(duration < 0.0f) { orxout(internal_warning, context::pickups) << "Invalid duration in ShrinkPickup. Ignoring.." << endl; return; } this->duration_ = duration; } 108 108 /** 109 109 @brief Get the shrink speed. … … 117 117 */ 118 118 inline void setShrinkDuration(float speed) 119 { if(speed <= 0.0f) { COUT(2) << "Invalid shrink duration in ShrinkPickup. Ignoring.." << endl; return; } this->shrinkDuration_ = speed; }119 { if(speed <= 0.0f) { orxout(internal_warning, context::pickups) << "Invalid shrink duration in ShrinkPickup. Ignoring.." << endl; return; } this->shrinkDuration_ = speed; } 120 120 121 121 protected: -
code/branches/output/src/modules/pickup/items/SpeedPickup.cc
r8727 r8811 180 180 if(ship == NULL) 181 181 { 182 COUT(1) << "Invalid PickupCarrier in SpeedPickup." << std::endl;182 orxout(internal_error, context::pickups) << "Invalid PickupCarrier in SpeedPickup." << endl; 183 183 } 184 184 … … 221 221 else 222 222 { 223 COUT(1) << "Invalid duration in SpeedPickup." << std::endl;223 orxout(internal_error, context::pickups) << "Invalid duration in SpeedPickup." << endl; 224 224 this->duration_ = 0.0f; 225 225 } … … 240 240 else 241 241 { 242 COUT(1) << "Invalid speedAdd in SpeedPickup." << std::endl;242 orxout(internal_error, context::pickups) << "Invalid speedAdd in SpeedPickup." << endl; 243 243 this->speedAdd_ = 0.0f; 244 244 } … … 259 259 else 260 260 { 261 COUT(1) << "Invalid speedMultiply in SpeedPickup." << std::endl;261 orxout(internal_error, context::pickups) << "Invalid speedMultiply in SpeedPickup." << endl; 262 262 this->speedMultiply_ = 1.0f; 263 263 } -
code/branches/output/src/modules/pong/Pong.cc
r8108 r8811 162 162 else // If no centerpoint was specified, an error is thrown and the level is exited. 163 163 { 164 COUT(1) << "Error: No Centerpoint specified." << std::endl;164 orxout(internal_error) << "Pong: No Centerpoint specified." << endl; 165 165 GSLevel::startMainMenu(); 166 166 return; -
code/branches/output/src/modules/questsystem/GlobalQuest.cc
r7552 r8811 71 71 XMLPortObject(GlobalQuest, QuestEffect, "reward-effects", addRewardEffect, getRewardEffects, xmlelement, mode); 72 72 73 COUT(4) << "New GlobalQuest {" << this->getId() << "} created." << std::endl;73 orxout(verbose, context::quests) << "New GlobalQuest {" << this->getId() << "} created." << endl; 74 74 } 75 75 … … 87 87 if(!this->isFailable(player)) // Check whether the Quest can be failed. 88 88 { 89 COUT(4) << "A non-completable quest was trying to be failed." << std::endl;89 orxout(verbose, context::quests) << "A non-completable quest was trying to be failed." << endl; 90 90 return false; 91 91 } … … 114 114 if(!this->isCompletable(player)) // Check whether the Quest can be completed. 115 115 { 116 COUT(4) << "A non-completable quest was trying to be completed." << std::endl;116 orxout(verbose, context::quests) << "A non-completable quest was trying to be completed." << endl; 117 117 return false; 118 118 } … … 227 227 this->rewards_.push_back(effect); // Add the QuestEffect to the list. 228 228 229 COUT(4) << "Reward effect was added to Quest {" << this->getId() << "}." << std::endl;229 orxout(verbose, context::quests) << "Reward effect was added to Quest {" << this->getId() << "}." << endl; 230 230 return true; 231 231 } -
code/branches/output/src/modules/questsystem/LocalQuest.cc
r7552 r8811 69 69 SUPER(LocalQuest, XMLPort, xmlelement, mode); 70 70 71 COUT(4) << "New LocalQuest {" << this->getId() << "} created." << std::endl;71 orxout(verbose, context::quests) << "New LocalQuest {" << this->getId() << "} created." << endl; 72 72 } 73 73 … … 85 85 if(!this->isFailable(player)) // Checks whether the quest can be failed. 86 86 { 87 COUT(4) << "A non-failable quest was trying to be failed." << std::endl;87 orxout(verbose, context::quests) << "A non-failable quest was trying to be failed." << endl; 88 88 return false; 89 89 } … … 108 108 if(!this->isCompletable(player)) // Checks whether the Quest can be completed. 109 109 { 110 COUT(4) << "A non-completable quest was trying to be completed." << std::endl;110 orxout(verbose, context::quests) << "A non-completable quest was trying to be completed." << endl; 111 111 return false; 112 112 } -
code/branches/output/src/modules/questsystem/Quest.cc
r7552 r8811 96 96 this->parentQuest_ = quest; 97 97 98 COUT(4) << "Parent Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl;98 orxout(verbose, context::quests) << "Parent Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << endl; 99 99 return true; 100 100 } … … 115 115 this->subQuests_.push_back(quest); // Adds the Quest to the end of the list of sub-quests. 116 116 117 COUT(4) << "Sub Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl;117 orxout(verbose, context::quests) << "Sub Quest {" << quest->getId() << "} was added to Quest {" << this->getId() << "}." << endl; 118 118 return true; 119 119 } … … 135 135 this->hints_.push_back(hint); // Adds the QuestHint to the end of the list of QuestHints. 136 136 137 COUT(4) << "QuestHint {" << hint->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl;137 orxout(verbose, context::quests) << "QuestHint {" << hint->getId() << "} was added to Quest {" << this->getId() << "}." << endl; 138 138 return true; 139 139 } … … 153 153 this->failEffects_.push_back(effect); // Adds the QuestEffect to the end of the list of fail QuestEffects. 154 154 155 COUT(4) << "A FailEffect was added to Quest {" << this->getId() << "}." << std::endl;155 orxout(verbose, context::quests) << "A FailEffect was added to Quest {" << this->getId() << "}." << endl; 156 156 return true; 157 157 } … … 171 171 this->completeEffects_.push_back(effect); // Adds the QuestEffect to the end of the list of complete QuestEffects. 172 172 173 COUT(4) << "A CompleteEffect was added to Quest {" << this->getId() << "}." << std::endl;173 orxout(verbose, context::quests) << "A CompleteEffect was added to Quest {" << this->getId() << "}." << endl; 174 174 return true; 175 175 } … … 341 341 this->setStatus(player, QuestStatus::Failed); 342 342 343 COUT(4) << "Quest {" << this->getId() << "} is failed for player: " << player << " ." <<std::endl;343 orxout(verbose, context::quests) << "Quest {" << this->getId() << "} is failed for player: " << player << " ." << endl; 344 344 345 345 this->getDescription()->sendFailQuestNotification(player); … … 360 360 this->setStatus(player, QuestStatus::Completed); 361 361 362 COUT(4) << "Quest {" << this->getId() << "} is completed for player: " << player << " ." <<std::endl;362 orxout(verbose, context::quests) << "Quest {" << this->getId() << "} is completed for player: " << player << " ." << endl; 363 363 364 364 this->getDescription()->sendCompleteQuestNotification(player); … … 378 378 if(!this->isStartable(player)) // Checks whether the quest can be started. 379 379 { 380 COUT(4) << "A non-startable quest was trying to be started." << std::endl;380 orxout(verbose, context::quests) << "A non-startable quest was trying to be started." << endl; 381 381 return false; 382 382 } 383 383 384 COUT(4) << "Quest {" << this->getId() << "} is started for player: " << player << " ." <<std::endl;384 orxout(verbose, context::quests) << "Quest {" << this->getId() << "} is started for player: " << player << " ." << endl; 385 385 386 386 QuestListener::advertiseStatusChange(this->listeners_, "start"); // Tells the QuestListeners, that the status has changed to active. -
code/branches/output/src/modules/questsystem/QuestDescription.cc
r8706 r8811 79 79 XMLPortParam(QuestDescription, "completeMessage", setCompleteMessage, getCompleteMessage, xmlelement, mode); 80 80 81 COUT(4) << "New QuestDescription with title '" << this->getTitle() << "' created." << std::endl;81 orxout(verbose, context::quests) << "New QuestDescription with title '" << this->getTitle() << "' created." << endl; 82 82 } 83 83 … … 109 109 else 110 110 { 111 COUT(2) << "Bad input in notificationHelper, this should not be happening!" << std::endl;111 orxout(internal_warning, context::quests) << "Bad input in notificationHelper, this should not be happening!" << endl; 112 112 return false; 113 113 } … … 115 115 else 116 116 { 117 COUT(2) << "Bad input in notificationHelper, this should not be happening!" << std::endl;117 orxout(internal_warning, context::quests) << "Bad input in notificationHelper, this should not be happening!" << endl; 118 118 return false; 119 119 } -
code/branches/output/src/modules/questsystem/QuestEffect.cc
r8351 r8811 70 70 bool temp = true; 71 71 72 COUT(4) << "Invoking QuestEffects on player: " << player << " ." << std::endl;72 orxout(verbose, context::quests) << "Invoking QuestEffects on player: " << player << " ." << endl; 73 73 74 74 for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++) -
code/branches/output/src/modules/questsystem/QuestEffectBeacon.cc
r8706 r8811 79 79 XMLPortEventSink(QuestEffectBeacon, BaseObject, "execute", execute, xmlelement, mode); //TODO: Change BaseObject to MultiTrigger as soon as MultiTrigger is the base of all triggers. 80 80 81 COUT(4) << "New QuestEffectBeacon created." << std::endl;81 orxout(verbose, context::quests) << "New QuestEffectBeacon created." << endl; 82 82 } 83 83 … … 108 108 if(!(this->isActive())) // If the QuestEffectBeacon is inactive it cannot be executed. 109 109 { 110 COUT(4) << "The QuestEffectBeacon is inactive." << std::endl;110 orxout(verbose, context::quests) << "The QuestEffectBeacon is inactive." << endl; 111 111 return false; 112 112 } … … 128 128 if(player == NULL) 129 129 { 130 COUT(4) << "The QuestEffectBeacon was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << std::endl;131 return false; 132 } 133 134 COUT(4) << "QuestEffectBeacon executed on player: " << player << " ." << std::endl;130 orxout(verbose, context::quests) << "The QuestEffectBeacon was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << endl; 131 return false; 132 } 133 134 orxout(verbose, context::quests) << "QuestEffectBeacon executed on player: " << player << " ." << endl; 135 135 136 136 bool temp = QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo. … … 221 221 this->effects_.push_back(effect); 222 222 223 COUT(4) << "A QuestEffect was added to a QuestEffectBeacon." << std::endl;223 orxout(verbose, context::quests) << "A QuestEffect was added to a QuestEffectBeacon." << endl; 224 224 return true; 225 225 } -
code/branches/output/src/modules/questsystem/QuestHint.cc
r7552 r8811 74 74 QuestManager::getInstance().registerHint(this); // Registers the QuestHint with the QuestManager. 75 75 76 COUT(4) << "New QuestHint {" << this->getId() << "} created." << std::endl;76 orxout(verbose, context::quests) << "New QuestHint {" << this->getId() << "} created." << endl; 77 77 } 78 78 … … 120 120 else 121 121 { 122 COUT(4) << "An already active questHint was trying to get activated." << std::endl;122 orxout(verbose, context::quests) << "An already active questHint was trying to get activated." << endl; 123 123 return false; 124 124 } 125 125 } 126 126 127 COUT(4) << "A hint of a non-active quest was trying to get activated." << std::endl;127 orxout(verbose, context::quests) << "A hint of a non-active quest was trying to get activated." << endl; 128 128 return false; 129 129 } -
code/branches/output/src/modules/questsystem/QuestItem.cc
r8079 r8811 89 89 if(id == "") // Checks whether the id is a valid id. 90 90 { 91 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;91 orxout(internal_warning, context::quests) << "Invalid id. QuestItem id {" << id << "} could not be set." << endl; 92 92 return; 93 93 } -
code/branches/output/src/modules/questsystem/QuestListener.cc
r7462 r8811 84 84 this->quest_->addListener(this); // Adds the QuestListener to the Quests list of listeners. 85 85 86 COUT(4) << "QuestListener created for quest: {" << this->quest_->getId() << "} with mode '" << this->getMode() << "'." << std::endl;86 orxout(verbose, context::quests) << "QuestListener created for quest: {" << this->quest_->getId() << "} with mode '" << this->getMode() << "'." << endl; 87 87 } 88 88 … … 146 146 else 147 147 { 148 COUT(2) << "QuestListener with invalid mode '" << mode << "' created. Mode set to 'all'." << std::endl;148 orxout(internal_warning, context::quests) << "QuestListener with invalid mode '" << mode << "' created. Mode set to 'all'." << endl; 149 149 this->mode_ = QuestListenerMode::All; 150 150 return false; -
code/branches/output/src/modules/questsystem/QuestManager.cc
r8729 r8811 61 61 RegisterRootObject(QuestManager); 62 62 63 COUT(3) << "QuestManager created." << std::endl;63 orxout(internal_info, context::quests) << "QuestManager created." << endl; 64 64 } 65 65 … … 70 70 QuestManager::~QuestManager() 71 71 { 72 COUT(3) << "QuestManager destroyed." << std::endl;72 orxout(internal_info, context::quests) << "QuestManager destroyed." << endl; 73 73 } 74 74 … … 103 103 { 104 104 quest->setRegistered(); 105 COUT(4) << "Quest with questId {" << quest->getId() << "} successfully inserted." << std::endl;105 orxout(verbose, context::quests) << "Quest with questId {" << quest->getId() << "} successfully inserted." << endl; 106 106 return true; 107 107 } 108 108 else 109 109 { 110 COUT(2) << "Quest with the same id was already present." << std::endl;110 orxout(internal_warning, context::quests) << "Quest with the same id was already present." << endl; 111 111 return false; 112 112 } … … 141 141 { 142 142 hint->setRegistered(); 143 COUT(4) << "QuestHint with hintId {" << hint->getId() << "} successfully inserted." << std::endl;143 orxout(verbose, context::quests) << "QuestHint with hintId {" << hint->getId() << "} successfully inserted." << endl; 144 144 return true; 145 145 } 146 146 else 147 147 { 148 COUT(2) << "QuestHint with the same id was already present." << std::endl;148 orxout(internal_warning, context::quests) << "QuestHint with the same id was already present." << endl; 149 149 return false; 150 150 } … … 183 183 { 184 184 quest = NULL; 185 COUT(2) << "The quest with id {" << questId << "} is nowhere to be found." << std::endl;185 orxout(internal_warning, context::quests) << "The quest with id {" << questId << "} is nowhere to be found." << endl; 186 186 } 187 187 … … 212 212 { 213 213 hint = NULL; 214 COUT(2) << "The hint with id {" << hintId << "} is nowhere to be found." << std::endl;214 orxout(internal_warning, context::quests) << "The hint with id {" << hintId << "} is nowhere to be found." << endl; 215 215 } 216 216 … … 431 431 if(player == NULL) 432 432 { 433 COUT(1) << "Error: GUIOverlay with name '" << guiName << "' has no player." << std::endl;433 orxout(internal_error, context::quests) << "GUIOverlay with name '" << guiName << "' has no player." << endl; 434 434 return NULL; 435 435 } -
code/branches/output/src/modules/questsystem/effects/AddQuest.cc
r7552 r8811 70 70 SUPER(AddQuest, XMLPort, xmlelement, mode); 71 71 72 COUT(4) << "New AddQuest, with target Quest {" << this->getQuestId() << "}, created." << std::endl;72 orxout(verbose, context::quests) << "New AddQuest, with target Quest {" << this->getQuestId() << "}, created." << endl; 73 73 } 74 74 … … 85 85 assert(player); 86 86 87 COUT(5) << "AddQuest on player: " << player << " ." << std::endl;87 orxout(verbose_more, context::quests) << "AddQuest on player: " << player << " ." << endl; 88 88 89 89 try … … 95 95 catch(const orxonox::Exception& ex) 96 96 { 97 COUT(2) << ex.getFullDescription() << std::endl;97 orxout(internal_warning, context::quests) << ex.getFullDescription() << endl; 98 98 return false; 99 99 } 100 100 101 COUT(4) << "Quest {" << this->getQuestId() << "} successfully added to player: " << player << " ." << std::endl;101 orxout(verbose, context::quests) << "Quest {" << this->getQuestId() << "} successfully added to player: " << player << " ." << endl; 102 102 return true; 103 103 } -
code/branches/output/src/modules/questsystem/effects/AddQuestHint.cc
r8079 r8811 73 73 XMLPortParam(AddQuestHint, "hintId", setHintId, getHintId, xmlelement, mode); 74 74 75 COUT(4) << "New AddQuestHint, with target QuestHint {" << this->getHintId() << "}, created." << std::endl;75 orxout(verbose, context::quests) << "New AddQuestHint, with target QuestHint {" << this->getHintId() << "}, created." << endl; 76 76 } 77 77 … … 88 88 if(id == "") 89 89 { 90 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;90 orxout(internal_warning, context::quests) << "Invalid id. QuestItem id {" << id << "} could not be set." << endl; 91 91 return false; 92 92 } … … 108 108 assert(player); 109 109 110 COUT(5) << "AddQuestHint on player: " << player << " ." << std::endl;110 orxout(verbose_more, context::quests) << "AddQuestHint on player: " << player << " ." << endl; 111 111 112 112 try … … 118 118 catch(const Exception& e) 119 119 { 120 COUT(2) << e.getFullDescription() << std::endl;120 orxout(internal_warning, context::quests) << e.getFullDescription() << endl; 121 121 return false; 122 122 } 123 123 124 COUT(4) << "QuestHint {" << this->getHintId() << "} successfully added to player: " << player << " ." << std::endl;124 orxout(verbose, context::quests) << "QuestHint {" << this->getHintId() << "} successfully added to player: " << player << " ." << endl; 125 125 return true; 126 126 -
code/branches/output/src/modules/questsystem/effects/AddReward.cc
r8351 r8811 70 70 XMLPortObject(AddReward, Rewardable, "", addRewardable, getRewardables, xmlelement, mode); 71 71 72 COUT(4) << "New AddReward, with " << this->rewards_.size() << " Rewardables created." << std::endl;72 orxout(verbose, context::quests) << "New AddReward, with " << this->rewards_.size() << " Rewardables created." << endl; 73 73 } 74 74 … … 103 103 bool AddReward::invoke(PlayerInfo* player) 104 104 { 105 COUT(5) << "AddReward on player: " << player << " ." << std::endl;105 orxout(verbose_more, context::quests) << "AddReward on player: " << player << " ." << endl; 106 106 107 107 bool temp = true; … … 109 109 temp = temp && (*reward)->reward(player); 110 110 111 COUT(4) << "Rewardable successfully added to player." << player << " ." << std::endl;111 orxout(verbose, context::quests) << "Rewardable successfully added to player." << player << " ." << endl; 112 112 113 113 return temp; -
code/branches/output/src/modules/questsystem/effects/ChangeQuestStatus.cc
r8079 r8811 83 83 if(id == "") 84 84 { 85 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;85 orxout(internal_warning, context::quests) << "Invalid id. QuestItem id {" << id << "} could not be set." << endl; 86 86 return false; 87 87 } -
code/branches/output/src/modules/questsystem/effects/CompleteQuest.cc
r7552 r8811 70 70 SUPER(CompleteQuest, XMLPort, xmlelement, mode); 71 71 72 COUT(4) << "New CompleteQuest, with target Quest {" << this->getQuestId() << "}, created." << std::endl;72 orxout(verbose, context::quests) << "New CompleteQuest, with target Quest {" << this->getQuestId() << "}, created." << endl; 73 73 } 74 74 … … 85 85 assert(player); 86 86 87 COUT(5) << "CompleteQuest on player: " << player << " ." << std::endl;87 orxout(verbose_more, context::quests) << "CompleteQuest on player: " << player << " ." << endl; 88 88 89 89 Quest* quest; … … 97 97 catch(const Exception& e) 98 98 { 99 COUT(2) << e.getFullDescription() << std::endl;99 orxout(internal_warning, context::quests) << e.getFullDescription() << endl; 100 100 return false; 101 101 } 102 102 103 COUT(4) << "Quest {" << quest->getId() << "} successfully completed by player: " << player << " ." << std::endl;103 orxout(verbose, context::quests) << "Quest {" << quest->getId() << "} successfully completed by player: " << player << " ." << endl; 104 104 return true; 105 105 } -
code/branches/output/src/modules/questsystem/effects/FailQuest.cc
r7552 r8811 70 70 SUPER(FailQuest, XMLPort, xmlelement, mode); 71 71 72 COUT(4) << "New FailQuest, with target Quest {" << this->getQuestId() << "}, created." << std::endl;72 orxout(verbose, context::quests) << "New FailQuest, with target Quest {" << this->getQuestId() << "}, created." << endl; 73 73 } 74 74 … … 85 85 assert(player); 86 86 87 COUT(4) << "FailQuest on player: " << player << " ." << std::endl;87 orxout(verbose, context::quests) << "FailQuest on player: " << player << " ." << endl; 88 88 89 89 Quest* quest; … … 96 96 catch(const Exception& e) 97 97 { 98 COUT(2) << e.getFullDescription() << std::endl;98 orxout(internal_warning, context::quests) << e.getFullDescription() << endl; 99 99 return false; 100 100 } 101 101 102 COUT(4) << "Quest {" << quest->getId() << "} failed by player: " << player << " ." << std::endl;102 orxout(verbose, context::quests) << "Quest {" << quest->getId() << "} failed by player: " << player << " ." << endl; 103 103 return true; 104 104 } -
code/branches/output/src/modules/tetris/Tetris.cc
r8706 r8811 165 165 else // If no centerpoint was specified, an error is thrown and the level is exited. 166 166 { 167 COUT(1) << "Error: No Centerpoint specified." << std::endl;167 orxout(internal_error) << "Tetris: No Centerpoint specified." << endl; 168 168 GSLevel::startMainMenu(); 169 169 return; -
code/branches/output/src/modules/weapons/RocketController.cc
r8788 r8811 44 44 { 45 45 RegisterObject(RocketController); 46 COUT(5)<< "RocketController constructed\n";46 // orxout() << "RocketController constructed" << endl; 47 47 48 48 … … 73 73 RocketController::~RocketController() 74 74 { 75 COUT(5)<< "RocketController destroyed\n";75 // orxout() << "RocketController destroyed" << endl; 76 76 } 77 77 -
code/branches/output/src/modules/weapons/projectiles/SimpleRocket.cc
r8788 r8811 59 59 60 60 this->setMass(15); 61 // COUT(4) << "simplerocket constructed\n";61 // orxout() << "simplerocket constructed" << endl; 62 62 63 63 if (GameMode::isMaster())
Note: See TracChangeset
for help on using the changeset viewer.