Bridges-C++  3.1.1
Bridges(C++API)
Public Member Functions | List of all members
bridges::game::SocketConnection Class Reference

#include <SocketConnection.h>

Public Member Functions

 SocketConnection (bridges::Bridges &b)
 
void registerKeyListener (KeypressListener *p)
 
void forwardKeyUp (sio::event &e)
 
void forwardKeyDown (sio::event &e)
 
 ~SocketConnection ()
 
void sendCredentials ()
 
void on_connected ()
 
void on_close (sio::client::close_reason const &reason)
 
void on_fail ()
 
void on_announcement (std::string const &name, sio::message::ptr const &data, bool isAck, sio::message::list &ack_resp)
 
void wait_on_connection ()
 
void sendGameGrid (const GameGrid &gg)
 

Constructor & Destructor Documentation

◆ SocketConnection()

bridges::game::SocketConnection::SocketConnection ( bridges::Bridges b)
inline

◆ ~SocketConnection()

bridges::game::SocketConnection::~SocketConnection ( )
inline

Member Function Documentation

◆ forwardKeyDown()

void bridges::game::SocketConnection::forwardKeyDown ( sio::event &  e)
inline

◆ forwardKeyUp()

void bridges::game::SocketConnection::forwardKeyUp ( sio::event &  e)
inline

◆ on_announcement()

void bridges::game::SocketConnection::on_announcement ( std::string const &  name,
sio::message::ptr const &  data,
bool  isAck,
sio::message::list &  ack_resp 
)
inline

◆ on_close()

void bridges::game::SocketConnection::on_close ( sio::client::close_reason const &  reason)
inline

◆ on_connected()

void bridges::game::SocketConnection::on_connected ( )
inline

◆ on_fail()

void bridges::game::SocketConnection::on_fail ( )
inline

◆ registerKeyListener()

void bridges::game::SocketConnection::registerKeyListener ( KeypressListener p)
inline

◆ sendCredentials()

void bridges::game::SocketConnection::sendCredentials ( )
inline

◆ sendGameGrid()

void bridges::game::SocketConnection::sendGameGrid ( const GameGrid gg)
inline

◆ wait_on_connection()

void bridges::game::SocketConnection::wait_on_connection ( )
inline

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