#include <LocalPlayer.h>
Inheritance diagram for CLocalPlayer:

| Public Member Functions | |
| CLocalPlayer () | |
| CLocalPlayer. | |
| virtual | ~CLocalPlayer (void) | 
| ~CLocalPlayer | |
| bool | AttachListener (CBSock *) | 
| AttachListener. | |
| bool | DetachListener (CBSock *) | 
| DetachListener. | |
| void | DetachAllListeners () | 
| DetachAllListeners. | |
| Protected Member Functions | |
| void | AcceptListers (bool bAccept=true) | 
| VERSION CONTROL HISTORY 
 | |
| virtual bool | OnSpectatorMsg (CMessage *pMsg, uint32 iSpectatorNumber) | 
| OnSpectatorMsg. | |
| bool | OnInit () | 
| OnInit. | |
| bool | OnBackgroundProc () | 
| OnBackgroundProc. | |
| virtual void | OnMessageReceived (CMessage *pMsg) | 
| bool | OnMessageSent (CMessage *pMsg) | 
| OnMessageSent. | |
| bool | PostIdentity (uint32 uiRecipient=CAFFEINE_BROADCAST) | 
| PostIdentity. | |
| void | OnIdentMessage (const CIdentMessage *pMsg) | 
| OnIdentMessage. | |
Description: The Player class provides an interface for all player objects that communicate through the primary message loop.
Limitations:
| 
 | 
| CLocalPlayer. Description: The CLocalPlayer constructor initializes internal attributes. 
 
 | 
| 
 | 
| ~CLocalPlayer Description: The destructor has been included for maintenance purposes only. 
 
 | 
| 
 | 
| VERSION CONTROL HISTORY 
 
 
 Revision 1.2 2005/03/21 21:42:28 kjm266 CDescription and the CEID is now properly set. Get functions are now constant. Revision 1.1 2005/03/20 23:55:48 tcsvw5 Moved inline functions to a seperate file Revision 1.0 2005/02/03 20:39:04 cafene Added CVS expansion keywords to the template. | 
| 
 | 
| AttachListener. Description: This function attaches a listener to the LocalPlayer. When spectators (listeners) are attached to the player, they will received a copy of many of the outgoign and incoming messages. 
 
 
 | 
| 
 | 
| DetachAllListeners. Description: This function is used to detach all attached spectators from the CLocalPlayer object. 
 
 | 
| 
 | 
| DetachListener. Description: This function attempts to detach a particular listener from the CLocalPlayer object. 
 
 
 | 
| 
 | 
| OnBackgroundProc. Description: This handler function is called by the framework to allow for custom, low-priority processing. In this version, the process function of CBSocket class is called for each of the of the attached spectators. 
 
 Reimplemented from CPlayer. Reimplemented in CHumanPlayer. | 
| 
 | 
| OnIdentMessage. Description: This function processes all Identity family(MSG_IDENT_FAMILY) messages. 
 
 
 | 
| 
 | 
| OnInit. Description: The OnInit function is called right when the thread is started. This function posts the identification message to the system. 
 
 Reimplemented from CPlayer. Reimplemented in CHumanPlayer. | 
| 
 | 
| 
 
 Reimplemented from CPlayer. Reimplemented in CAIPlayer, CAIPlayer, and CHumanPlayer. | 
| 
 | 
| OnMessageSent. Description: This handler function is called by the framework when the client sends a message via the PostAMessage function to the host. The sent message is copied and forwared to the attched spectators, if any. 
 
 Reimplemented from CPlayer. | 
| 
 | ||||||||||||
| OnSpectatorMsg. Description: This function handler is called before message sent by a spectator is actually sent. This handler should be used to filter outgoing messages. 
 
 
 Reimplemented in CHumanPlayer. | 
| 
 | 
| PostIdentity. Description: This function is internal to the CLocalPlayer class. It creates a CIdentMessage filled with the player's associated identification attributes and sends the message to the specified receipient. 
 
 
 |