#include <CaffeineGUIHelper.h>
Public Member Functions | |
CCaffeineGUIHelper (uint32 stuID, const int8 *name, uint32 nameLength, CaffeineGUID gameID) | |
CCaffeineGUIHelper. | |
~CCaffeineGUIHelper (void) | |
~CCaffeineGUIHelper | |
bool | Connect (const int8 *ipAddr=NULL) |
Connect. | |
void | Disconnect () |
Disconnect. | |
void | SendMove (const CMove *) |
SendMove. | |
void | DeclareInvalidMove (const CMove *) |
DeclareInvalidMove. | |
bool | IsEventPending () |
IsEventPending. | |
bool | GetNextEvent (CHelperEvent &event) |
GetNextEvent. | |
void | Process () |
Process. | |
bool | RegisterCustomEvent (uint32 msgType, uint32 helperEventType) |
RegisterCustomEvent. | |
const int8 *const | GetConnectError () const |
GetConnectError. | |
Protected Member Functions | |
bool | ConnectToClient (const int8 *ipAddr) |
ConnectAsPlayer. | |
void | PostIdentity () |
PostIdentity. |
Description: This class is a helper class that enables easy communication to a Caffeine Client.
Limitations: NONE
|
CCaffeineGUIHelper. Description: Class constructor
|
|
~CCaffeineGUIHelper Description: Class deconstructor Limitations: NONE |
|
Connect. Description: Connects to a Caffeine Client and authenticates this connection.
|
|
ConnectAsPlayer. Description: Connect to the Caffeine client
|
|
DeclareInvalidMove. Description: Declares a move to be invalid by sending the proper message to the Caffeine Client.
|
|
Disconnect. Description: Disconnects the GUI from the Caffeine Client.
|
|
GetConnectError. Description: Returns the last error message generated.
|
|
GetNextEvent. Description: Returns the next pending event.
|
|
IsEventPending. Description: Returns whether there is an event pending for the GUI to receive.
|
|
PostIdentity. Description: Posts the identity of this GUI to the Caffeine Client
|
|
Process. Description: Processes incoming messages from the Caffeine framework and converts pertinant ones into CHelperEvents.
|
|
RegisterCustomEvent. Description: Registers a custom event type that the GUI would like to receive in response to a Caffeine message type received.
|
|
SendMove. Description: Sends the move to the Caffeine Client.
|