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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.