Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 18, 2008, 10:58:46 PM (16 years ago)
Author:
landauf
Message:

did some first (and very unfinished) steps to deal with different players on server and client

Location:
code/branches/objecthierarchy/src/orxonox/gamestates
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSClient.cc

    r1907 r1940  
    5151    void GSClient::enter()
    5252    {
    53         Settings::_getInstance().bIsClient_ = true;
     53        Settings::_getInstance().setIsClient(true);
    5454
    5555        GSLevel::enter();
     
    8181        GSLevel::leave();
    8282
    83         Settings::_getInstance().bIsClient_ = false;
     83        Settings::_getInstance().setIsClient(false);
    8484    }
    8585
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSDedicated.cc

    r1790 r1940  
    5757    void GSDedicated::enter()
    5858    {
    59         Settings::_getInstance().bHasServer_ = true;
     59        Settings::_getInstance().setHasServer(true);
    6060
    6161        // create Ogre SceneManager for the level
     
    9797        Ogre::Root::getSingleton().destroySceneManager(this->sceneManager_);
    9898
    99         Settings::_getInstance().bHasServer_ = false;
     99        Settings::_getInstance().setHasServer(false);
    100100    }
    101101
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSGraphics.cc

    r1891 r1940  
    101101    void GSGraphics::enter()
    102102    {
    103         Settings::_getInstance().bShowsGraphics_ = true;
     103        Settings::_getInstance().setShowsGraphics(true);
    104104
    105105        // initialise graphics engine. Doesn't load the render window yet!
     
    196196        delete graphicsEngine_;
    197197
    198         Settings::_getInstance().bShowsGraphics_ = false;
     198        Settings::_getInstance().setShowsGraphics(false);
    199199    }
    200200
     
    221221        this->console_->tick(dt);
    222222        this->tickChild(time);
    223        
     223
    224224        unsigned long long timeAfterTick = time.getRealMicroseconds();
    225225
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSServer.cc

    r1910 r1940  
    5252    void GSServer::enter()
    5353    {
    54         Settings::_getInstance().bHasServer_ = true;
     54        Settings::_getInstance().setHasServer(true);
    5555
    5656        GSLevel::enter();
     
    8585
    8686        GSLevel::leave();
    87        
    88         Settings::_getInstance().bHasServer_ = false;
     87
     88        Settings::_getInstance().setHasServer(false);
    8989    }
    9090
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSStandalone.cc

    r1755 r1940  
    3232#include "core/input/InputManager.h"
    3333#include "core/ConsoleCommand.h"
     34#include "Settings.h"
    3435
    3536namespace orxonox
     
    5758        // level is loaded: we can start capturing the input
    5859        InputManager::getInstance().requestEnterState("game");
     60
     61        Settings::_getInstance().setIsStandalone(true);
    5962    }
    6063
     
    6871
    6972        GSLevel::leave();
     73
     74        Settings::_getInstance().setIsStandalone(false);
    7075    }
    7176
Note: See TracChangeset for help on using the changeset viewer.