Emergency 20 Dokumentation  4.2.0
em5::multiplayer::client::LocalHost Class Reference

EMERGENCY 5 multiplayer local host (a special client side multiplayer host instance for testing the de/serialisation parts of the MP communication) This instance hosts the game player and the command recorder. More...

#include <LocalHost.h>

Inheritance diagram for em5::multiplayer::client::LocalHost:
em5::multiplayer::client::HostBase

Public Member Functions

 LocalHost (const std::string &dataPath)
 Constructor. More...
 
virtual ~LocalHost ()
 Destructor. More...
 
virtual bool connect (const std::string &hostOrIpAddress, uint16 port) override
 
virtual bool sendData (const qsf::game::BitStream &bitStream) override
 Sends data to the host. More...
 
- Public Member Functions inherited from em5::multiplayer::client::HostBase
 HostBase ()
 Default constructor. More...
 
virtual ~HostBase ()
 Destructor. More...
 
virtual void shutdown ()
 

Additional Inherited Members

- Public Attributes inherited from em5::multiplayer::client::HostBase
boost::signals2::signal< void()> connected
 Called when the connection to the host is established. More...
 
boost::signals2::signal< void()> disconnected
 Called when the client is disconnected. More...
 
boost::signals2::signal< void()> unexpectedDisconnected
 Called when the client is disconnected unexpected. More...
 
boost::signals2::signal< void(const OperationMessage, uint32, const qsf::game::BitStream &)> receivedOperationMessage
 Called when a operation message is received from the host server. More...
 
- Protected Member Functions inherited from em5::multiplayer::client::HostBase
void onDataReceived (const qsf::game::BitStream &bitStream)
 Called, when data is received. More...
 

Detailed Description

EMERGENCY 5 multiplayer local host (a special client side multiplayer host instance for testing the de/serialisation parts of the MP communication) This instance hosts the game player and the command recorder.

Constructor & Destructor Documentation

em5::multiplayer::client::LocalHost::LocalHost ( const std::string &  dataPath)
explicit

Constructor.

Parameters
[in]dataPathThe path where the player will find the recorded data file (if any), and where the recorder will save the recorded data
virtual em5::multiplayer::client::LocalHost::~LocalHost ( )
virtual

Destructor.

Member Function Documentation

virtual bool em5::multiplayer::client::LocalHost::connect ( const std::string &  hostOrIpAddress,
uint16  port 
)
overridevirtual
virtual bool em5::multiplayer::client::LocalHost::sendData ( const qsf::game::BitStream bitStream)
overridevirtual

Sends data to the host.

Implements em5::multiplayer::client::HostBase.


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