- Timestamp:
- Oct 24, 2008, 2:48:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/gametypes/Gametype.h
r1989 r2006 36 36 #include "core/BaseObject.h" 37 37 #include "core/Identifier.h" 38 #include "network/ClientConnectionListener.h"39 38 #include "objects/worldentities/ControllableEntity.h" 40 39 41 40 namespace orxonox 42 41 { 43 class _OrxonoxExport Gametype : public BaseObject , public network::ClientConnectionListener42 class _OrxonoxExport Gametype : public BaseObject 44 43 { 45 44 friend class PlayerInfo; … … 49 48 virtual ~Gametype() {} 50 49 51 static Gametype* getCurrentGametype();52 static void listPlayers();53 54 inline const std::map<unsigned int, PlayerInfo*>& getClients() const55 { return this->clients_; }56 50 inline const std::set<PlayerInfo*>& getPlayers() const 57 51 { return this->players_; } 58 static PlayerInfo* getClient(unsigned int clientID);59 52 60 53 protected: 61 virtual void clientConnected(unsigned int clientID);62 virtual void clientDisconnected(unsigned int clientID);63 64 54 virtual void playerJoined(PlayerInfo* player); 65 55 virtual void playerLeft(PlayerInfo* player); … … 72 62 73 63 std::set<PlayerInfo*> players_; 74 std::map<unsigned int, PlayerInfo*> clients_;75 64 SubclassIdentifier<ControllableEntity> defaultPawn_; 76 65 };
Note: See TracChangeset
for help on using the changeset viewer.