|
Public Member Functions |
| void | connect (const NetAddress &_netAddress) |
| | Call this to connect the client to an address.
|
| void | connectString (const string &_ipAddressAndPortNumber) |
| | Call this to connect the client to an address specified by a string.
|
| void | disconnect () |
| | Disconnects the client. Can be called several times.
|
| void | doNetwork () |
| | Main method of the server. Must be called from main loop.
|
| int | getLocalUserID () |
| | Returns the syncableID of the local UserEntity. ID was assigned by the server.
|
| bool | getNetworkReadyForGame () |
| | Indicates if the network has received all information about added Syncables on the server.
|
| SyncableMap * | getSyncableMapP () |
| | Returns a pointer to the server's syncableMap.
|
| bool | isConnected () |
| | Check if the client is connected.
|
| void | ping () |
| | Sends a ping to determine the network latency. Ping is stored in public member variable 'pingTime'.
|
| void | processControlEvent (ControlEvent &) |
| | Sends the Control of a dispatched ControlEvent over the network.
|
| void | sendMessageClientBusy () |
| void | sendMessageClientReady () |
| | Call to indicate to the server that a game can begin.
|
| void | setContext (NetworkDevice *_networkDeviceP, Log *_networkLogP, Logic *_logicP) |
| | Prepares the client for use.
|
Static Public Member Functions |
| static void | createInstance () |
| | creates the singleton instance
|
| static void | destroyInstance () |
| | destroys the singleton instance
|
| static Client * | getInstance () |
| | accesses the singleton instance
|
| static bool | isActive () |
| | checks if the singleton is active
|
| static bool | isDestroyed () |
| | checks if the singleton is destroyed
|
| static bool | isVirgin () |
| | checks if the singleton has not been initialized
|
Public Attributes |
| GLfloat | pingTime |
Protected Member Functions |
| | Singleton () |
Static Protected Member Functions |
| static void | destroyedError () |
| static void | initInstance () |
Friends |
| class | ServerProxy |