clan::NetGameClient Class Reference

NetGameClient. More...

#include <client.h>

+ Inheritance diagram for clan::NetGameClient:

Public Member Functions

 NetGameClient ()
 
 ~NetGameClient ()
 
void connect (const std::string &server, const std::string &port)
 Connect. More...
 
void disconnect ()
 Disconnect. More...
 
void process_events ()
 Process events. More...
 
void send_event (const NetGameEvent &game_event)
 Send event. More...
 
Signal< void()> & sig_connected ()
 Sig connected. More...
 
Signal< void()> & sig_disconnected ()
 Sig disconnected. More...
 
Signal< void(const
NetGameEvent &)> & 
sig_event_received ()
 

Detailed Description

Constructor & Destructor Documentation

clan::NetGameClient::NetGameClient ( )
clan::NetGameClient::~NetGameClient ( )

Member Function Documentation

void clan::NetGameClient::connect ( const std::string server,
const std::string port 
)

Connect.

Parameters
server= String
port= String
void clan::NetGameClient::disconnect ( )

Disconnect.

void clan::NetGameClient::process_events ( )

Process events.

void clan::NetGameClient::send_event ( const NetGameEvent game_event)

Send event.

Parameters
game_event= Net Game Event
Signal<void()>& clan::NetGameClient::sig_connected ( )

Sig connected.

Returns
Signal<void()>
Signal<void()>& clan::NetGameClient::sig_disconnected ( )

Sig disconnected.

Returns
Signal<void()>
Signal<void(const NetGameEvent &)>& clan::NetGameClient::sig_event_received ( )

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