Planeshift
psClientCharManager Class Reference

Manages character details for the client. More...

#include <psclientchar.h>

Public Member Functions

psCreationManagerGetCreation ()
 
GEMClientObjectGetTarget ()
 Gets the target of the character. More...
 
virtual void HandleMessage (MsgEntry *me)
 Handle messages from server. More...
 
bool Initialize (MsgHandler *msghandler, psCelClient *)
 
void LockTarget (bool state)
 locks the current target so it cannot be changed More...
 
 psClientCharManager (iObjectRegistry *objectreg)
 
bool Ready ()
 Returns true when the character has been acked on the server. More...
 
void SetTarget (GEMClientObject *newTarget, const char *action, bool notifyServer=true)
 Sets the target of the character. More...
 
virtual ~psClientCharManager ()
 
- Public Member Functions inherited from psClientNetSubscriber
virtual void HandleMessage (MsgEntry *msg, Client *)
 Interprets a received message and executes the command. More...
 
virtual bool Verify (MsgEntry *, unsigned int, Client *&)
 
virtual ~psClientNetSubscriber ()
 

Protected Member Functions

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

Protected Attributes

psCelClientcel
 
psCreationManagercharCreation
 
csHash< unsigned int, uint32_t > effectMapper
 
bool lockedTarget
 stores if target is locked More...
 
csRef< MsgHandlermsghandler
 
iObjectRegistry * objectReg
 
bool ready
 
GEMClientObjecttarget
 keeps track of what object you have targetted More...
 
unsigned int targetEffect
 keeps track of the target effect ID More...
 
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

psCelClient* psClientCharManager::cel
protected

Definition at line 154 of file psclientchar.h.

psCreationManager* psClientCharManager::charCreation
protected

Definition at line 146 of file psclientchar.h.

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

Definition at line 160 of file psclientchar.h.

bool psClientCharManager::lockedTarget
protected

stores if target is locked

Definition at line 158 of file psclientchar.h.

csRef<MsgHandler> psClientCharManager::msghandler
protected

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.

GEMClientObject* psClientCharManager::target
protected

keeps track of what object you have targetted

Definition at line 152 of file psclientchar.h.

unsigned int psClientCharManager::targetEffect
protected

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: