Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Private Attributes | List of all members
orxonox::packet::FunctionCalls Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/network/packet/FunctionCalls.h>

Inheritance diagram for orxonox::packet::FunctionCalls:
orxonox::packet::Packet

Public Member Functions

 FunctionCalls ()
 
 FunctionCalls (uint8_t *data, unsigned int clientID)
 
 ~FunctionCalls ()
 
void addCall (uint32_t networkID, uint32_t objectID, const MultiType &mt1, const MultiType &mt2, const MultiType &mt3, const MultiType &mt4, const MultiType &mt5)
 
virtual unsigned int getSize () const override
 
virtual bool process (orxonox::Host *host) override
 
virtual bool send (orxonox::Host *host) override
 Send the Packet. More...
 
- Public Member Functions inherited from orxonox::packet::Packet
 Packet (const Packet &p)
 
virtual ~Packet ()
 Destroys a packet completely. More...
 
virtual unsigned char * getData ()
 
uint32_t getFlags ()
 
int getPeerID ()
 
uint32_t getRequiredGamestateID ()
 
bool isReliable ()
 
void setPeerID (int id)
 

Private Attributes

unsigned int clientID_
 
uint32_t currentSize_
 
std::queue< orxonox::FunctionCallfunctionCalls_
 
uint32_t minGamestateID_
 

Additional Inherited Members

- Static Public Member Functions inherited from orxonox::packet::Packet
static PacketcreatePacket (ENetPacket *packet, uint32_t peerID)
 Given an ENetPacket, create an Orxonox packet. More...
 
static void deletePacket (ENetPacket *packet)
 ENet calls this method whenever it wants to destroy a packet that contains data we allocated ourselves. More...
 
- Protected Member Functions inherited from orxonox::packet::Packet
 Packet ()
 
 Packet (uint8_t *data, unsigned int peerID)
 
bool isDataENetAllocated () const
 
- Protected Attributes inherited from orxonox::packet::Packet
bool bDataENetAllocated_
 Tells whether data_ was allocated by ENet or ourselves. More...
 
uint8_t * data_
 Pointer to the data. More...
 
uint32_t flags_
 
Direction packetDirection_
 
unsigned int peerID_
 
uint32_t requiredGamestateID_
 

Detailed Description

Author

Constructor & Destructor Documentation

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

Member Function Documentation

void orxonox::packet::FunctionCalls::addCall ( uint32_t  networkID,
uint32_t  objectID,
const MultiType mt1,
const MultiType mt2,
const MultiType mt3,
const MultiType mt4,
const MultiType mt5 
)
virtual unsigned int orxonox::packet::FunctionCalls::getSize ( void  ) const
inlineoverridevirtual
bool orxonox::packet::FunctionCalls::process ( orxonox::Host host)
overridevirtual
bool orxonox::packet::FunctionCalls::send ( orxonox::Host host)
overridevirtual

Send the Packet.

Parameters
hostThe host which sends the packet

Reimplemented from orxonox::packet::Packet.

Member Data Documentation

unsigned int orxonox::packet::FunctionCalls::clientID_
private
uint32_t orxonox::packet::FunctionCalls::currentSize_
private
std::queue<orxonox::FunctionCall> orxonox::packet::FunctionCalls::functionCalls_
private
uint32_t orxonox::packet::FunctionCalls::minGamestateID_
private

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