Changeset 2023 for code/branches/objecthierarchy/src/orxonox/LevelManager.h
- Timestamp:
- Oct 27, 2008, 10:56:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/LevelManager.h
r2019 r2023 34 34 #include <list> 35 35 #include <map> 36 #include <cassert> 36 37 37 38 #include "network/ClientConnectionListener.h" … … 42 43 { 43 44 public: 44 static LevelManager& getInstance(); 45 LevelManager(); 46 virtual ~LevelManager(); 45 47 46 48 void requestActivity(Level* level); … … 52 54 { return this->clients_; } 53 55 56 static LevelManager& getInstance() { assert(singletonRef_s); return *singletonRef_s; } 57 54 58 private: 55 LevelManager(); 56 virtual ~LevelManager() {} 59 LevelManager(const LevelManager&); 57 60 58 61 void clientConnected(unsigned int clientID); … … 63 66 std::list<Level*> levels_s; 64 67 std::map<unsigned int, PlayerInfo*> clients_; 68 69 static LevelManager* singletonRef_s; 65 70 }; 66 71 }
Note: See TracChangeset
for help on using the changeset viewer.