orxonox::packet::Gamestate Class Reference

#include <src/network/packet/Gamestate.h>

Inheritance diagram for orxonox::packet::Gamestate:

orxonox::packet::Packet

List of all members.

Public Member Functions

bool collectData (int id, uint8_t mode=0x0)
bool compressData ()
bool decompressData ()
Gamestatediff (Gamestate *base)
GamestatedoSelection (unsigned int clientID, unsigned int targetSize)
 Gamestate (const Gamestate &g)
 Gamestate (uint8_t *data)
 Gamestate (uint8_t *data, unsigned int clientID)
 Gamestate ()
int32_t getBaseID () const
int32_t getID () const
bool isCompressed () const
bool isDiffed () const
bool operator== (packet::Gamestate gs)
bool spreadData (uint8_t mode=0x0)
Gamestateundiff (Gamestate *base)
 ~Gamestate ()

Private Member Functions

uint32_t calcGamestateSize (int32_t id, uint8_t mode=0x0)
virtual uint32_t getSize () const
virtual bool process ()
void rawDiff (uint8_t *newdata, uint8_t *data, uint8_t *basedata, uint32_t datalength, uint32_t baselength)

Private Attributes

std::list< objdataVector_
GamestateHeaderheader_


Detailed Description

Author:
Oliver Scheuss

Constructor & Destructor Documentation

orxonox::packet::Gamestate::Gamestate (  ) 

orxonox::packet::Gamestate::Gamestate ( uint8_t *  data,
unsigned int  clientID 
)

orxonox::packet::Gamestate::Gamestate ( uint8_t *  data  ) 

orxonox::packet::Gamestate::Gamestate ( const Gamestate g  ) 

orxonox::packet::Gamestate::~Gamestate (  ) 

References header_.


Member Function Documentation

uint32_t orxonox::packet::Gamestate::calcGamestateSize ( int32_t  id,
uint8_t  mode = 0x0 
) [private]

Referenced by collectData().

bool orxonox::packet::Gamestate::collectData ( int  id,
uint8_t  mode = 0x0 
)

bool orxonox::packet::Gamestate::compressData (  ) 

bool orxonox::packet::Gamestate::decompressData (  ) 

Gamestate * orxonox::packet::Gamestate::diff ( Gamestate base  ) 

Gamestate * orxonox::packet::Gamestate::doSelection ( unsigned int  clientID,
unsigned int  targetSize 
)

int32_t orxonox::packet::Gamestate::getBaseID (  )  const [inline]

int32_t orxonox::packet::Gamestate::getID (  )  const [inline]

uint32_t orxonox::packet::Gamestate::getSize (  )  const [private, virtual]

bool orxonox::packet::Gamestate::isCompressed (  )  const [inline]

bool orxonox::packet::Gamestate::isDiffed (  )  const [inline]

bool orxonox::packet::Gamestate::operator== ( packet::Gamestate  gs  ) 

bool orxonox::packet::Gamestate::process (  )  [inline, private, virtual]

void orxonox::packet::Gamestate::rawDiff ( uint8_t *  newdata,
uint8_t *  data,
uint8_t *  basedata,
uint32_t  datalength,
uint32_t  baselength 
) [private]

Referenced by diff(), and undiff().

bool orxonox::packet::Gamestate::spreadData ( uint8_t  mode = 0x0  ) 

Gamestate * orxonox::packet::Gamestate::undiff ( Gamestate base  ) 


Member Data Documentation

Referenced by collectData(), and doSelection().


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

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