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/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.