Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
orxonox::PlayerManager Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/orxonox/PlayerManager.h>

Inheritance diagram for orxonox::PlayerManager:
orxonox::Singleton< PlayerManager > orxonox::ClientConnectionListener orxonox::Listable orxonox::Identifiable

Public Member Functions

 PlayerManager ()
 
virtual ~PlayerManager ()
 
virtual void clientConnected (unsigned int clientID) override
 
virtual void clientDisconnected (unsigned int clientID) override
 
void disconnectAllClients ()
 
PlayerInfogetClient (unsigned int clientID) const
 
const std::map< unsigned int, PlayerInfo * > & getClients () const
 
- Public Member Functions inherited from orxonox::ClientConnectionListener
 ClientConnectionListener ()
 Constructor Register the object. More...
 
virtual ~ClientConnectionListener ()
 
- Public Member Functions inherited from orxonox::Listable
 Listable ()
 Constructor: Allocates space in the element list. More...
 
 Listable (Context *context)
 Constructor: Allocates space in the element list and assigns the context. More...
 
virtual ~Listable ()
 Destructor: Removes the object from the object-lists. More...
 
ContextgetContext () const
 
void setContext (Context *context)
 Changes the context. More...
 
void unregisterObject ()
 Removes this object from the object-lists. More...
 
- Public Member Functions inherited from orxonox::Identifiable
 Identifiable ()
 Constructor: Sets the default values. More...
 
virtual ~Identifiable ()
 
ORX_FORCEINLINE voidgetDerivedPointer (unsigned int classID)
 Returns a valid pointer of any derived type that is registered in the class hierarchy. More...
 
template<class T >
ORX_FORCEINLINE T * getDerivedPointer (unsigned int classID)
 Version of getDerivedPointer with template. More...
 
template<class T >
ORX_FORCEINLINE const T * getDerivedPointer (unsigned int classID) const
 Const version of getDerivedPointer with template. More...
 
IdentifiergetIdentifier () const
 Returns the Identifier of the object. More...
 
bool isA (const Identifier *identifier)
 Returns true if the object's class is of the given type or a derivative. More...
 
template<class B >
bool isA (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is of the given type or a derivative. More...
 
bool isA (const Identifiable *object)
 Returns true if the object's class is of the given type or a derivative. More...
 
bool isChildOf (const Identifier *identifier)
 Returns true if the object's class is a child of the given type. More...
 
template<class B >
bool isChildOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a child of the given type. More...
 
bool isChildOf (const Identifiable *object)
 Returns true if the object's class is a child of the given type. More...
 
bool isDirectChildOf (const Identifier *identifier)
 Returns true if the object's class is a direct child of the given type. More...
 
template<class B >
bool isDirectChildOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isDirectChildOf (const Identifiable *object)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isDirectParentOf (const Identifier *identifier)
 Returns true if the object's class is a direct parent of the given type. More...
 
template<class B >
bool isDirectParentOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a direct parent of the given type. More...
 
bool isDirectParentOf (const Identifiable *object)
 Returns true if the object's class is a direct child of the given type. More...
 
bool isExactlyA (const Identifier *identifier)
 Returns true if the object's class is exactly of the given type. More...
 
template<class B >
bool isExactlyA (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is exactly of the given type. More...
 
bool isExactlyA (const Identifiable *object)
 Returns true if the object's class is exactly of the given type. More...
 
bool isParentOf (const Identifier *identifier)
 Returns true if the object's class is a parent of the given type. More...
 
template<class B >
bool isParentOf (const SubclassIdentifier< B > *identifier)
 Returns true if the object's class is a parent of the given type. More...
 
bool isParentOf (const Identifiable *object)
 Returns true if the object's class is a parent of the given type. More...
 

Private Attributes

std::map< unsigned int, PlayerInfo * > clients_
 

Static Private Attributes

static PlayerManagersingletonPtr_s
 

Friends

class Singleton< PlayerManager >
 

Additional Inherited Members

- Static Public Member Functions inherited from orxonox::Singleton< PlayerManager >
static bool exists ()
 Tells whether the singleton has been created. More...
 
static PlayerManagergetInstance ()
 Returns a reference to the singleton instance. More...
 
- Static Public Member Functions inherited from orxonox::ClientConnectionListener
static void broadcastClientConnected (unsigned int clientID)
 Call clientConnected() on all ClientConnectionListeners. More...
 
static void broadcastClientDisconnected (unsigned int clientID)
 Call clientDisconnected() on all ClientConnectionListeners. More...
 
- Protected Member Functions inherited from orxonox::Singleton< PlayerManager >
 Singleton ()
 Constructor sets the singleton instance pointer. More...
 
virtual ~Singleton ()
 Destructor resets the singleton instance pointer. More...
 

Constructor & Destructor Documentation

orxonox::PlayerManager::PlayerManager ( )
orxonox::PlayerManager::~PlayerManager ( )
virtual

Member Function Documentation

void orxonox::PlayerManager::clientConnected ( unsigned int  clientID)
overridevirtual
void orxonox::PlayerManager::clientDisconnected ( unsigned int  clientID)
overridevirtual
void orxonox::PlayerManager::disconnectAllClients ( )
PlayerInfo * orxonox::PlayerManager::getClient ( unsigned int  clientID) const
const std::map<unsigned int, PlayerInfo*>& orxonox::PlayerManager::getClients ( ) const
inline

Friends And Related Function Documentation

friend class Singleton< PlayerManager >
friend

Member Data Documentation

std::map<unsigned int, PlayerInfo*> orxonox::PlayerManager::clients_
private
PlayerManager* orxonox::PlayerManager::singletonPtr_s
staticprivate

The documentation for this class was generated from the following files: