orxonox::HumanPlayer Class Reference

#include <src/orxonox/objects/infos/HumanPlayer.h>

Inheritance diagram for orxonox::HumanPlayer:

orxonox::PlayerInfo orxonox::Info orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

virtual void changedGametype ()
OverlayGroupgetGametypeHUD () const
const std::stringgetGametypeHUDTemplate () const
OverlayGroupgetHumanHUD () const
const std::stringgetHumanHUDTemplate () const
float getPacketLossRatio () const
float getPing () const
 HumanPlayer (BaseObject *creator)
bool isInitialized () const
 Returns if the object was initialized (passed the object registration).
void registerVariables ()
void setClientID (unsigned int clientID)
void setConfigValues ()
 Function to collect the SetConfigValue-macro calls.
void setGametypeHUDTemplate (const std::string &name)
void setHumanHUDTemplate (const std::string &name)
virtual ~HumanPlayer ()

Protected Member Functions

void configvaluecallback_changedHUDTemplate ()
void configvaluecallback_changednick ()
void networkcallback_changednick ()
void networkcallback_client_initialized ()
void networkcallback_clientIDchanged ()
void networkcallback_server_initialized ()
void updateGametypeHUD ()
void updateHumanHUD ()

Protected Attributes

bool client_initialized_
OverlayGroupgametypeHud_
std::string gametypeHudTemplate_
std::string hudtemplate_
OverlayGrouphumanHud_
std::string humanHudTemplate_
std::string nick_
bool server_initialized_
std::string synchronize_nick_


Constructor & Destructor Documentation

orxonox::HumanPlayer::HumanPlayer ( BaseObject creator  ) 

orxonox::HumanPlayer::~HumanPlayer (  )  [virtual]


Member Function Documentation

void orxonox::HumanPlayer::changedGametype (  )  [virtual]

void orxonox::HumanPlayer::configvaluecallback_changedHUDTemplate (  )  [protected]

References hudtemplate_, and setHumanHUDTemplate().

Referenced by setConfigValues().

void orxonox::HumanPlayer::configvaluecallback_changednick (  )  [protected]

OverlayGroup* orxonox::HumanPlayer::getGametypeHUD (  )  const [inline]

const std::string& orxonox::HumanPlayer::getGametypeHUDTemplate (  )  const [inline]

OverlayGroup* orxonox::HumanPlayer::getHumanHUD (  )  const [inline]

const std::string& orxonox::HumanPlayer::getHumanHUDTemplate (  )  const [inline]

float orxonox::HumanPlayer::getPacketLossRatio (  )  const [virtual]

float orxonox::HumanPlayer::getPing (  )  const [virtual]

bool orxonox::HumanPlayer::isInitialized (  )  const [virtual]

Returns if the object was initialized (passed the object registration).

Returns:
True was the object is initialized

Implements orxonox::PlayerInfo.

References client_initialized_, and server_initialized_.

Referenced by changedGametype().

void orxonox::HumanPlayer::networkcallback_changednick (  )  [protected]

void orxonox::HumanPlayer::networkcallback_client_initialized (  )  [protected]

void orxonox::HumanPlayer::networkcallback_clientIDchanged (  )  [protected]

void orxonox::HumanPlayer::networkcallback_server_initialized (  )  [protected]

References client_initialized_.

Referenced by registerVariables().

void orxonox::HumanPlayer::registerVariables (  ) 

void orxonox::HumanPlayer::setClientID ( unsigned int  clientID  ) 

void orxonox::HumanPlayer::setConfigValues (  ) 

Function to collect the SetConfigValue-macro calls.

Reimplemented from orxonox::OrxonoxClass.

References configvaluecallback_changedHUDTemplate(), configvaluecallback_changednick(), hudtemplate_, nick_, and SetConfigValue.

Referenced by HumanPlayer().

void orxonox::HumanPlayer::setGametypeHUDTemplate ( const std::string name  )  [inline]

Referenced by changedGametype().

void orxonox::HumanPlayer::setHumanHUDTemplate ( const std::string name  )  [inline]

void orxonox::HumanPlayer::updateGametypeHUD (  )  [protected]

void orxonox::HumanPlayer::updateHumanHUD (  )  [protected]


Member Data Documentation

Referenced by updateGametypeHUD().

Referenced by updateHumanHUD().


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

Generated on Tue Jul 28 16:22:36 2009 for Orxonox by  doxygen 1.5.6