orxonox::GamestateManager Class Reference

#include <src/network/GamestateManager.h>

Inheritance diagram for orxonox::GamestateManager:

orxonox::GamestateHandler orxonox::Server

List of all members.

Public Member Functions

bool ack (unsigned int gamestateID, unsigned int clientID)
bool add (packet::Gamestate *gs, unsigned int clientID)
void finishGamestate (unsigned int clientID, packet::Gamestate **destgamestate, packet::Gamestate *base, packet::Gamestate *gamestate)
 GamestateManager ()
bool getSnapshot ()
bool processGamestates ()
void removeClient (ClientInformation *client)
void sendGamestates ()
bool update ()
 ~GamestateManager ()

Private Member Functions

bool processGamestate (packet::Gamestate *gs)

Private Attributes

std::map< unsigned int,
std::map< unsigned int,
packet::Gamestate * > > 
gamestateMap_
std::map< unsigned int,
packet::Gamestate * > 
gamestateQueue
unsigned int id_
ThreadPoolPool_
packet::Gamestatereference
TrafficControltrafficControl_


Detailed Description

This Class implements a manager for gamestates:

Constructor & Destructor Documentation

orxonox::GamestateManager::GamestateManager (  ) 

References trafficControl_.

orxonox::GamestateManager::~GamestateManager (  ) 


Member Function Documentation

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

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

Implements orxonox::GamestateHandler.

References gamestateQueue.

void orxonox::GamestateManager::finishGamestate ( unsigned int  clientID,
packet::Gamestate **  destgamestate,
packet::Gamestate base,
packet::Gamestate gamestate 
)

bool orxonox::GamestateManager::getSnapshot (  ) 

bool orxonox::GamestateManager::processGamestate ( packet::Gamestate gs  )  [private]

bool orxonox::GamestateManager::processGamestates (  ) 

void orxonox::GamestateManager::removeClient ( ClientInformation client  ) 

void orxonox::GamestateManager::sendGamestates (  ) 

bool orxonox::GamestateManager::update (  ) 


Member Data Documentation

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

unsigned int orxonox::GamestateManager::id_ [private]

Referenced by getSnapshot().


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