|
Planeshift
|
Manages character details for the client. More...
#include <psclientchar.h>
Public Member Functions | |
| psCreationManager * | GetCreation () |
| GEMClientObject * | GetTarget () |
| 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 | |
| psCelClient * | cel |
| psCreationManager * | charCreation |
| csHash< unsigned int, uint32_t > | effectMapper |
| bool | lockedTarget |
| stores if target is locked More... | |
| csRef< MsgHandler > | msghandler |
| iObjectRegistry * | objectReg |
| bool | ready |
| GEMClientObject * | target |
| keeps track of what object you have targetted More... | |
| unsigned int | targetEffect |
| keeps track of the target effect ID More... | |
| 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 |
|
protected |
Change a trait on a character.
|
inline |
Definition at line 96 of file psclientchar.h.
|
inline |
|
protected |
Handle animation changes for things from the server.
|
protected |
Handle the effect message comming from the server.
|
protected |
|
protected |
Handle the equipment messages comming from the server.
|
virtual |
Handle messages from server.
Implements psClientNetSubscriber.
|
protected |
Handle the play sound message from the server.
|
protected |
Handle a rejection of a character.
|
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 |
|
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. |
|
protected |
Definition at line 154 of file psclientchar.h.
|
protected |
Definition at line 146 of file psclientchar.h.
Definition at line 160 of file psclientchar.h.
|
protected |
stores if target is locked
Definition at line 158 of file psclientchar.h.
|
protected |
Definition at line 142 of file psclientchar.h.
|
protected |
Definition at line 143 of file psclientchar.h.
|
protected |
Definition at line 155 of file psclientchar.h.
|
protected |
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.
|
protected |
Definition at line 144 of file psclientchar.h.