orxonox::GamestateClient Class Reference

#include <src/network/GamestateClient.h>

Inheritance diagram for orxonox::GamestateClient:

orxonox::GamestateHandler

List of all members.

Public Member Functions

bool ack (unsigned int gamestateID, unsigned int clientID)
bool add (packet::Gamestate *gs, unsigned int clientID)
void cleanup ()
 GamestateClient ()
packet::GamestategetGamestate ()
bool processGamestates ()
 ~GamestateClient ()

Private Member Functions

void printGamestateMap ()
packet::GamestateprocessGamestate (packet::Gamestate *gs)
void removeObject (ObjectListIterator< Synchronisable > &it)
bool sendAck (unsigned int gamestateID)

Private Attributes

std::map< unsigned int,
packet::Gamestate * > 
gamestateMap_
unsigned int last_diff_
unsigned int last_gamestate_
packet::GamestatetempGamestate_


Constructor & Destructor Documentation

orxonox::GamestateClient::GamestateClient (  ) 

orxonox::GamestateClient::~GamestateClient (  ) 

References gamestateMap_, and tempGamestate_.


Member Function Documentation

bool orxonox::GamestateClient::ack ( unsigned int  gamestateID,
unsigned int  clientID 
) [virtual]

Implements orxonox::GamestateHandler.

Referenced by sendAck().

bool orxonox::GamestateClient::add ( packet::Gamestate gs,
unsigned int  clientID 
) [virtual]

void orxonox::GamestateClient::cleanup (  ) 

packet::Gamestate * orxonox::GamestateClient::getGamestate (  ) 

void orxonox::GamestateClient::printGamestateMap (  )  [private]

References COUT, and gamestateMap_.

packet::Gamestate * orxonox::GamestateClient::processGamestate ( packet::Gamestate gs  )  [private]

bool orxonox::GamestateClient::processGamestates (  ) 

void orxonox::GamestateClient::removeObject ( ObjectListIterator< Synchronisable > &  it  )  [private]

bool orxonox::GamestateClient::sendAck ( unsigned int  gamestateID  )  [private]


Member Data Documentation

std::map<unsigned int, packet::Gamestate *> orxonox::GamestateClient::gamestateMap_ [private]

unsigned int orxonox::GamestateClient::last_diff_ [private]

Referenced by GamestateClient().


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

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