Planeshift
|
Manages character details for the client. More...
#include <psclientchar.h>
Public Member Functions | |
psCreationManager * | GetCreation () |
GEMClientObject * | GetTarget () |
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 | |
psCelClient * | cel |
psCreationManager * | charCreation |
csHash< unsigned int, uint32_t > | effectMapper |
bool | lockedTarget |
stores if target is locked | |
csRef< MsgHandler > | msghandler |
iObjectRegistry * | objectReg |
bool | ready |
GEMClientObject * | target |
keeps track of what object you have targetted | |
unsigned int | targetEffect |
keeps track of the target effect ID | |
csRef< iVFS > | vfs |
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.
psClientCharManager::psClientCharManager | ( | iObjectRegistry * | objectreg | ) |
virtual psClientCharManager::~psClientCharManager | ( | ) | [virtual] |
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.
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
state | the 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.
newTarget | The new target of the character, 0 to select nothing. |
action | the action string to send to the server |
notifyServer | true if the server should be informed of the new target. |
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.