Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2008, 10:56:51 PM (16 years ago)
Author:
rgrieder
Message:
  • Added support for dedicated server. Could not network test it yet, client still segfaults me.
  • Also kicked GraphicsEngine::levelSceneManager_, there are only the statistic methods left.
  • GSDedicated also derives from GSLevel, but GSLevel is not anymore a real GameState.
  • CameraHandler and LevelManager get created in GSLevel now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/LevelManager.h

    r2019 r2023  
    3434#include <list>
    3535#include <map>
     36#include <cassert>
    3637
    3738#include "network/ClientConnectionListener.h"
     
    4243    {
    4344        public:
    44             static LevelManager& getInstance();
     45            LevelManager();
     46            virtual ~LevelManager();
    4547
    4648            void requestActivity(Level* level);
     
    5254                { return this->clients_; }
    5355
     56            static LevelManager& getInstance() { assert(singletonRef_s); return *singletonRef_s; }
     57
    5458        private:
    55             LevelManager();
    56             virtual ~LevelManager() {}
     59            LevelManager(const LevelManager&);
    5760
    5861            void clientConnected(unsigned int clientID);
     
    6366            std::list<Level*> levels_s;
    6467            std::map<unsigned int, PlayerInfo*> clients_;
     68
     69            static LevelManager* singletonRef_s;
    6570    };
    6671}
Note: See TracChangeset for help on using the changeset viewer.