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/tools/Mesh.cc

    r1755 r1949  
    3232#include <sstream>
    3333#include <OgreSceneManager.h>
     34#include "core/Core.h"
    3435#include "GraphicsEngine.h"
    35 #include "Settings.h"
    3636
    3737namespace orxonox
     
    4848        std::ostringstream name;
    4949        name << (Mesh::meshCounter_s++);
    50         if (Settings::showsGraphics())
     50        if (Core::showsGraphics())
    5151            this->entity_ = GraphicsEngine::getInstance().getLevelSceneManager()->createEntity("Mesh" + name.str(), file);
    5252    }
     
    5454    Mesh::~Mesh()
    5555    {
    56         if (this->entity_ && Settings::showsGraphics())
     56        if (this->entity_ && Core::showsGraphics())
    5757            GraphicsEngine::getInstance().getLevelSceneManager()->destroyEntity(this->entity_);
    5858    }
Note: See TracChangeset for help on using the changeset viewer.