- Timestamp:
- Oct 24, 2008, 2:48:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/infos/LevelInfo.h
r1940 r2006 37 37 38 38 #include "objects/gametypes/Gametype.h" 39 #include "network/ClientConnectionListener.h" 39 40 40 41 namespace orxonox 41 42 { 42 class _OrxonoxExport LevelInfo : public Info 43 class _OrxonoxExport LevelInfo : public Info, public network::ClientConnectionListener 43 44 { 44 45 public: … … 48 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 49 50 void registerVariables(); 51 52 inline const std::map<unsigned int, PlayerInfo*>& getClients() const 53 { return this->clients_; } 50 54 51 55 inline void setDescription(const std::string& description) … … 62 66 { return this->ambientLight_; } 63 67 64 void setGametype (const std::string& gametype);65 inline const std::string& getGametype () const68 void setGametypeString(const std::string& gametype); 69 inline const std::string& getGametypeString() const 66 70 { return this->gametype_; } 71 inline Gametype* getGametype() const 72 { return this->rootGametype_; } 73 74 static LevelInfo* getActiveLevelInfo(); 75 static void listPlayers(); 76 static PlayerInfo* getClient(unsigned int clientID); 67 77 68 78 private: 79 virtual void clientConnected(unsigned int clientID); 80 virtual void clientDisconnected(unsigned int clientID); 81 82 void applyLevel(); 83 69 84 void applySkybox() 70 85 { this->setSkybox(this->skybox_); } … … 72 87 { this->setAmbientLight(this->ambientLight_); } 73 88 89 std::map<unsigned int, PlayerInfo*> clients_; 74 90 std::string description_; 75 91 std::string skybox_; … … 77 93 std::string gametype_; 78 94 SubclassIdentifier<Gametype> gametypeIdentifier_; 79 Gametype* gametypeInstance_; 95 Gametype* rootGametype_; 96 std::string levelfile_; 80 97 }; 81 98 }
Note: See TracChangeset
for help on using the changeset viewer.