Changeset 1949 for code/branches/objecthierarchy/src/orxonox/objects/infos
- Timestamp:
- Oct 19, 2008, 2:24:33 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/objects/infos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/infos/LevelInfo.cc
r1947 r1949 34 34 #include "core/CoreIncludes.h" 35 35 #include "core/XMLPort.h" 36 #include "core/Core.h" 36 37 37 #include "Settings.h"38 38 #include "GraphicsEngine.h" 39 39 … … 72 72 void LevelInfo::setSkybox(const std::string& skybox) 73 73 { 74 if ( Settings::showsGraphics())74 if (Core::showsGraphics()) 75 75 if (GraphicsEngine::getInstance().getLevelSceneManager()) 76 76 GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(true, skybox); … … 81 81 void LevelInfo::setAmbientLight(const ColourValue& colour) 82 82 { 83 if ( Settings::showsGraphics())83 if (Core::showsGraphics()) 84 84 GraphicsEngine::getInstance().getLevelSceneManager()->setAmbientLight(colour); 85 85 -
code/branches/objecthierarchy/src/orxonox/objects/infos/PlayerInfo.cc
r1947 r1949 35 35 #include "core/ConfigValueIncludes.h" 36 36 #include "core/XMLPort.h" 37 #include "core/Core.h" 37 38 38 39 #include "network/Host.h" 39 40 40 #include "Settings.h"41 41 #include "GraphicsEngine.h" 42 42 #include "objects/gametypes/Gametype.h" … … 51 51 52 52 this->ping_ = -1; 53 this->bLocalPlayer_ = Settings::isStandalone();53 this->bLocalPlayer_ = Core::isStandalone(); 54 54 this->bLocalPlayer_ = false; 55 55 this->bHumanPlayer_ = false; … … 78 78 { 79 79 std::cout << "# PI(" << this->getObjectID() << "): checkName: " << this->bLocalPlayer_ << std::endl; 80 if (this->bLocalPlayer_ && Settings::isMaster())80 if (this->bLocalPlayer_ && Core::isMaster()) 81 81 this->setName(this->playerName_); 82 82 } … … 114 114 //std::cout << "# PI(" << this->getObjectID() << "): checkClientID(): name: " << this->getName() << std::endl; 115 115 116 if ( Settings::isClient())116 if (Core::isClient()) 117 117 { 118 118 std::cout << "# PI(" << this->getObjectID() << "): checkClientID(): we're on a client: set object mode to bidirectional" << std::endl; … … 134 134 { 135 135 std::cout << "# PI(" << this->getObjectID() << "): finishedSetup(): " << this->bFinishedSetup_ << std::endl; 136 if ( Settings::isClient())136 if (Core::isClient()) 137 137 { 138 138 std::cout << "# PI(" << this->getObjectID() << "): finishedSetup(): we're a client: finish setup" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.