Changeset 8858 for code/trunk/src/orxonox
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 6 deleted
- 61 edited
- 9 copied
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/orxonox/CMakeLists.txt
r8729 r8858 32 32 PlayerManager.cc 33 33 Radar.cc 34 ChatHistory.cc35 ChatInputHandler.cc36 34 # Test.cc 37 35 … … 42 40 ) 43 41 42 ADD_SUBDIRECTORY(chat) 44 43 ADD_SUBDIRECTORY(collisionshapes) 45 44 ADD_SUBDIRECTORY(controllers) … … 59 58 FIND_HEADER_FILES 60 59 TOLUA_FILES 61 ChatInputHandler.h60 chat/ChatInputHandler.h 62 61 LevelInfo.h 63 62 LevelManager.h -
code/trunk/src/orxonox/Level.cc
r7648 r8858 88 88 void Level::networkcallback_applyXMLFile() 89 89 { 90 COUT(0) << "Loading level \"" << this->xmlfilename_ << "\"..." << std::endl;90 orxout(user_status) << "Loading level \"" << this->xmlfilename_ << "\"..." << endl; 91 91 92 92 ClassTreeMask mask; … … 115 115 if (!identifier || !identifier->isA(Class(Gametype))) 116 116 { 117 COUT(0) << "Error: \"" << gametype << "\" is not a valid gametype." << std::endl;117 orxout(internal_error) << "\"" << gametype << "\" is not a valid gametype." << endl; 118 118 identifier = Class(Gametype); 119 119 this->gametype_ = "Gametype"; … … 157 157 // this->lodInformation_.insert(std::make_pair(meshName,lodInformation)); 158 158 if( this->lodInformation_.find(meshName) != this->lodInformation_.end()) 159 CCOUT(4) << "replacing lod information for " << meshName << endl;159 orxout(verbose, context::lod) << "replacing lod information for " << meshName << endl; 160 160 this->lodInformation_[meshName] = lodInformation; 161 161 } … … 171 171 void Level::playerEntered(PlayerInfo* player) 172 172 { 173 COUT(3) << "player entered level (id: " << player->getClientID() << ", name: " << player->getName() << ')' << std::endl;173 orxout(internal_info) << "player entered level (id: " << player->getClientID() << ", name: " << player->getName() << ')' << endl; 174 174 player->setGametype(this->getGametype()); 175 175 } … … 177 177 void Level::playerLeft(PlayerInfo* player) 178 178 { 179 COUT(3) << "player left level (id: " << player->getClientID() << ", name: " << player->getName() << ')' << std::endl;179 orxout(internal_info) << "player left level (id: " << player->getClientID() << ", name: " << player->getName() << ')' << endl; 180 180 player->setGametype(0); 181 181 } -
code/trunk/src/orxonox/LevelInfo.cc
r7652 r8858 125 125 if(!this->validateTag(tag)) 126 126 { 127 COUT(2) << "Bad LevelInfo tag '" << tag << "' in " << this->getXMLFilename() << ". Ignoring..." << std::endl;127 orxout(internal_warning) << "Bad LevelInfo tag '" << tag << "' in " << this->getXMLFilename() << ". Ignoring..." << endl; 128 128 return false; 129 129 } -
code/trunk/src/orxonox/LevelManager.cc
r8706 r8858 251 251 252 252 // Iterate over all the found *.oxw files 253 COUT(3) << "Loading LevelInfos..." << std::endl;253 orxout(internal_info) << "Loading LevelInfos..." << endl; 254 254 std::set<std::string> names; 255 255 for (Ogre::StringVector::const_iterator it = levels->begin(); it != levels->end(); ++it) … … 281 281 // Warn about levels with the same name. 282 282 if(!names.insert(info->getName()).second) 283 COUT(2) << "Warning: Multiple levels (" << info->getXMLFilename() << ") with name '" << info->getName() << "' found!" << std::endl;283 orxout(internal_warning) << "Multiple levels (" << info->getXMLFilename() << ") with name '" << info->getName() << "' found!" << endl; 284 284 285 285 // Warn about multiple items so that it gets fixed quickly 286 286 if(availableLevels_.find(info) != availableLevels_.end()) 287 287 { 288 COUT(2) << "Warning: Multiple levels (" << info->getXMLFilename() << ") with same name '" << info->getName() << "' and filename found! Exluding..." << std::endl;288 orxout(internal_warning) << "Multiple levels (" << info->getXMLFilename() << ") with same name '" << info->getName() << "' and filename found! Exluding..." << endl; 289 289 // Delete LevelInfoItem to avoid a dangling pointer 290 290 delete info; -
code/trunk/src/orxonox/Main.cc
r8729 r8858 61 61 int main(const std::string& strCmdLine) 62 62 { 63 orxout(internal_status) << "entering orxonox::main()" << endl; 64 orxout(internal_info) << "command line: " << strCmdLine << endl; 65 66 orxout(internal_info) << "creating Game object:" << endl; 63 67 Game* game = new Game(strCmdLine); 68 orxout(user_status) << "Finished initialization" << endl; 64 69 65 70 if (CommandLineParser::getValue("generateDoc").getString().empty()) 66 71 { 72 orxout(internal_info) << "preparing game states" << endl; 73 67 74 /* TODO make this clear */ 68 75 game->setStateHierarchy( … … 98 105 } 99 106 107 orxout(internal_info) << "starting game" << endl; 100 108 game->run(); 101 109 } -
code/trunk/src/orxonox/MoodManager.cc
r8706 r8858 54 54 { 55 55 // TODO: Non-fatal error handling (non-critical resource missing) 56 COUT(2) << "Mood Warning: Folder for default mood (" << MoodManager::defaultMood_ << ") does not exist!" << std::endl;56 orxout(internal_warning) << "Mood Warning: Folder for default mood (" << MoodManager::defaultMood_ << ") does not exist!" << endl; 57 57 } 58 58 … … 82 82 if (!Resource::exists(path)) 83 83 { 84 COUT(3) << "Mood " << mood_ << " does not exist. Will not change." << std::endl;84 orxout(internal_warning) << "Mood " << mood_ << " does not exist. Will not change." << endl; 85 85 this->setMood(oldMood_); 86 86 } 87 87 else 88 88 { 89 COUT(3) << "Mood changed to " << mood_ << std::endl;89 orxout(internal_info) << "Mood changed to " << mood_ << endl; 90 90 MoodListener::changedMood(mood_); 91 91 } -
code/trunk/src/orxonox/OrxonoxPrereqs.h
r8351 r8858 77 77 class Radar; 78 78 class Scene; 79 80 // chat 81 class ChatHistory; 82 class ChatInputHandler; 83 class ChatListener; 84 class ChatManager; 79 85 80 86 // collisionshapes -
code/trunk/src/orxonox/PlayerManager.cc
r8327 r8858 57 57 { 58 58 if (clientID != 0) 59 COUT(3) << "client connected" << std::endl;59 orxout(internal_info) << "client connected" << endl; 60 60 61 61 // create new HumanPlayer instance … … 77 77 { 78 78 if (clientID != 0) 79 COUT(3) << "client disconnected" << std::endl;79 orxout(internal_info) << "client disconnected" << endl; 80 80 81 81 // remove from clients-map -
code/trunk/src/orxonox/Radar.cc
r7284 r8858 195 195 void Radar::listObjects() const 196 196 { 197 COUT(3) << "List of RadarObjects:\n";197 orxout(debug_output) << "List of RadarObjects:" << endl; 198 198 // iterate through all Radar Objects 199 199 unsigned int i = 0; 200 200 for (ObjectList<RadarViewable>::iterator it = ObjectList<RadarViewable>::begin(); it; ++it, ++i) 201 201 { 202 COUT(3) << i++ << ": " << (*it)->getRVWorldPosition() << std::endl;202 orxout(debug_output) << i++ << ": " << (*it)->getRVWorldPosition() << endl; 203 203 } 204 204 } -
code/trunk/src/orxonox/Scene.cc
r7163 r8858 141 141 if (range.length() < 10.0f) 142 142 { 143 CCOUT(2) << "Warning:Setting the negative world range to a very small value: "144 << multi_cast<std::string>(range) << std::endl;145 } 146 if (this->hasPhysics()) 147 { 148 CCOUT(2) << "Warning:Attempting to set the physical world range at run time. "149 << "This causes a complete physical reload which might take some time." << std::endl;143 orxout(internal_warning) << "Setting the negative world range to a very small value: " 144 << multi_cast<std::string>(range) << endl; 145 } 146 if (this->hasPhysics()) 147 { 148 orxout(internal_warning) << "Attempting to set the physical world range at run time. " 149 << "This causes a complete physical reload which might take some time." << endl; 150 150 this->setPhysicalWorld(false); 151 151 this->negativeWorldRange_ = range; … … 160 160 if (range.length() < 10.0f) 161 161 { 162 CCOUT(2) << "Warning:Setting the positive world range to a very small value: "163 << multi_cast<std::string>(range) << std::endl;164 } 165 if (this->hasPhysics()) 166 { 167 CCOUT(2) << "Warning:Attempting to set the physical world range at run time. "168 << "This causes a complete physical reload which might take some time." << std::endl;162 orxout(internal_warning) << "Setting the positive world range to a very small value: " 163 << multi_cast<std::string>(range) << endl; 164 } 165 if (this->hasPhysics()) 166 { 167 orxout(internal_warning) << "Attempting to set the physical world range at run time. " 168 << "This causes a complete physical reload which might take some time." << endl; 169 169 this->setPhysicalWorld(false); 170 170 this->positiveWorldRange_ = range; -
code/trunk/src/orxonox/Test.cc
r7284 r8858 127 127 // mt2.importData( temp ); 128 128 // assert( temp-mem == mt1.getNetworkSize() ); 129 // COUT(0) << mt2 << endl;129 // orxout() << mt2 << endl; 130 130 // if(!Core::isMaster()) 131 131 // call2(0, "bal", "a", "n", "ce"); … … 135 135 void Test::printBlaBla(std::string s1, std::string s2, std::string s3, std::string s4, std::string s5) 136 136 { 137 COUT(0) << s1 << s2 << s3 << s4 << s5 << endl;137 orxout() << s1 << s2 << s3 << s4 << s5 << endl; 138 138 } 139 139 140 void Test::checkU1(){ COUT(1) << "U1 changed: " << u1 << std::endl; }141 void Test::checkU2(){ COUT(1) << "U2 changed: " << u2 << std::endl; }142 void Test::checkU3(){ COUT(1) << "U3 changed: " << u3 << std::endl; }143 void Test::checkU4(){ COUT(1) << "U4 changed: " << u4 << std::endl; }140 void Test::checkU1(){ orxout() << "U1 changed: " << u1 << endl; } 141 void Test::checkU2(){ orxout() << "U2 changed: " << u2 << endl; } 142 void Test::checkU3(){ orxout() << "U3 changed: " << u3 << endl; } 143 void Test::checkU4(){ orxout() << "U4 changed: " << u4 << endl; } 144 144 145 void Test::checkS1(){ COUT(1) << "S1 changed: " << s1 << std::endl; }146 void Test::checkS2(){ COUT(1) << "S2 changed: " << s2 << std::endl; }147 void Test::checkS3(){ COUT(1) << "S3 changed: " << s3 << std::endl; }148 void Test::checkS4(){ COUT(1) << "S4 changed: " << s4 << std::endl; }145 void Test::checkS1(){ orxout() << "S1 changed: " << s1 << endl; } 146 void Test::checkS2(){ orxout() << "S2 changed: " << s2 << endl; } 147 void Test::checkS3(){ orxout() << "S3 changed: " << s3 << endl; } 148 void Test::checkS4(){ orxout() << "S4 changed: " << s4 << endl; } 149 149 150 void Test::printPointer(){ CCOUT(1) << "pointer: " << this->pointer_ << endl; }150 void Test::printPointer(){ orxout() << "pointer: " << this->pointer_ << endl; } 151 151 152 152 } -
code/trunk/src/orxonox/Test.h
r7163 r8858 108 108 109 109 void blub2() 110 { for( std::set<uint32_t>::iterator it=mySet_.begin(); it!=mySet_.end(); ++it ) COUT(0) << *it << endl; }110 { for( std::set<uint32_t>::iterator it=mySet_.begin(); it!=mySet_.end(); ++it ) orxout() << *it << endl; } 111 111 }; 112 112 } -
code/trunk/src/orxonox/collisionshapes/CollisionShape.cc
r8706 r8858 203 203 if(scale_.crossProduct(scale).squaredLength() != 0.0f) 204 204 { 205 CCOUT(2) << "Warning:Non-uniform scaling is not yet supported." << endl;205 orxout(internal_warning) << "Non-uniform scaling is not yet supported." << endl; 206 206 return; 207 207 } -
code/trunk/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r8706 r8858 98 98 if (this->attachedShapes_.find(shape) != this->attachedShapes_.end()) 99 99 { 100 CCOUT(2) << "Warning: Attaching a CollisionShape twice is not yet supported." << std::endl;100 orxout(internal_warning) << "Attaching a CollisionShape twice is not yet supported." << endl; 101 101 return; 102 102 } … … 139 139 } 140 140 else 141 CCOUT(2) << "Warning: Cannot detach non child collision shape" << std::endl;141 orxout(internal_warning) << "Cannot detach non child collision shape" << endl; 142 142 } 143 143 … … 168 168 if (it == this->attachedShapes_.end()) 169 169 { 170 CCOUT(2) << "Warning: Cannot update child shape: Instance not a child." << std::endl;170 orxout(internal_warning) << "Cannot update child shape: Instance not a child." << endl; 171 171 return; 172 172 } -
code/trunk/src/orxonox/controllers/ArtificialController.cc
r8706 r8858 98 98 if (it->myMaster_ == this) 99 99 { 100 COUT(1) << "error: " << this << " is still master in " << (*it) << std::endl;100 orxout(internal_error) << this << " is still master in " << (*it) << endl; 101 101 it->myMaster_ = 0; 102 102 } … … 107 107 if (it2 != it->slaves_.end()) 108 108 { 109 COUT(1) << "error: " << this << " is still slave in " << (*it) << std::endl;109 orxout(internal_error) << this << " is still slave in " << (*it) << endl; 110 110 it->slaves_.erase(it2); 111 111 } … … 737 737 float speedDiv = this->getControllableEntity()->getVelocity().squaredLength() - this->target_->getVelocity().squaredLength(); 738 738 739 COUT(0) << "~follow distance: " << distance << "SpeedCounter: " << this->speedCounter_ << "~speedDiv: " << speedDiv << std::endl;739 orxout() << "~follow distance: " << distance << "SpeedCounter: " << this->speedCounter_ << "~speedDiv: " << speedDiv << endl; 740 740 if (distance < 800) 741 741 { -
code/trunk/src/orxonox/controllers/HumanController.cc
r8706 r8858 93 93 Camera* camera = HumanController::localController_s->controllableEntity_->getCamera(); 94 94 if (!camera) 95 COUT(3) << "HumanController, Warning: Using a ControllableEntity without Camera" << std::endl;95 orxout(internal_warning) << "HumanController, Warning: Using a ControllableEntity without Camera" << endl; 96 96 } 97 97 } … … 197 197 198 198 this->controllableEntity_->boost(this->boosting_); 199 COUT(4) << "Start boosting" << endl;199 // orxout() << "Start boosting" << endl; 200 200 } 201 201 } … … 211 211 212 212 this->controllableEntity_->boost(this->boosting_); 213 COUT(4) << "Stop boosting" << endl;213 // orxout() << "Stop boosting" << endl; 214 214 } 215 215 … … 257 257 const Quaternion& orientation = HumanController::localController_s->controllableEntity_->getOrientation(); 258 258 259 COUT(0) << "position=\"" << position.x << ", " << position.y << ", " << position.z << "\" ";260 COUT(0) << "orientation=\"" << orientation.w << ", " << orientation.x << ", " << orientation.y << ", " << orientation.z << "\"" << std::endl;259 orxout(message) << "position=\"" << position.x << ", " << position.y << ", " << position.z << "\" " 260 << "orientation=\"" << orientation.w << ", " << orientation.x << ", " << orientation.y << ", " << orientation.z << "\"" << endl; 261 261 } 262 262 } -
code/trunk/src/orxonox/controllers/NewHumanController.cc
r8436 r8858 388 388 for (itr = result.begin(); itr != result.end(); ++itr) 389 389 { 390 // CCOUT(0) << "testing object as target" << endl;390 // orxout() << "testing object as target" << endl; 391 391 if (itr->movable->isInScene() && itr->movable->getMovableType() == "Entity" && itr->distance > 200) 392 392 { -
code/trunk/src/orxonox/gamestates/GSClient.cc
r7163 r8858 29 29 #include "GSClient.h" 30 30 31 #include "util/Debug.h"32 31 #include "util/Exception.h" 33 32 #include "core/CommandLineParser.h" … … 53 52 void GSClient::activate() 54 53 { 54 orxout(user_status) << "Starting client" << endl; 55 55 56 GameMode::setIsClient(true); 56 57 -
code/trunk/src/orxonox/gamestates/GSLevel.cc
r8729 r8858 74 74 void GSLevel::activate() 75 75 { 76 orxout(user_status) << "Loading level" << endl; 77 76 78 if (GameMode::showsGraphics()) 77 79 { … … 155 157 156 158 // call the loader 157 COUT(0) << "Loading level..." << std::endl;158 159 startFile_ = new XMLFile(LevelManager::getInstance().getDefaultLevel()); 159 160 bool loaded = Loader::open(startFile_); … … 169 170 delete startFile_; 170 171 171 COUT(3) << "Unloaded level. Remaining objects:" << std::endl;172 orxout(internal_info) << "Remaining objects:" << endl; 172 173 unsigned int i = 0; 173 174 for (ObjectList<BaseObject>::iterator it = ObjectList<BaseObject>::begin(); it != ObjectList<BaseObject>::end(); ++it) … … 176 177 if (find == this->staticObjects_.end()) 177 178 { 178 COUT(3) << ++i << ": " << it->getIdentifier()->getName() << " (" << *it << "), references: " << it->getReferenceCount() << std::endl;179 orxout(internal_info) << ++i << ": " << it->getIdentifier()->getName() << " (" << *it << "), references: " << it->getReferenceCount() << endl; 179 180 } 180 181 } 181 COUT(3) << i << " objects remaining.";182 orxout(internal_info) << i << " objects remaining."; 182 183 if (i == 0) 183 COUT(3) << " Well done!" << std::endl;184 orxout(internal_info) << " Well done!" << endl; 184 185 else 185 COUT(3) << " Try harder!" << std::endl;186 orxout(internal_info) << " Try harder!" << endl; 186 187 } 187 188 -
code/trunk/src/orxonox/gamestates/GSMainMenu.cc
r8079 r8858 95 95 void GSMainMenu::activate() 96 96 { 97 orxout(user_status) << "Loading main menu" << endl; 98 97 99 // show main menu 98 100 GraphicsManager::getInstance().setCamera(this->camera_); -
code/trunk/src/orxonox/gamestates/GSMasterServer.cc
r7801 r8858 30 30 #include "GSMasterServer.h" 31 31 32 #include "util/ Debug.h"32 #include "util/Output.h" 33 33 #include "core/Game.h" 34 34 #include "core/GameMode.h" … … 50 50 void GSMasterServer::activate() 51 51 { 52 orxout(user_status) << "Starting masterserver" << endl; 53 52 54 /* TODO make this work for masterserver as well */ 53 55 //GameMode::setIsServer(true); 54 56 55 57 this->mserver = new MasterServer(); 56 COUT(0) << "Loading masterserver mode" << std::endl;57 58 58 this->mserver->run(); 59 59 } -
code/trunk/src/orxonox/gamestates/GSRoot.cc
r8706 r8858 77 77 { 78 78 if (dynamic_cast<Synchronisable*>(*it)) 79 COUT(0) << "object: " << it->getIdentifier()->getName() << " id: " << dynamic_cast<Synchronisable*>(*it)->getObjectID() << std::endl;79 orxout(debug_output) << "object: " << it->getIdentifier()->getName() << " id: " << dynamic_cast<Synchronisable*>(*it)->getObjectID() << endl; 80 80 else 81 COUT(0) << "object: " << it->getIdentifier()->getName() << std::endl;81 orxout(debug_output) << "object: " << it->getIdentifier()->getName() << endl; 82 82 nr++; 83 83 } 84 COUT(0) << "currently got " << nr << " objects" << std::endl;84 orxout(debug_output) << "currently got " << nr << " objects" << endl; 85 85 } 86 86 -
code/trunk/src/orxonox/gamestates/GSServer.cc
r7801 r8858 29 29 #include "GSServer.h" 30 30 31 #include "util/ Debug.h"31 #include "util/Output.h" 32 32 #include "core/CommandLineParser.h" 33 33 #include "core/Game.h" … … 54 54 void GSServer::activate() 55 55 { 56 orxout(user_status) << "Starting server" << endl; 57 56 58 GameMode::setIsServer(true); 57 59 58 60 this->server_ = new Server(CommandLineParser::getValue("port")); 59 COUT(0) << "Loading scene in server mode" << std::endl;61 orxout(user_status) << "Loading scene in server mode" << endl; 60 62 61 63 server_->open(); -
code/trunk/src/orxonox/gametypes/Asteroids.cc
r7655 r8858 30 30 31 31 #include "core/CoreIncludes.h" 32 #include " network/Host.h"32 #include "chat/ChatManager.h" 33 33 #include "worldentities/pawns/Pawn.h" 34 34 … … 74 74 75 75 std::string message("The match has started! Reach the first chekpoint within 15 seconds! But be aware, there may be pirates around..."); 76 COUT(0) << message << std::endl; 77 Host::Broadcast(message); 76 ChatManager::message(message); 78 77 79 78 } … … 84 83 85 84 std::string message("The match has ended."); 86 COUT(0) << message << std::endl; 87 Host::Broadcast(message); 85 ChatManager::message(message); 88 86 } 89 87 } -
code/trunk/src/orxonox/gametypes/Deathmatch.cc
r6417 r8858 30 30 31 31 #include "core/CoreIncludes.h" 32 #include " network/Host.h"32 #include "chat/ChatManager.h" 33 33 #include "infos/PlayerInfo.h" 34 34 #include "worldentities/pawns/Pawn.h" … … 48 48 49 49 std::string message("The match has started!"); 50 COUT(0) << message << std::endl; 51 Host::Broadcast(message); 50 ChatManager::message(message); 52 51 } 53 52 … … 57 56 58 57 std::string message("The match has ended."); 59 COUT(0) << message << std::endl; 60 Host::Broadcast(message); 58 ChatManager::message(message); 61 59 } 62 60 … … 66 64 67 65 const std::string& message = player->getName() + " entered the game"; 68 COUT(0) << message << std::endl; 69 Host::Broadcast(message); 66 ChatManager::message(message); 70 67 } 71 68 … … 77 74 { 78 75 const std::string& message = player->getName() + " left the game"; 79 COUT(0) << message << std::endl; 80 Host::Broadcast(message); 76 ChatManager::message(message); 81 77 } 82 78 … … 91 87 { 92 88 const std::string& message = player->getOldName() + " changed name to " + player->getName(); 93 COUT(0) << message << std::endl; 94 Host::Broadcast(message); 89 ChatManager::message(message); 95 90 } 96 91 … … 113 108 message = victim->getPlayer()->getName() + " died"; 114 109 115 COUT(0) << message << std::endl; 116 Host::Broadcast(message); 110 ChatManager::message(message); 117 111 } 118 112 … … 127 121 { 128 122 const std::string& message = player->getName() + " scores!"; 129 COUT(0) << message << std::endl; 130 Host::Broadcast(message); 123 ChatManager::message(message); 131 124 } 132 125 } -
code/trunk/src/orxonox/gametypes/Dynamicmatch.cc
r8729 r8858 49 49 #include "core/CoreIncludes.h" 50 50 #include "core/command/Executor.h" 51 #include " network/Host.h"51 #include "chat/ChatManager.h" 52 52 #include "infos/PlayerInfo.h" 53 53 #include "worldentities/pawns/Pawn.h" … … 342 342 numberOf[chaser]++; 343 343 Gametype::playerEntered(player); 344 const std::string& message6 = player->getName() + " entered the game"; 345 COUT(0) << message6 << std::endl; 346 Host::Broadcast(message6); 344 const std::string& message = player->getName() + " entered the game"; 345 ChatManager::message(message); 347 346 } 348 347 … … 359 358 } 360 359 const std::string& message = player->getName() + " left the game"; 361 COUT(0) << message << std::endl; 362 Host::Broadcast(message); 360 ChatManager::message(message); 363 361 //remove player from map 364 362 playerParty_.erase (player); … … 617 615 { 618 616 const std::string& message = player->getOldName() + " changed name to " + player->getName(); 619 COUT(0) << message << std::endl; 620 Host::Broadcast(message); 617 ChatManager::message(message); 621 618 } 622 619 … … 630 627 { 631 628 std::string message("Dynamicmatch started!"); 632 COUT(0) << message << std::endl; 633 Host::Broadcast(message); 629 ChatManager::message(message); 634 630 } 635 631 else if(tutorial) // Announce selectionphase … … 647 643 { 648 644 std::string message("Earn points:\n\n\n\tIf you're red: Chase the blue player!\n\n\tIf you're blue shoot at a red player or hide.\n\n\tIf you're green: You've got the licence to kill red players!"); 649 COUT(0) << message << std::endl; 650 Host::Broadcast(message); 645 ChatManager::message(message); 651 646 callInstructions_.setTimer(10, false, createExecutor(createFunctor(&Dynamicmatch::furtherInstructions, this))); 652 647 } … … 655 650 { 656 651 std::string message("After 3 Minutes the game is over."); 657 COUT(0) << message << std::endl; 658 Host::Broadcast(message); 652 ChatManager::message(message); 659 653 }*/ 660 654 void Dynamicmatch::end() … … 663 657 664 658 std::string message("Time out. Press F2 to see the points you scored."); 665 COUT(0) << message << std::endl; 666 Host::Broadcast(message); 659 ChatManager::message(message); 667 660 } 668 661 SpawnPoint* Dynamicmatch::getBestSpawnPoint(PlayerInfo* player) const -
code/trunk/src/orxonox/gametypes/Gametype.cc
r8706 r8858 297 297 } 298 298 else 299 COUT(2) << "Warning: Killed Pawn was not in the playerlist" << std::endl;299 orxout(internal_warning) << "Killed Pawn was not in the playerlist" << endl; 300 300 } 301 301 } … … 344 344 } 345 345 346 COUT(2) << "Warning: Fallback SpawnPoint was used,because there were no active SpawnPoints." << endl;346 orxout(internal_warning) << "Fallback SpawnPoint was used because there were no active SpawnPoints." << endl; 347 347 return fallbackSpawnPoint; 348 348 } … … 444 444 else 445 445 { 446 COUT(1) << "Error: No SpawnPoints in current Gametype" << std::endl;446 orxout(user_error) << "No SpawnPoints in current Gametype" << endl; 447 447 abort(); 448 448 } … … 461 461 else 462 462 { 463 COUT(1) << "Error: No SpawnPoints in current Gametype" << std::endl;463 orxout(user_error) << "No SpawnPoints in current Gametype" << endl; 464 464 abort(); 465 465 } -
code/trunk/src/orxonox/gametypes/LastManStanding.cc
r8327 r8858 30 30 31 31 #include "core/CoreIncludes.h" 32 #include " network/Host.h"32 #include "chat/ChatManager.h" 33 33 #include "infos/PlayerInfo.h" 34 34 #include "worldentities/pawns/Pawn.h" … … 90 90 const std::string& message = ""; // resets Camper-Warning-message 91 91 this->gtinfo_->sendFadingMessage(message,it->first->getClientID()); 92 } 92 } 93 93 } 94 94 return true; … … 105 105 this->playersAlive--; 106 106 const std::string& message = victim->getPlayer()->getName() + " has lost all lives"; 107 COUT(0) << message << std::endl; 108 Host::Broadcast(message); 107 ChatManager::message(message); 109 108 } 110 109 … … 128 127 { 129 128 Gametype::end(); 130 129 131 130 for (std::map<PlayerInfo*, int>::iterator it = this->playerLives_.begin(); it != this->playerLives_.end(); ++it) 132 131 { … … 148 147 return 0; 149 148 } 150 149 151 150 int LastManStanding::getNumPlayersAlive() const 152 151 { … … 190 189 this->timeToAct_[player]=timeRemaining+3.0f+respawnDelay;//reset timer 191 190 this->playerDelayTime_[player]=respawnDelay; 192 191 193 192 std::map<PlayerInfo*, Player>::iterator it = this->players_.find(player); 194 193 if (it != this->players_.end()) … … 198 197 const std::string& message = ""; // resets Camper-Warning-message 199 198 this->gtinfo_->sendFadingMessage(message,it->first->getClientID()); 200 } 199 } 201 200 } 202 201 … … 239 238 } 240 239 for (std::map<PlayerInfo*, float>::iterator it = this->timeToAct_.begin(); it != this->timeToAct_.end(); ++it) 241 { 240 { 242 241 if (playerGetLives(it->first)<=0)//Players without lives shouldn't be affected by time. 243 continue; 242 continue; 244 243 it->second-=dt;//Decreases punishment time. 245 if (!inGame_[it->first])//Manages respawn delay - player is forced to respawn after the delaytime is used up. 244 if (!inGame_[it->first])//Manages respawn delay - player is forced to respawn after the delaytime is used up. 246 245 { 247 246 playerDelayTime_[it->first]-=dt; -
code/trunk/src/orxonox/gametypes/LastTeamStanding.cc
r8706 r8858 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "network/NetworkPrereqs.h" 33 #include "network/Host.h" 32 #include "chat/ChatManager.h" 34 33 #include "infos/PlayerInfo.h" 35 34 #include "worldentities/pawns/Pawn.h" … … 119 118 this->teamsAlive--; 120 119 const std::string& message = victim->getPlayer()->getName() + " has lost all lives"; 121 COUT(0) << message << std::endl; 122 Host::Broadcast(message); 120 ChatManager::message(message); 123 121 } 124 122 return allow; -
code/trunk/src/orxonox/gametypes/TeamBaseMatch.cc
r8327 r8858 141 141 return; 142 142 143 COUT(0) << "Points standing:" << std::endl << "Team 1: "<< pointsTeam1_ << std::endl << "Team 2: " << pointsTeam2_ << std::endl;144 if(pointsTeam1_ >=1700 && pointsTeam1_ < 2000) COUT(0) << "Team 1 is near victory!" << std::endl;145 if(pointsTeam2_ >=1700 && pointsTeam2_ < 2000) COUT(0) << "Team 2 is near victory!" << std::endl;143 orxout(message) << "Points standing:" << '\n' << "Team 1: "<< pointsTeam1_ << '\n' << "Team 2: " << pointsTeam2_ << endl; 144 if(pointsTeam1_ >=1700 && pointsTeam1_ < 2000) orxout(message) << "Team 1 is near victory!" << endl; 145 if(pointsTeam2_ >=1700 && pointsTeam2_ < 2000) orxout(message) << "Team 2 is near victory!" << endl; 146 146 } 147 147 … … 179 179 if (this->pointsTeam1_ > this->pointsTeam2_) 180 180 { 181 COUT(0) << "Team 1 has won the match" << std::endl;181 orxout(message) << "Team 1 has won the match" << endl; 182 182 winningteam = 0; 183 183 } 184 184 else 185 185 { 186 COUT(0) << "Team 2 has won the match" << std::endl;186 orxout(message) << "Team 2 has won the match" << endl; 187 187 winningteam = 1; 188 188 } -
code/trunk/src/orxonox/gametypes/UnderAttack.cc
r8327 r8858 32 32 #include "core/CoreIncludes.h" 33 33 #include "core/ConfigValueIncludes.h" 34 #include " network/Host.h"34 #include "chat/ChatManager.h" 35 35 #include "worldentities/pawns/Destroyer.h" 36 36 #include "infos/PlayerInfo.h" … … 70 70 this->end(); //end gametype 71 71 std::string message("Ship destroyed! Team 0 has won!"); 72 COUT(0) << message << std::endl; 73 Host::Broadcast(message); 72 ChatManager::message(message); 74 73 this->gameEnded_ = true; 75 74 … … 153 152 this->end(); 154 153 std::string message("Time is up! Team 1 has won!"); 155 COUT(0) << message << std::endl; 156 Host::Broadcast(message); 154 ChatManager::message(message); 157 155 158 156 for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it) … … 173 171 const std::string& message = multi_cast<std::string>(timesequence_) + " seconds left!"; 174 172 /* 175 COUT(0) << message << std::endl; 176 Host::Broadcast(message); 173 ChatManager::message(message); 177 174 */ 178 175 this->gtinfo_->sendAnnounceMessage(message); -
code/trunk/src/orxonox/graphics/AnimatedModel.cc
r7163 r8858 22 22 * Author: 23 23 * Benjamin de Capitani 24 * 24 * Co-authors: 25 * ... 25 26 * 26 27 */ -
code/trunk/src/orxonox/graphics/AnimatedModel.h
r7163 r8858 21 21 * 22 22 * Author: 23 * Fabian 'x3n' Landau23 * Benjamin de Capitani 24 24 * Co-authors: 25 25 * ... -
code/trunk/src/orxonox/graphics/Model.cc
r8079 r8858 142 142 if( this->numLodLevels_>10 ) 143 143 { 144 CCOUT(2) << "More than 10 LoD levels requested. Creating only 10." << endl;144 orxout(internal_warning, context::lod) << "More than 10 LoD levels requested. Creating only 10." << endl; 145 145 this->numLodLevels_ = 10; 146 146 } … … 158 158 creatorPtr = creatorPtr->getCreator(); 159 159 } 160 COUT(0) << "name: " << this->meshSrc_ << "scaleFactor: " << scaleFactor << ", volume: " << volume << endl;160 orxout() << "name: " << this->meshSrc_ << "scaleFactor: " << scaleFactor << ", volume: " << volume << endl; 161 161 */ 162 COUT(4) << "Setting lodLevel for " << this->meshSrc_<< " with lodLevel_: " << this->lodLevel_ <<" and volume: "<< volume << ":" << std::endl;162 orxout(verbose, context::lod) << "Setting lodLevel for " << this->meshSrc_<< " with lodLevel_: " << this->lodLevel_ <<" and volume: "<< volume << ":" << endl; 163 163 164 164 #if OGRE_VERSION >= 0x010700 … … 173 173 float factor = pow(volume, 2.0f / 3.0f) * 15.0f / lodLevel_; 174 174 175 COUT(4) << "LodLevel set with factor: " << factor << endl;175 orxout(verbose, context::lod) << "LodLevel set with factor: " << factor << endl; 176 176 177 177 distList.push_back(70.0f*factor); … … 200 200 what = "<0"; 201 201 202 COUT(4)<<"LodLevel not set because lodLevel("<<lodLevel_<<") was "<<what<<"." << endl;202 orxout(verbose, context::lod) << "LodLevel not set because lodLevel(" << lodLevel_ << ") was " << what << "." << endl; 203 203 } 204 204 } 205 205 else 206 COUT(4) << "LodLevel for " << this->meshSrc_ << " not set because is disabled." << endl;206 orxout(verbose, context::lod) << "LodLevel for " << this->meshSrc_ << " not set because is disabled." << endl; 207 207 } 208 208 } -
code/trunk/src/orxonox/graphics/ParticleEmitter.cc
r7174 r8858 116 116 catch (const std::exception& ex) 117 117 { 118 COUT(1) << "Error: Couln't load particle effect \"" << this->source_ << "\" because:" << std::endl119 << ex.what() << std::endl;118 orxout(internal_error) << "Couldn't load particle effect \"" << this->source_ << "\" because:" << endl 119 << ex.what() << endl; 120 120 } 121 121 } -
code/trunk/src/orxonox/infos/GametypeInfo.cc
r8706 r8858 196 196 this->startCountdown_ = countdown; 197 197 // Set the counter to the ceiling of the current countdown. 198 this->counter_ = st d::ceil(countdown);198 this->counter_ = static_cast<unsigned int>(std::ceil(countdown)); 199 199 this->changedCountdownCounter(); 200 200 } -
code/trunk/src/orxonox/interfaces/PickupCarrier.cc
r8351 r8858 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/trunk/src/orxonox/interfaces/Pickupable.cc
r8464 r8858 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/trunk/src/orxonox/interfaces/RadarViewable.cc
r8738 r8858 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 } -
code/trunk/src/orxonox/items/Engine.cc
r8727 r8858 261 261 if(!this->engineTemplate_.empty()) 262 262 { 263 COUT(4)<<"Loading an engine template: "<<this->engineTemplate_<<"\n";263 orxout(verbose, context::templates) << "Loading an engine template: " << this->engineTemplate_ << endl; 264 264 Template *temp = Template::getTemplate(this->engineTemplate_); 265 265 if(temp) -
code/trunk/src/orxonox/overlays/InGameConsole.cc
r8729 r8858 46 46 #include "util/DisplayStringConversions.h" 47 47 #include "util/ScopedSingletonManager.h" 48 #include "util/output/MemoryWriter.h" 48 49 #include "core/CoreIncludes.h" 49 50 #include "core/ConfigValueIncludes.h" … … 58 59 { 59 60 const int LINES = 30; 60 const float CHAR_WIDTH = 7.45f; // fix this please - determine the char-width dynamically61 const float CHAR_WIDTH = 8.0f; // fix this please - determine the char-width dynamically 61 62 62 63 SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole); … … 94 95 // Output buffering is not anymore needed. Not the best solution to do 95 96 // this here, but there isn't much of another way. 96 OutputHandler::getInstance().disableMemoryLog();97 MemoryWriter::getInstance().disable(); 97 98 } 98 99 … … 262 263 this->consoleOverlayContainer_->setTop(-1.3f * this->relativeHeight); 263 264 264 COUT(4) << "Info: InGameConsole initialized" << std::endl;265 orxout(internal_info) << "InGameConsole initialized" << endl; 265 266 } 266 267 … … 288 289 289 290 for (int i = LINES - 1; i > max; --i) 290 this->print("", Shell:: None, i, true);291 this->print("", Shell::DebugOutput, i, true); 291 292 292 293 for (int i = max; i >= 1; --i) … … 298 299 299 300 /** 300 @brief Called if only the last output-line has changed. 301 */ 302 void InGameConsole::onlyLastLineChanged() 303 { 301 @brief Called if a new output-line was added. 302 */ 303 void InGameConsole::lineAdded() 304 { 305 this->numLinesShifted_ = 0; 306 this->shiftLines(); 304 307 if (LINES > 1) 305 308 this->print(this->shell_->getNewestLineIterator()->first, this->shell_->getNewestLineIterator()->second, 1); 306 }307 308 /**309 @brief Called if a new output-line was added.310 */311 void InGameConsole::lineAdded()312 {313 this->numLinesShifted_ = 0;314 this->shiftLines();315 this->onlyLastLineChanged();316 309 } 317 310 … … 346 339 void InGameConsole::executed() 347 340 { 348 this->shell_->addOutput(this->shell_->getInput() + '\n', Shell::Command);341 this->shell_->addOutput(this->shell_->getInput(), Shell::Command); 349 342 } 350 343 … … 437 430 438 431 // now adjust the text lines... 439 this->desiredTextWidth_ = static_cast<int>(this->windowW_ * this->relativeWidth) - 12;432 this->desiredTextWidth_ = static_cast<int>(this->windowW_ * this->relativeWidth) - 24; 440 433 441 434 if (LINES > 0) … … 566 559 switch (type) 567 560 { 568 case Shell::Error: colourTop = ColourValue(0.95f, 0.25f, 0.25f, 1.00f); 569 colourBottom = ColourValue(1.00f, 0.50f, 0.50f, 1.00f); break; 570 571 case Shell::Warning: colourTop = ColourValue(0.95f, 0.50f, 0.20f, 1.00f); 572 colourBottom = ColourValue(1.00f, 0.70f, 0.50f, 1.00f); break; 573 574 case Shell::Info: colourTop = ColourValue(0.50f, 0.50f, 0.95f, 1.00f); 575 colourBottom = ColourValue(0.80f, 0.80f, 1.00f, 1.00f); break; 576 577 case Shell::Debug: colourTop = ColourValue(0.65f, 0.48f, 0.44f, 1.00f); 578 colourBottom = ColourValue(1.00f, 0.90f, 0.90f, 1.00f); break; 579 580 case Shell::Verbose: colourTop = ColourValue(0.40f, 0.20f, 0.40f, 1.00f); 581 colourBottom = ColourValue(0.80f, 0.60f, 0.80f, 1.00f); break; 582 583 case Shell::Ultra: colourTop = ColourValue(0.21f, 0.69f, 0.21f, 1.00f); 584 colourBottom = ColourValue(0.80f, 1.00f, 0.80f, 1.00f); break; 585 586 case Shell::Command: colourTop = ColourValue(0.80f, 0.80f, 0.80f, 1.00f); 587 colourBottom = ColourValue(0.90f, 0.90f, 0.90f, 0.90f); break; 588 589 case Shell::Hint: colourTop = ColourValue(0.80f, 0.80f, 0.80f, 1.00f); 590 colourBottom = ColourValue(0.90f, 0.90f, 0.90f, 1.00f); break; 591 592 case Shell::TDebug: colourTop = ColourValue(0.90f, 0.00f, 0.90f, 1.00f); 593 colourBottom = ColourValue(1.00f, 0.00f, 1.00f, 1.00f); break; 594 595 default: colourTop = ColourValue(0.90f, 0.90f, 0.90f, 1.00f); 596 colourBottom = ColourValue(1.00f, 1.00f, 1.00f, 1.00f); break; 597 } 561 case Shell::Message: 562 case Shell::DebugOutput: colourTop = ColourValue(0.9f, 0.9f, 0.9f); break; 563 564 case Shell::UserError: colourTop = ColourValue(0.9f, 0.0f, 0.0f); break; 565 case Shell::UserWarning: colourTop = ColourValue(0.9f, 0.5f, 0.0f); break; 566 case Shell::UserStatus: colourTop = ColourValue(0.0f, 0.9f, 0.0f); break; 567 case Shell::UserInfo: colourTop = ColourValue(0.0f, 0.8f, 0.8f); break; 568 569 case Shell::InternalError: colourTop = ColourValue(0.5f, 0.0f, 0.0f); break; 570 case Shell::InternalWarning: colourTop = ColourValue(0.5f, 0.2f, 0.0f); break; 571 case Shell::InternalStatus: colourTop = ColourValue(0.0f, 0.5f, 0.0f); break; 572 case Shell::InternalInfo: colourTop = ColourValue(0.0f, 0.4f, 0.4f); break; 573 574 case Shell::Verbose: colourTop = ColourValue(0.3f, 0.3f, 0.9f); break; 575 case Shell::VerboseMore: colourTop = ColourValue(0.2f, 0.2f, 0.7f); break; 576 case Shell::VerboseUltra: colourTop = ColourValue(0.1f, 0.1f, 0.5f); break; 577 578 case Shell::Command: colourTop = ColourValue(0.8f, 0.2f, 0.8f); break; 579 case Shell::Hint: colourTop = ColourValue(0.4f, 0.0f, 0.4f); break; 580 case Shell::Input: colourTop = ColourValue(0.9f, 0.9f, 0.9f); break; 581 582 default: colourTop = ColourValue(0.5f, 0.5f, 0.5f); break; 583 } 584 585 colourBottom = ColourValue(sqrt(colourTop.r), sqrt(colourTop.g), sqrt(colourTop.b)); 598 586 599 587 this->consoleOverlayTextAreas_[index]->setColourTop (colourTop); -
code/trunk/src/orxonox/overlays/InGameConsole.h
r7284 r8858 64 64 65 65 void linesChanged(); 66 void onlyLastLineChanged();67 66 void lineAdded(); 68 67 void inputChanged(); -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r8706 r8858 147 147 148 148 if (OrxonoxOverlay::overlays_s.find(this->getName()) != OrxonoxOverlay::overlays_s.end()) 149 COUT(1) << "Overlay names should be unique or you cannnot access them via console. Name: \"" << this->getName() << '"' << std::endl;149 orxout(internal_warning) << "Overlay names should be unique or you cannnot access them via console. Name: \"" << this->getName() << '"' << endl; 150 150 151 151 OrxonoxOverlay::overlays_s[this->getName()] = this; … … 362 362 { 363 363 overlay->hide(); 364 COUT(4) << "HIDE " << name << std::endl;364 orxout(verbose, context::misc::overlays) << "HIDE " << name << endl; 365 365 } 366 366 else 367 367 { 368 368 overlay->show(); 369 COUT(4) << "SHOW " << name << std::endl;369 orxout(verbose, context::misc::overlays) << "SHOW " << name << endl; 370 370 } 371 371 } -
code/trunk/src/orxonox/pickup/PickupIdentifier.cc
r7494 r8858 51 51 52 52 if(pickup == NULL) 53 COUT(1) << "Error, PickupIdentifier was created without a valid Pickupable." << std::endl;53 orxout(internal_error, context::pickups) << "PickupIdentifier was created without a valid Pickupable." << endl; 54 54 55 55 this->pickup_ = pickup; … … 83 83 if(!(this->parameters_.size() == identifier->parameters_.size())) 84 84 { 85 COUT(1) << "Something went wrong in PickupIdentifier!" << std::endl;85 orxout(internal_error, context::pickups) << "Something went wrong in PickupIdentifier!" << endl; 86 86 return this->parameters_.size()-identifier->parameters_.size(); 87 87 } … … 93 93 if(identifier->parameters_.find(it->first) == identifier->parameters_.end()) 94 94 { 95 COUT(1) << "Something went wrong in PickupIdentifier!" << std::endl;95 orxout(internal_error, context::pickups) << "Something went wrong in PickupIdentifier!" << endl; 96 96 return -1; 97 97 } … … 115 115 bool PickupIdentifier::addParameter(std::string & name, std::string & value) 116 116 { 117 COUT(4) << "PickupIdentifier " << name << ", " << value << std::endl;117 orxout(verbose, context::pickups) << "PickupIdentifier " << name << ", " << value << endl; 118 118 119 119 if(!(this->parameters_.find(name) == this->parameters_.end())) 120 120 { 121 COUT(4) << "Request for adding a parameter that already exists for the PickupIdentififer was denied. name: '" << name << "', value: '" << value << "'."<< std::endl;121 orxout(verbose, context::pickups) << "Request for adding a parameter that already exists for the PickupIdentififer was denied. name: '" << name << "', value: '" << value << "'."<< endl; 122 122 return false; 123 123 } -
code/trunk/src/orxonox/sound/AmbientSound.cc
r8706 r8858 94 94 this->setSource(path); 95 95 else 96 COUT(3) << "Sound: " << this->ambientSource_ << ": Not a valid name! Ambient sound will not change." << std::endl;96 orxout(internal_warning, context::sound) << this->ambientSource_ << ": Not a valid name! Ambient sound will not change." << endl; 97 97 } 98 98 } -
code/trunk/src/orxonox/sound/BaseSound.cc
r8729 r8858 94 94 alSourcePlay(this->audioSource_); 95 95 if (int error = alGetError()) 96 COUT(2) << "Sound: Error playing sound: " << SoundManager::getALErrorString(error) << std::endl;96 orxout(internal_error, context::sound) << "Error playing sound: " << SoundManager::getALErrorString(error) << endl; 97 97 } 98 98 } … … 147 147 alSource3f(this->audioSource_, AL_DIRECTION, 0, 0, 0); 148 148 if (ALint error = alGetError()) 149 COUT(2) << "Sound Warning:Setting source parameters to 0 failed: "150 << SoundManager::getALErrorString(error) << std::endl;149 orxout(internal_warning, context::sound) << "Setting source parameters to 0 failed: " 150 << SoundManager::getALErrorString(error) << endl; 151 151 assert(this->soundBuffer_ != NULL); 152 152 alSourcei(this->audioSource_, AL_BUFFER, this->soundBuffer_->getBuffer()); 153 153 if (ALuint error = alGetError()) 154 COUT(1) << "Sound Error: Could not set buffer \"" << this->source_ << "\": " << SoundManager::getALErrorString(error) << std::endl;154 orxout(internal_error, context::sound) << "Could not set buffer \"" << this->source_ << "\": " << SoundManager::getALErrorString(error) << endl; 155 155 } 156 156 … … 159 159 this->volume_ = clamp(vol, 0.0f, 1.0f); 160 160 if (this->volume_ != vol) 161 COUT(2) << "Sound warning: volume out of range, clamping value." << std::endl;161 orxout(internal_warning, context::sound) << "Volume out of range, clamping value." << endl; 162 162 this->updateVolume(); 163 163 } … … 170 170 alSourcef(this->audioSource_, AL_GAIN, volume); 171 171 if (int error = alGetError()) 172 COUT(2) << "Sound:Error setting volume to " << volume173 << ": " << SoundManager::getALErrorString(error) << std::endl;172 orxout(internal_error, context::sound) << "Error setting volume to " << volume 173 << ": " << SoundManager::getALErrorString(error) << endl; 174 174 } 175 175 } … … 186 186 if (pitch > 2 || pitch < 0.5f) 187 187 { 188 COUT(2) << "Sound warning: pitch out of range, cropping value." << std::endl;188 orxout(internal_warning, context::sound) << "Pitch out of range, cropping value." << endl; 189 189 pitch = pitch > 2.0f ? 2.0f : pitch; 190 190 pitch = pitch < 0.5f ? 0.5f : pitch; … … 195 195 alSourcef(this->audioSource_, AL_PITCH, pitch); 196 196 if (int error = alGetError()) 197 COUT(2) << "Sound: Error setting pitch: " << SoundManager::getALErrorString(error) << std::endl;197 orxout(internal_error, context::sound) << "Error setting pitch: " << SoundManager::getALErrorString(error) << endl; 198 198 } 199 199 } … … 240 240 if (ALuint error = alGetError()) 241 241 { 242 COUT(1) << "Sound Error: Could not set buffer \"" << source << "\": " << SoundManager::getALErrorString(error) << std::endl;242 orxout(internal_error, context::sound) << "Could not set buffer \"" << source << "\": " << SoundManager::getALErrorString(error) << endl; 243 243 return; 244 244 } … … 248 248 alSourcePlay(this->audioSource_); 249 249 if (int error = alGetError()) 250 COUT(2) << "Sound: Error playing sound: " << SoundManager::getALErrorString(error) << std::endl;250 orxout(internal_error, context::sound) << "Error playing sound: " << SoundManager::getALErrorString(error) << endl; 251 251 if (this->isPaused()) 252 252 alSourcePause(this->audioSource_); -
code/trunk/src/orxonox/sound/SoundBuffer.cc
r8351 r8858 51 51 if (fileInfo == NULL) 52 52 { 53 COUT(2) << "Sound: Warning: Sound file '" << filename << "' not found" << std::endl;53 orxout(internal_error, context::sound) << "Sound file '" << filename << "' not found" << endl; 54 54 return; 55 55 } … … 144 144 if (ret < 0) 145 145 { 146 COUT(2) << "Sound: libvorbisfile: File does not seem to be an Ogg Vorbis bitstream" << std::endl;146 orxout(internal_error, context::sound) << "libvorbisfile: File does not seem to be an Ogg Vorbis bitstream" << endl; 147 147 ov_clear(&vf); 148 148 ThrowException(General, "Sound Error: Ogg file loader failed when opening the bitstream"); … … 160 160 else if (ret < 0) 161 161 { 162 COUT(2) << "Sound: libvorbisfile: error reading the file" << std::endl;162 orxout(internal_error, context::sound) << "libvorbisfile: error reading the file" << endl; 163 163 ov_clear(&vf); 164 164 ThrowException(General, "Sound Error: Ogg file loader failed when decoding the file"); -
code/trunk/src/orxonox/sound/SoundManager.cc
r8521 r8858 71 71 RegisterRootObject(SoundManager); 72 72 73 orxout(user_status) << "Loading sound" << endl; 74 73 75 this->bDestructorCalled_ = false; 74 76 … … 89 91 std::string renderDevice; 90 92 SetConfigValue(renderDevice, std::string(device)).description("Sound device used for rendering"); 91 COUT(4) << "Sound: Available devices: ";93 orxout(verbose, context::sound) << "Sound: Available devices: "; 92 94 while (true) 93 95 { 94 96 this->deviceNames_.push_back(devices); 95 COUT(4) << '"' << devices << "\", ";97 orxout(verbose, context::sound) << '"' << devices << "\", "; 96 98 devices += strlen(devices) + 1; 97 99 if (*devices == '\0') 98 100 break; 99 101 } 100 COUT(4) << std::endl;102 orxout(verbose, context::sound) << endl; 101 103 102 104 // Open the selected device 103 COUT(3) << "Sound: Opening device \"" << renderDevice << '\' << std::endl;105 orxout(internal_info, context::sound) << "Sound: Opening device \"" << renderDevice << '\' << endl; 104 106 this->device_ = alcOpenDevice(renderDevice.c_str()); 105 107 */ … … 122 124 // Get some information about the sound 123 125 if (const char* version = alGetString(AL_VERSION)) 124 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl;126 orxout(internal_info, context::sound) << "Sound: --- OpenAL Version: " << version << endl; 125 127 if (const char* vendor = alGetString(AL_VENDOR)) 126 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl;128 orxout(internal_info, context::sound) << "Sound: --- OpenAL Vendor : " << vendor << endl; 127 129 if (const char* types = alutGetMIMETypes(ALUT_LOADER_BUFFER)) 128 COUT(4) << "Sound: --- Supported MIME Types: " << types << std::endl;130 orxout(internal_info, context::sound) << "Sound: --- Supported MIME Types: " << types << endl; 129 131 else 130 COUT(2) << "Sound Warning: MIME Type retrieval failed: " << alutGetErrorString(alutGetError()) << std::endl;132 orxout(internal_warning, context::sound) << "MIME Type retrieval failed: " << alutGetErrorString(alutGetError()) << endl; 131 133 132 134 this->mute_[SoundType::All] = 1.0f; … … 152 154 resetPlaysSoundGuard.Dismiss(); 153 155 154 COUT(4) << "Sound: Initialisation complete" << std::endl;156 orxout(internal_status, context::sound) << "Sound: Initialisation complete" << endl; 155 157 } 156 158 … … 164 166 // If there are still used buffers around, well, that's just very bad... 165 167 if (this->soundBuffers_.size() != this->effectsPool_.size()) 166 COUT(1) << "Sound Error: Some sound buffers are still in use but OpenAL is about to shut down. Fix this!" << std::endl;168 orxout(internal_error, context::sound) << "Some sound buffers are still in use but OpenAL is about to shut down. Fix this!" << endl; 167 169 // Empty buffer pool and buffer list 168 170 this->effectsPool_.clear(); … … 171 173 // There should not be any sources in use anymore 172 174 if (!this->usedSoundSources_.empty()) 173 COUT(1) << "Sound Error: Some sound sources are still in use but OpenAL is about to shut down. Fix this!" << std::endl;175 orxout(internal_error, context::sound) << "Some sound sources are still in use but OpenAL is about to shut down. Fix this!" << endl; 174 176 while (!this->availableSoundSources_.empty()) 175 177 { … … 182 184 // Relieve context to destroy it 183 185 if (!alcMakeContextCurrent(NULL)) 184 COUT(1) << "Sound Error: Could not unset ALC context" << std::endl;186 orxout(internal_error, context::sound) << "Could not unset ALC context" << endl; 185 187 alcDestroyContext(this->context_); 186 188 if (ALCenum error = alcGetError(this->device_)) 187 189 { 188 190 if (error == AL_INVALID_OPERATION) 189 COUT(1) << "Sound Error: Could not destroy ALC context because it is the current one" << std::endl;191 orxout(internal_error, context::sound) << "Could not destroy ALC context because it is the current one" << endl; 190 192 else 191 COUT(1) << "Sound Error: Could not destroy ALC context because it is invalid" << std::endl;193 orxout(internal_error, context::sound) << "Could not destroy ALC context because it is invalid" << endl; 192 194 } 193 195 #ifdef AL_VERSION_1_1 194 196 if (!alcCloseDevice(this->device_)) 195 COUT(1) << "Sound Error: Could not destroy ALC device. This might be because there are still buffers in use!" << std::endl;197 orxout(internal_error, context::sound) << "Could not destroy ALC device. This might be because there are still buffers in use!" << endl; 196 198 #else 197 199 alcCloseDevice(this->device_); 198 200 #endif 199 201 if (!alutExit()) 200 COUT(1) << "Sound Error: Closing ALUT failed: " << alutGetErrorString(alutGetError()) << std::endl;202 orxout(internal_error, context::sound) << "Closing ALUT failed: " << alutGetErrorString(alutGetError()) << endl; 201 203 } 202 204 … … 244 246 if (crossFadeStep_ <= 0.0 || crossFadeStep_ >= 1.0 ) 245 247 { 246 COUT(2) << "Sound warning: fade step out of range, ignoring change." << std::endl;248 orxout(internal_warning, context::sound) << "Fade step out of range, ignoring change." << endl; 247 249 ResetConfigValue(crossFadeStep_); 248 250 } … … 253 255 float clampedVolume = clamp(this->volume_[type], 0.0f, 1.0f); 254 256 if (clampedVolume != this->volume_[type]) 255 COUT(2) << "Sound warning: Volume setting (" << type << ") out of range, clamping." << std::endl;257 orxout(internal_warning, context::sound) << "Volume setting (" << type << ") out of range, clamping." << endl; 256 258 this->updateVolume(type); 257 259 } … … 321 323 if (error == AL_INVALID_VALUE) 322 324 // @TODO: Follow this constantly appearing, nerve-racking warning 323 COUT(2) << "Sound: OpenAL: Invalid listener position" << std::endl;325 orxout(internal_error, context::sound) << "OpenAL: Invalid listener position" << endl; 324 326 } 325 327 … … 335 337 ALenum error = alGetError(); 336 338 if (error == AL_INVALID_VALUE) 337 COUT(2) << "Sound: OpenAL: Invalid listener orientation" << std::endl;339 orxout(internal_error, context::sound) << "OpenAL: Invalid listener orientation" << endl; 338 340 } 339 341 … … 346 348 if (it->first == newAmbient) 347 349 { 348 COUT(2) << "Sound warning: Will not play an AmbientSound twice." << std::endl;350 orxout(internal_warning, context::sound) << "Will not play an AmbientSound twice." << endl; 349 351 return; 350 352 } … … 520 522 catch (const std::exception& ex) 521 523 { 522 COUT(1) << ex.what() << std::endl;524 orxout(internal_error, context::sound) << ex.what() << endl; 523 525 return buffer; 524 526 } … … 614 616 alDeleteSources(1, &this->availableSoundSources_.back()); 615 617 if (alGetError()) 616 COUT(1) << "Sound Error: Failed to delete a source --> lost forever" << std::endl;618 orxout(internal_error, context::sound) << "Failed to delete a source --> lost forever" << endl; 617 619 this->availableSoundSources_.pop_back(); 618 620 } -
code/trunk/src/orxonox/sound/SoundStreamer.cc
r7163 r8858 51 51 if (ret < 0) 52 52 { 53 COUT(2) << "Sound: libvorbisfile: File does not seem to be an Ogg Vorbis bitstream" << std::endl;53 orxout(internal_error, context::sound) << "libvorbisfile: File does not seem to be an Ogg Vorbis bitstream" << endl; 54 54 ov_clear(&vf); 55 55 return; … … 77 77 else if (ret < 0) 78 78 { 79 COUT(2) << "Sound: libvorbisfile: error reading the file" << std::endl;79 orxout(internal_error, context::sound) << "libvorbisfile: error reading the file" << endl; 80 80 ov_clear(&vf); 81 81 return; … … 91 91 alGetSourcei(audioSource, AL_BUFFERS_PROCESSED, &processed); 92 92 if (ALint error = alGetError()) 93 COUT(2) << "Sound Warning:Couldn't get number of processed buffers: "94 << SoundManager::getALErrorString(error) << std::endl;93 orxout(internal_warning, context::sound) << "Couldn't get number of processed buffers: " 94 << SoundManager::getALErrorString(error) << endl; 95 95 96 96 if(processed > 0) … … 99 99 alSourceUnqueueBuffers(audioSource, processed, buffers); 100 100 if (ALint error = alGetError()) 101 COUT(2) << "Sound Warning:Couldn't unqueue buffers: "102 << SoundManager::getALErrorString(error) << std::endl;101 orxout(internal_warning, context::sound) << "Couldn't unqueue buffers: " 102 << SoundManager::getALErrorString(error) << endl; 103 103 104 104 for(int i = 0; i < processed; i++) … … 111 111 else if (ret < 0) 112 112 { 113 COUT(2) << "Sound: libvorbisfile: error reading the file" << std::endl;113 orxout(internal_error, context::sound) << "libvorbisfile: error reading the file" << endl; 114 114 ov_clear(&vf); 115 115 return; … … 121 121 alSourceQueueBuffers(audioSource, processed, buffers); 122 122 if (ALint error = alGetError()) 123 COUT(2) << "Sound Warning:Couldn't queue buffers: "124 << SoundManager::getALErrorString(error) << std::endl;123 orxout(internal_warning, context::sound) << "Couldn't queue buffers: " 124 << SoundManager::getALErrorString(error) << endl; 125 125 } 126 126 } -
code/trunk/src/orxonox/sound/WorldSound.cc
r8351 r8858 94 94 ALenum error = alGetError(); 95 95 if (error == AL_INVALID_VALUE) 96 COUT(2) << "Sound: OpenAL: Invalid sound position" << std::endl;96 orxout(internal_error, context::sound) << "OpenAL: Invalid sound position" << endl; 97 97 98 98 const Vector3& vel = this->getVelocity(); … … 100 100 error = alGetError(); 101 101 if (error == AL_INVALID_VALUE) 102 COUT(2) << "Sound: OpenAL: Invalid sound velocity" << std::endl;102 orxout(internal_error, context::sound) << "OpenAL: Invalid sound velocity" << endl; 103 103 104 104 const Vector3& direction = -this->getWorldOrientation().zAxis(); … … 106 106 error = alGetError(); 107 107 if (error == AL_INVALID_VALUE) 108 COUT(2) << "Sound: OpenAL: Invalid sound direction" << std::endl;108 orxout(internal_error, context::sound) << "OpenAL: Invalid sound direction" << endl; 109 109 } 110 110 } -
code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
r8706 r8858 188 188 this->munitiontype_ = identifier; 189 189 else 190 COUT(2) << "Warning: No munition class defined in WeaponMode " << this->getName() << std::endl;190 orxout(internal_warning) << "No munition class defined in WeaponMode " << this->getName() << endl; 191 191 this->updateMunition(); 192 192 } … … 249 249 Vector3 muzzleDirection; 250 250 muzzleDirection = target - this->muzzlePosition_; 251 // COUT(0) << "muzzleDirection " << muzzleDirection << endl;252 251 this->muzzleOrientation_ = (this->weapon_->getWorldOrientation() * WorldEntity::FRONT).getRotationTo(muzzleDirection) * this->weapon_->getWorldOrientation(); 253 252 } -
code/trunk/src/orxonox/worldentities/BigExplosion.cc
r7284 r8858 61 61 catch (const std::exception& ex) 62 62 { 63 COUT(1) << "Error: Couln't load particle effect in BigExplosion: " << ex.what() << std::endl;63 orxout(internal_error) << "Couldn't load particle effect in BigExplosion: " << ex.what() << endl; 64 64 this->initZero(); 65 65 } -
code/trunk/src/orxonox/worldentities/ControllableEntity.cc
r8706 r8858 457 457 } 458 458 else 459 COUT(2) << "Warning: ControllableEntity \"" << this->getName() << "\" already has a Controller." << std::endl;459 orxout(internal_warning) << "ControllableEntity \"" << this->getName() << "\" already has a Controller." << endl; 460 460 } 461 461 -
code/trunk/src/orxonox/worldentities/ExplosionChunk.cc
r7284 r8858 61 61 catch (const std::exception& ex) 62 62 { 63 COUT(1) << "Error: Couln't load particle effect in ExplosionChunk: " << ex.what() << std::endl;63 orxout(internal_error) << "Couldn't load particle effect in ExplosionChunk: " << ex.what() << endl; 64 64 this->fire_ = 0; 65 65 this->smoke_ = 0; -
code/trunk/src/orxonox/worldentities/MobileEntity.cc
r8727 r8858 189 189 if (type == WorldEntity::Static) 190 190 { 191 CCOUT(1) << "Error: Cannot tell a MobileEntity to have static collision type! Ignoring." << std::endl;191 orxout(internal_warning) << "Cannot tell a MobileEntity to have static collision type! Ignoring." << endl; 192 192 assert(false); // Only in debug mode 193 193 return false; -
code/trunk/src/orxonox/worldentities/SpawnPoint.cc
r8706 r8858 48 48 this->getGametype()->registerSpawnPoint(this); 49 49 else 50 COUT(1) << "Error: SpawnPoint has no Gametype" << std::endl;50 orxout(internal_error) << "SpawnPoint has no Gametype" << endl; 51 51 52 52 this->setSyncMode(ObjectDirection::None); -
code/trunk/src/orxonox/worldentities/StaticEntity.cc
r6417 r8858 63 63 if (this->addedToPhysicalWorld()) 64 64 { 65 CCOUT(2) << "Warning: Attempting to change the position of a StaticEntity at physics run time. Ignoring change." << std::endl;65 orxout(internal_warning) << "Attempting to change the position of a StaticEntity at physics run time. Ignoring change." << endl; 66 66 return; 67 67 } … … 80 80 if (this->addedToPhysicalWorld()) 81 81 { 82 CCOUT(2) << "Warning: Attempting to change the orientation of a StaticEntity at physics run time. Ignoring change." << std::endl;82 orxout(internal_warning) << "Attempting to change the orientation of a StaticEntity at physics run time. Ignoring change." << endl; 83 83 return; 84 84 } … … 97 97 if (type == WorldEntity::Kinematic || type == WorldEntity::Dynamic) 98 98 { 99 CCOUT(1) << "Error: Cannot tell a StaticEntity to have kinematic or dynamic collision type! Ignoring." << std::endl;99 orxout(internal_warning) << "Cannot tell a StaticEntity to have kinematic or dynamic collision type! Ignoring." << endl; 100 100 assert(false); // Only in debug mode 101 101 return false; -
code/trunk/src/orxonox/worldentities/WorldEntity.cc
r8706 r8858 95 95 this->collisionType_ = None; 96 96 this->collisionTypeSynchronised_ = None; 97 this->mass_ = 0;97 this->mass_ = 1.0f; 98 98 this->childrenMass_ = 0; 99 99 // Using bullet default values … … 311 311 this->collisionTypeSynchronised_ != None) 312 312 { 313 CCOUT(1) << "Error when collsion Type was received over network. Unknown enum value:" << this->collisionTypeSynchronised_ << std::endl;313 orxout(internal_error) << "Error when collsion Type was received over network. Unknown enum value:" << this->collisionTypeSynchronised_ << endl; 314 314 } 315 315 else if (this->collisionTypeSynchronised_ != collisionType_) 316 316 { 317 317 if (this->parent_) 318 CCOUT(2) << "Warning: Network connection tried to set the collision type of an attached WE. Ignoring." << std::endl;318 orxout(internal_warning) << "Network connection tried to set the collision type of an attached WE. Ignoring." << endl; 319 319 else 320 320 this->setCollisionType(this->collisionTypeSynchronised_); … … 373 373 if (object == this) 374 374 { 375 COUT(2) << "Warning: Can't attach a WorldEntity to itself." << std::endl;375 orxout(internal_warning) << "Can't attach a WorldEntity to itself." << endl; 376 376 return; 377 377 } … … 406 406 if (!newParent->hasPhysics()) 407 407 { 408 COUT(2) << "Warning: Cannot attach a physical object to a non physical one." << std::endl;408 orxout(internal_warning) << " Cannot attach a physical object to a non physical one." << endl; 409 409 return false; 410 410 } 411 411 else if (this->isDynamic()) 412 412 { 413 COUT(2) << "Warning: Cannot attach a dynamic object to a WorldEntity." << std::endl;413 orxout(internal_warning) << "Cannot attach a dynamic object to a WorldEntity." << endl; 414 414 return false; 415 415 } 416 416 else if (this->isKinematic() && newParent->isDynamic()) 417 417 { 418 COUT(2) << "Warning: Cannot attach a kinematic object to a dynamic one." << std::endl;418 orxout(internal_warning) << "Cannot attach a kinematic object to a dynamic one." << endl; 419 419 return false; 420 420 } 421 421 else if (this->isKinematic()) 422 422 { 423 COUT(2) << "Warning: Cannot attach a kinematic object to a static or kinematic one: Not yet implemented." << std::endl;423 orxout(internal_warning) << "Cannot attach a kinematic object to a static or kinematic one: Not yet implemented." << endl; 424 424 return false; 425 425 } … … 455 455 if (it == this->children_.end()) 456 456 { 457 CCOUT(2) << "Warning: Cannot detach an object that is not a child." << std::endl;457 orxout(internal_warning) << "Cannot detach an object that is not a child." << endl; 458 458 return; 459 459 } … … 799 799 if (this->parent_) 800 800 { 801 CCOUT(2) << "Warning: Cannot set the collision type of a WorldEntity with a parent." << std::endl;801 orxout(internal_warning) << "Cannot set the collision type of a WorldEntity with a parent." << endl; 802 802 return; 803 803 } … … 822 822 if (!this->node_->getScale().positionEquals(Vector3(1, 1, 1), 0.001)) 823 823 { 824 CCOUT(2) << "Warning: Cannot create a physical body if there is scaling applied to the node: Not yet implemented." << std::endl;824 orxout(internal_warning) << "Cannot create a physical body if there is scaling applied to the node: Not yet implemented." << endl; 825 825 return; 826 826 } … … 968 968 this->physicalBody_->setMassProps(0.0f, btVector3(0, 0, 0)); 969 969 } 970 else if ( (this->mass_ + this->childrenMass_)== 0.0f)970 else if (totalMass == 0.0f) 971 971 { 972 972 // Use default values to avoid very large or very small values 973 CCOUT(4) << "Warning: Setting the internal physical mass to 1.0 because mass_ is 0.0" << std::endl;973 orxout(internal_warning) << "Setting the internal physical mass to 1.0 because mass_ is 0.0" << endl; 974 974 btVector3 inertia(0, 0, 0); 975 975 this->collisionShape_->calculateLocalInertia(1.0f, inertia); -
code/trunk/src/orxonox/worldentities/pawns/FpsPlayer.cc
r7184 r8858 132 132 if (type != WorldEntity::Dynamic) 133 133 { 134 CCOUT(1) << "Error: Cannot tell a FpsPlayer not to be dynamic! Ignoring." << std::endl;134 orxout(internal_warning) << "Cannot tell a FpsPlayer not to be dynamic! Ignoring." << endl; 135 135 assert(false); // Only in debug mode 136 136 return false; -
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc
r8727 r8858 145 145 if (type != WorldEntity::Dynamic) 146 146 { 147 CCOUT(1) << "Error: Cannot tell a SpaceShip not to be dynamic! Ignoring." << std::endl;147 orxout(internal_warning) << "Cannot tell a SpaceShip not to be dynamic! Ignoring." << endl; 148 148 assert(false); // Only in debug mode 149 149 return false; … … 507 507 if (camera == 0) 508 508 { 509 COUT(2) << "Failed to reset camera!";509 orxout(internal_warning) << "Failed to reset camera!" << endl; 510 510 return; 511 511 }
Note: See TracChangeset
for help on using the changeset viewer.