Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

psClientCharManager Class Reference

Manages character details for the client. More...

#include <psclientchar.h>

List of all members.

Public Member Functions

psCreationManagerGetCreation ()
GEMClientObjectGetTarget ()
 Gets the target of the character.
virtual void HandleMessage (MsgEntry *me)
 Handle messages from server.
bool Initialize (MsgHandler *msghandler, psCelClient *)
void LockTarget (bool state)
 locks the current target so it cannot be changed
 psClientCharManager (iObjectRegistry *objectreg)
bool Ready ()
 Returns true when the character has been acked on the server.
void SetTarget (GEMClientObject *newTarget, const char *action, bool notifyServer=true)
 Sets the target of the character.
virtual ~psClientCharManager ()

Protected Member Functions

void ChangeTrait (MsgEntry *me)
 Change a trait on a character.
void HandleAction (MsgEntry *me)
 Handle animation changes for things from the server.
void HandleEffect (MsgEntry *me)
 Handle the effect message comming from the server.
void HandleEffectStop (MsgEntry *me)
void HandleEquipment (MsgEntry *me)
 Handle the equipment messages comming from the server.
void HandlePlaySound (MsgEntry *me)
 Handle the play sound message from the server.
void HandleRejectCharMessage (MsgEntry *me)
 Handle a rejection of a character.
void HandleTargetUpdate (MsgEntry *me)
 Handle update target message from the server.

Protected Attributes

psCelClientcel
psCreationManagercharCreation
csHash< unsigned int, uint32_t > effectMapper
bool lockedTarget
 stores if target is locked
csRef< MsgHandlermsghandler
iObjectRegistry * objectReg
bool ready
GEMClientObjecttarget
 keeps track of what object you have targetted
unsigned int targetEffect
 keeps track of the target effect ID
csRef< iVFS > vfs

Detailed Description

Manages character details for the client.

This Manager handles things like applying the equipment/mesh changes to a gem object as well as targeting and effect issues.

Definition at line 83 of file psclientchar.h.


Constructor & Destructor Documentation

psClientCharManager::psClientCharManager ( iObjectRegistry *  objectreg)
virtual psClientCharManager::~psClientCharManager ( ) [virtual]

Member Function Documentation

void psClientCharManager::ChangeTrait ( MsgEntry me) [protected]

Change a trait on a character.

psCreationManager* psClientCharManager::GetCreation ( ) [inline]

Definition at line 96 of file psclientchar.h.

GEMClientObject* psClientCharManager::GetTarget ( ) [inline]

Gets the target of the character.

Returns:
the target.

Definition at line 116 of file psclientchar.h.

void psClientCharManager::HandleAction ( MsgEntry me) [protected]

Handle animation changes for things from the server.

void psClientCharManager::HandleEffect ( MsgEntry me) [protected]

Handle the effect message comming from the server.

void psClientCharManager::HandleEffectStop ( MsgEntry me) [protected]
void psClientCharManager::HandleEquipment ( MsgEntry me) [protected]

Handle the equipment messages comming from the server.

virtual void psClientCharManager::HandleMessage ( MsgEntry me) [virtual]

Handle messages from server.

Implements psClientNetSubscriber.

void psClientCharManager::HandlePlaySound ( MsgEntry me) [protected]

Handle the play sound message from the server.

void psClientCharManager::HandleRejectCharMessage ( MsgEntry me) [protected]

Handle a rejection of a character.

void psClientCharManager::HandleTargetUpdate ( MsgEntry me) [protected]

Handle update target message from the server.

bool psClientCharManager::Initialize ( MsgHandler msghandler,
psCelClient  
)
void psClientCharManager::LockTarget ( bool  state)

locks the current target so it cannot be changed

Parameters:
statethe desired state
bool psClientCharManager::Ready ( ) [inline]

Returns true when the character has been acked on the server.

Definition at line 91 of file psclientchar.h.

void psClientCharManager::SetTarget ( GEMClientObject newTarget,
const char *  action,
bool  notifyServer = true 
)

Sets the target of the character.

This will send a select message to the server to inform it of the change in target.

Parameters:
newTargetThe new target of the character, 0 to select nothing.
actionthe action string to send to the server
notifyServertrue if the server should be informed of the new target.

Member Data Documentation

Definition at line 154 of file psclientchar.h.

Definition at line 146 of file psclientchar.h.

csHash<unsigned int, uint32_t> psClientCharManager::effectMapper [protected]

Definition at line 160 of file psclientchar.h.

stores if target is locked

Definition at line 158 of file psclientchar.h.

Definition at line 142 of file psclientchar.h.

iObjectRegistry* psClientCharManager::objectReg [protected]

Definition at line 143 of file psclientchar.h.

bool psClientCharManager::ready [protected]

Definition at line 155 of file psclientchar.h.

keeps track of what object you have targetted

Definition at line 152 of file psclientchar.h.

keeps track of the target effect ID

Definition at line 149 of file psclientchar.h.

csRef<iVFS> psClientCharManager::vfs [protected]

Definition at line 144 of file psclientchar.h.


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