Takes care of network connection with the server, provides methods to connect, disconnect, ... More...
#include <ClientCx.hh>
Inheritance diagram for ClientCx:

Public Member Functions | |
| bool | connect (xml::XMLConfig &cfg) |
| Connect to the server. | |
| bool | join (xml::XMLConfig &cfg, const struct RuleDescription &desc) |
| Join a game on the server. | |
| bool | openLog (const std::string &filename) |
| Open a log file (for game replay). | |
| void | disconnect (bool send_abort=false) |
| Disconnect from the server, or close the log file. | |
| bool | isConnected () const |
| Is there currently a connection with the server. | |
| bool | process (bool block=false) |
| Main method to fetch and handle incoming packets. | |
| void | setRules (BaseCRules *rules) |
| Set Client rules. | |
| void | setClientGameId (int client_gid) |
| Set client game ID. | |
| void | setReady () |
| Set readyness. | |
Takes care of network connection with the server, provides methods to connect, disconnect, ...
| bool ClientCx::connect | ( | xml::XMLConfig & | cfg | ) |
Connect to the server.
| cfg | The client configuration. |
| bool ClientCx::join | ( | xml::XMLConfig & | cfg, | |
| const struct RuleDescription & | desc | |||
| ) |
Join a game on the server.
| cfg | The client configuration. | |
| desc | The rules description (usually loaded from dynamic library). |
| bool ClientCx::openLog | ( | const std::string & | filename | ) |
| bool ClientCx::process | ( | bool | block = false |
) |
Main method to fetch and handle incoming packets.
| void ClientCx::setReady | ( | ) |
Set readyness.
See how specific Rules handle this state, mostly useful for viewers.
1.4.7