Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2008, 2:24:33 PM (16 years ago)
Author:
rgrieder
Message:

Moved all showsGraphics, hasServer, etc. functions from Settings class to Core class.
This was necessary to avoid circular dependencies.

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  
    3434#include "core/CoreIncludes.h"
    3535#include "core/XMLPort.h"
     36#include "core/Core.h"
    3637
    37 #include "Settings.h"
    3838#include "GraphicsEngine.h"
    3939
     
    7272    void LevelInfo::setSkybox(const std::string& skybox)
    7373    {
    74         if (Settings::showsGraphics())
     74        if (Core::showsGraphics())
    7575            if (GraphicsEngine::getInstance().getLevelSceneManager())
    7676                GraphicsEngine::getInstance().getLevelSceneManager()->setSkyBox(true, skybox);
     
    8181    void LevelInfo::setAmbientLight(const ColourValue& colour)
    8282    {
    83         if (Settings::showsGraphics())
     83        if (Core::showsGraphics())
    8484            GraphicsEngine::getInstance().getLevelSceneManager()->setAmbientLight(colour);
    8585
  • code/branches/objecthierarchy/src/orxonox/objects/infos/PlayerInfo.cc

    r1947 r1949  
    3535#include "core/ConfigValueIncludes.h"
    3636#include "core/XMLPort.h"
     37#include "core/Core.h"
    3738
    3839#include "network/Host.h"
    3940
    40 #include "Settings.h"
    4141#include "GraphicsEngine.h"
    4242#include "objects/gametypes/Gametype.h"
     
    5151
    5252        this->ping_ = -1;
    53         this->bLocalPlayer_ = Settings::isStandalone();
     53        this->bLocalPlayer_ = Core::isStandalone();
    5454        this->bLocalPlayer_ = false;
    5555        this->bHumanPlayer_ = false;
     
    7878    {
    7979std::cout << "# PI(" << this->getObjectID() << "): checkName: " << this->bLocalPlayer_ << std::endl;
    80         if (this->bLocalPlayer_ && Settings::isMaster())
     80        if (this->bLocalPlayer_ && Core::isMaster())
    8181            this->setName(this->playerName_);
    8282    }
     
    114114//std::cout << "# PI(" << this->getObjectID() << "): checkClientID(): name: " << this->getName() << std::endl;
    115115
    116             if (Settings::isClient())
     116            if (Core::isClient())
    117117            {
    118118std::cout << "# PI(" << this->getObjectID() << "): checkClientID(): we're on a client: set object mode to bidirectional" << std::endl;
     
    134134    {
    135135std::cout << "# PI(" << this->getObjectID() << "): finishedSetup(): " << this->bFinishedSetup_ << std::endl;
    136         if (Settings::isClient())
     136        if (Core::isClient())
    137137        {
    138138std::cout << "# PI(" << this->getObjectID() << "): finishedSetup(): we're a client: finish setup" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.