Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 25, 2009, 7:37:00 PM (15 years ago)
Author:
rgrieder
Message:

Exported showsGraphics, etc. to a new class named GameMode in the core.

Location:
code/branches/gui/src/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/network/ClientConnectionListener.cc

    r2846 r2848  
    2929#include "ClientConnectionListener.h"
    3030#include "core/CoreIncludes.h"
    31 #include "core/Core.h"
     31#include "core/GameMode.h"
    3232
    3333namespace orxonox{
     
    3939
    4040  void ClientConnectionListener::getConnectedClients(){
    41     if(Core::showsGraphics())
     41    if(GameMode::showsGraphics())
    4242      this->clientConnected(0); //server client id
    4343    ClientInformation *client = ClientInformation::getBegin();
  • code/branches/gui/src/network/packet/Gamestate.cc

    r2773 r2848  
    3434#include "../synchronisable/Synchronisable.h"
    3535#include "../TrafficControl.h"
    36 #include "core/Core.h"
     36#include "core/GameMode.h"
    3737#include "core/CoreIncludes.h"
    3838#include "core/Iterator.h"
     
    162162    if(!s)
    163163    {
    164       if (!Core::isMaster())
     164      if (!GameMode::isMaster())
    165165      {
    166166        Synchronisable::fabricate(mem, mode);
  • code/branches/gui/src/network/synchronisable/SynchronisableVariable.cc

    r2798 r2848  
    3030#include <cstring>
    3131#include "util/Math.h"
    32 #include "core/Core.h"
     32#include "core/GameMode.h"
    3333
    3434
     
    4141  if ( state_ == 0x0 )
    4242  {
    43     state_ = Core::isMaster() ? 0x1 : 0x2;  // set the appropriate mode here
     43    state_ = GameMode::isMaster() ? 0x1 : 0x2;  // set the appropriate mode here
    4444  }
    4545}
Note: See TracChangeset for help on using the changeset viewer.