Emergency 20 Dokumentation  4.2.0
em5::multiplayer::server::ProxyClient Class Reference

EMERGENCY 5 multiplayer network client via proxy (server side multiplayer client instance) More...

#include <ProxyClient.h>

Inheritance diagram for em5::multiplayer::server::ProxyClient:
em5::multiplayer::server::ClientBase

Public Member Functions

 ProxyClient (proxy::MultiplayerProxyClient &serverConnection, uint8 proxySessionClientId)
 Constructor. More...
 
virtual ~ProxyClient ()
 Destructor. More...
 
virtual void disconnect () override
 
virtual void disconnect (bool force) override
 
virtual uint64 getId () const override
 
virtual bool sendData (const qsf::Clock &simulationClock, const qsf::game::BitStream &bitStream) override
 Send data. More...
 
virtual bool sendData (const qsf::game::BitStream &bitStream) override
 
- Public Member Functions inherited from em5::multiplayer::server::ClientBase
 ClientBase ()
 Default constructor. More...
 
virtual ~ClientBase ()
 Destructor. More...
 
uint32 getPlayerIndex () const
 
void setPlayerIndex (uint32 playerIndex)
 

Static Public Member Functions

static uint64 getIdFromProxySessionClientId (uint8 proxySessionClientId)
 
static bool isIdFromAProxyClient (uint64 clientId)
 

Additional Inherited Members

- Public Attributes inherited from em5::multiplayer::server::ClientBase
boost::signals2::signal< void(ClientBase &, const OperationMessage, uint64, const qsf::game::BitStream &)> receivedOperationMessage
 Called when a operation message is received from the client. More...
 
- Protected Member Functions inherited from em5::multiplayer::server::ClientBase
void onDataReceived (const qsf::game::BitStream &bitStream)
 Called, when data is received. More...
 

Detailed Description

EMERGENCY 5 multiplayer network client via proxy (server side multiplayer client instance)

Constructor & Destructor Documentation

em5::multiplayer::server::ProxyClient::ProxyClient ( proxy::MultiplayerProxyClient serverConnection,
uint8  proxySessionClientId 
)
explicit

Constructor.

Parameters
[in]serverConnectionThe server connection to be used for the communication
virtual em5::multiplayer::server::ProxyClient::~ProxyClient ( )
virtual

Destructor.

Member Function Documentation

virtual void em5::multiplayer::server::ProxyClient::disconnect ( )
overridevirtual
virtual void em5::multiplayer::server::ProxyClient::disconnect ( bool  force)
overridevirtual
virtual uint64 em5::multiplayer::server::ProxyClient::getId ( ) const
overridevirtual
static uint64 em5::multiplayer::server::ProxyClient::getIdFromProxySessionClientId ( uint8  proxySessionClientId)
static
static bool em5::multiplayer::server::ProxyClient::isIdFromAProxyClient ( uint64  clientId)
static
virtual bool em5::multiplayer::server::ProxyClient::sendData ( const qsf::Clock simulationClock,
const qsf::game::BitStream bitStream 
)
overridevirtual

Send data.

Note
This method is used to send ingame data (e.g. DataUpdate messages) to the clients, this special method is only needed to make the lokal client easier to implement because the local client does not need to always parse the message data to find out if it should record the data or not

Implements em5::multiplayer::server::ClientBase.

virtual bool em5::multiplayer::server::ProxyClient::sendData ( const qsf::game::BitStream bitStream)
overridevirtual

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