Planeshift
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

GEMClientActor Class Reference

This is a player or another 'alive' entity on the client. More...

#include <pscelclient.h>

List of all members.

Classes

struct  PostLoadData
 Post load data. More...

Public Member Functions

psCharAppearanceCharAppearance ()
virtual bool CheckLoadStatus ()
 Delayed mesh loading.
void CopyNewestData (GEMClientActor &oldActor)
 When receiving a psPersistActor message for the actor we currently control, some of our data (notably DRcounter) is probably newer than that sent by the server.
 GEMClientActor (psCelClient *cel, psPersistActor &mesg)
int GetAnimIndex (csStringHashReversible *msgstrings, csStringID animid)
 This optimal routine tries to get the animation index given an animation csStringID.
unsigned GetChatBubbleID () const
unsigned int GetGroupID ()
const char * GetGuildName ()
void GetLastPosition (csVector3 &pos, float &yrot, iSector *&sector)
 Get the last position of this object.
virtual int GetMasqueradeType ()
uint8_t GetMode ()
virtual const char * GetName (bool realName=true)
virtual GEMOBJECT_TYPE GetObjectType ()
EID GetOwnerEID ()
iSector * GetSector () const
 Get sector of entity.
const csVector3 GetVelocity () const
 Get the object velocity.
psClientVitalsGetVitalMgr ()
 Get the condition manager on this actor.
float GetYRotation () const
virtual bool IsAlive ()
 Indicate if this object is alive.
bool IsGroupedWith (GEMClientActor *actor)
bool IsOwnedBy (GEMClientActor *actor)
psLinearMovementMovement ()
 Get the movment system this object is using.
bool NeedDRUpdate (unsigned char &priority)
csVector3 Pos () const
void RefreshCal3d ()
 Reloads iSpriteCal3DState.
csVector3 Rot () const
void SendDRUpdate (unsigned char priority, csStringHashReversible *msgstrings)
void SetAlive (bool aliveFlag, bool newactor)
bool SetAnimation (const char *anim, int duration=0)
void SetAnimationVelocity (const csVector3 &velocity)
void SetChatBubbleID (unsigned int chatBubbleID)
void SetDRData (psDRMessage &drmsg)
void SetGroupID (unsigned int id)
void SetGuildName (const char *guild)
void SetIdleAnimation (const char *anim)
void SetMode (uint8_t mode, bool newactor=false)
void SetOwnerEID (EID id)
virtual void SetPosition (const csVector3 &pos, float rot, iSector *sector)
void SetVelocity (const csVector3 &vel)
 Set the velocity of the actor.
void SetYRotation (const float yrot)
 Set the rotation of the actor.
void StopMoving (bool worldVel=false)
virtual void Update ()
virtual ~GEMClientActor ()

Public Attributes

csHash< int, csStringID > anim_hash
csRef< CS::Mesh::iAnimatedMesh > animeshObject
float baseScale
csString BeltGroup
csString BracerGroup
csRef< iSpriteCal3DState > cal3dstate
csString CloakGroup
csString equipment
unsigned short gender
csString helmGroup
csTicks lastDRUpdateTime
csVector3 lastSentRotation
csVector3 lastSentVelocity
psLinearMovementlinmove
csString MounterAnim
csString mountFactname
float mountScale
csString partName
bool path_sent
csString race
float scale
csRef
< CS::Animation::iSkeletonSpeedNode > 
speedNode
bool stationary
csPDelArray< TraittraitList
csString traits
psClientVitalsvitalManager
 The Vital of the player with regards to his health/mana/fatigue/etc.

Protected Member Functions

void InitCharData (const char *textures, const char *equipment)
void SetCharacterMode (size_t id)
virtual void SwitchToRealMesh (iMeshWrapper *mesh)

Protected Attributes

bool alive
psCharAppearancecharApp
unsigned int chatBubbleID
uint8_t DRcounter
 increments in loop to prevent out of order packet overwrites of better data
bool DRcounter_set
csRef< iThreadReturn > factory
unsigned int groupID
csString guildName
int masqueradeType
csRef< iThreadReturn > mountFactory
size_t movementMode
EID ownerEID
PostLoadDatapost_load
csRef< iMeshWrapper > rider
uint8_t serverMode

Detailed Description

This is a player or another 'alive' entity on the client.

Definition at line 552 of file pscelclient.h.


Constructor & Destructor Documentation

GEMClientActor::GEMClientActor ( psCelClient cel,
psPersistActor mesg 
)
virtual GEMClientActor::~GEMClientActor ( ) [virtual]

Member Function Documentation

psCharAppearance* GEMClientActor::CharAppearance ( ) [inline]

Definition at line 636 of file pscelclient.h.

virtual bool GEMClientActor::CheckLoadStatus ( ) [virtual]

Delayed mesh loading.

Reimplemented from GEMClientObject.

void GEMClientActor::CopyNewestData ( GEMClientActor oldActor)

When receiving a psPersistActor message for the actor we currently control, some of our data (notably DRcounter) is probably newer than that sent by the server.

This function copies such data from our old actor into the replacement we just created.

Parameters:
oldActorThe actor to copy data from.
int GEMClientActor::GetAnimIndex ( csStringHashReversible *  msgstrings,
csStringID  animid 
)

This optimal routine tries to get the animation index given an animation csStringID.

unsigned GEMClientActor::GetChatBubbleID ( ) const
unsigned int GEMClientActor::GetGroupID ( ) [inline]

Definition at line 698 of file pscelclient.h.

const char* GEMClientActor::GetGuildName ( ) [inline]

Definition at line 622 of file pscelclient.h.

void GEMClientActor::GetLastPosition ( csVector3 &  pos,
float yrot,
iSector *&  sector 
)

Get the last position of this object.

Parameters:
posThe x,y,z location of the object. [CHANGED]
yrotThe Y-Axis rotation of the object. [CHANGED]
sectorThe sector of the object is in [CHANGED]
virtual int GEMClientActor::GetMasqueradeType ( ) [inline, virtual]

Reimplemented from GEMClientObject.

Definition at line 604 of file pscelclient.h.

uint8_t GEMClientActor::GetMode ( ) [inline]

Definition at line 647 of file pscelclient.h.

virtual const char* GEMClientActor::GetName ( bool  realName = true) [virtual]
virtual GEMOBJECT_TYPE GEMClientActor::GetObjectType ( ) [inline, virtual]

Reimplemented from GEMClientObject.

Definition at line 559 of file pscelclient.h.

EID GEMClientActor::GetOwnerEID ( ) [inline]

Definition at line 706 of file pscelclient.h.

iSector* GEMClientActor::GetSector ( ) const [virtual]

Get sector of entity.

Reimplemented from GEMClientObject.

const csVector3 GEMClientActor::GetVelocity ( ) const

Get the object velocity.

Returns:
The velocity of the object as a vector.
psClientVitals* GEMClientActor::GetVitalMgr ( ) [inline]

Get the condition manager on this actor.

Definition at line 611 of file pscelclient.h.

float GEMClientActor::GetYRotation ( ) const
void GEMClientActor::InitCharData ( const char *  textures,
const char *  equipment 
) [protected]
virtual bool GEMClientActor::IsAlive ( ) [inline, virtual]

Indicate if this object is alive.

Reimplemented from GEMClientObject.

Definition at line 600 of file pscelclient.h.

bool GEMClientActor::IsGroupedWith ( GEMClientActor actor)
bool GEMClientActor::IsOwnedBy ( GEMClientActor actor)
psLinearMovement& GEMClientActor::Movement ( )

Get the movment system this object is using.

bool GEMClientActor::NeedDRUpdate ( unsigned char &  priority)
csVector3 GEMClientActor::Pos ( ) const
void GEMClientActor::RefreshCal3d ( )

Reloads iSpriteCal3DState.

csVector3 GEMClientActor::Rot ( ) const
void GEMClientActor::SendDRUpdate ( unsigned char  priority,
csStringHashReversible *  msgstrings 
)
void GEMClientActor::SetAlive ( bool  aliveFlag,
bool  newactor 
)
bool GEMClientActor::SetAnimation ( const char *  anim,
int  duration = 0 
)
void GEMClientActor::SetAnimationVelocity ( const csVector3 &  velocity)
void GEMClientActor::SetCharacterMode ( size_t  id) [protected]
void GEMClientActor::SetChatBubbleID ( unsigned int  chatBubbleID)
void GEMClientActor::SetDRData ( psDRMessage drmsg)
void GEMClientActor::SetGroupID ( unsigned int  id) [inline]

Definition at line 702 of file pscelclient.h.

void GEMClientActor::SetGuildName ( const char *  guild) [inline]

Definition at line 626 of file pscelclient.h.

void GEMClientActor::SetIdleAnimation ( const char *  anim)
void GEMClientActor::SetMode ( uint8_t  mode,
bool  newactor = false 
)
void GEMClientActor::SetOwnerEID ( EID  id) [inline]

Definition at line 710 of file pscelclient.h.

virtual void GEMClientActor::SetPosition ( const csVector3 &  pos,
float  rot,
iSector *  sector 
) [virtual]
void GEMClientActor::SetVelocity ( const csVector3 &  vel)

Set the velocity of the actor.

void GEMClientActor::SetYRotation ( const float  yrot)

Set the rotation of the actor.

void GEMClientActor::StopMoving ( bool  worldVel = false)
virtual void GEMClientActor::SwitchToRealMesh ( iMeshWrapper *  mesh) [protected, virtual]
virtual void GEMClientActor::Update ( ) [virtual]

Reimplemented from GEMClientObject.


Member Data Documentation

bool GEMClientActor::alive [protected]

Definition at line 742 of file pscelclient.h.

csHash<int,csStringID> GEMClientActor::anim_hash

Definition at line 670 of file pscelclient.h.

csRef<CS::Mesh::iAnimatedMesh> GEMClientActor::animeshObject

Definition at line 660 of file pscelclient.h.

Definition at line 692 of file pscelclient.h.

Definition at line 683 of file pscelclient.h.

Definition at line 682 of file pscelclient.h.

csRef<iSpriteCal3DState> GEMClientActor::cal3dstate

Definition at line 659 of file pscelclient.h.

Definition at line 729 of file pscelclient.h.

Definition at line 731 of file pscelclient.h.

Definition at line 684 of file pscelclient.h.

uint8_t GEMClientActor::DRcounter [protected]

increments in loop to prevent out of order packet overwrites of better data

Definition at line 735 of file pscelclient.h.

Definition at line 736 of file pscelclient.h.

Definition at line 685 of file pscelclient.h.

csRef<iThreadReturn> GEMClientActor::factory [protected]

Definition at line 725 of file pscelclient.h.

Definition at line 690 of file pscelclient.h.

Definition at line 732 of file pscelclient.h.

csString GEMClientActor::guildName [protected]

Definition at line 734 of file pscelclient.h.

Definition at line 681 of file pscelclient.h.

Definition at line 689 of file pscelclient.h.

Definition at line 687 of file pscelclient.h.

Definition at line 687 of file pscelclient.h.

Definition at line 641 of file pscelclient.h.

Definition at line 744 of file pscelclient.h.

Definition at line 680 of file pscelclient.h.

Definition at line 679 of file pscelclient.h.

csRef<iThreadReturn> GEMClientActor::mountFactory [protected]

Definition at line 726 of file pscelclient.h.

Definition at line 693 of file pscelclient.h.

size_t GEMClientActor::movementMode [protected]

Definition at line 747 of file pscelclient.h.

EID GEMClientActor::ownerEID [protected]

Definition at line 733 of file pscelclient.h.

Definition at line 678 of file pscelclient.h.

Definition at line 688 of file pscelclient.h.

Definition at line 764 of file pscelclient.h.

Definition at line 677 of file pscelclient.h.

csRef<iMeshWrapper> GEMClientActor::rider [protected]

Definition at line 727 of file pscelclient.h.

Definition at line 691 of file pscelclient.h.

uint8_t GEMClientActor::serverMode [protected]

Definition at line 748 of file pscelclient.h.

csRef<CS::Animation::iSkeletonSpeedNode> GEMClientActor::speedNode

Definition at line 661 of file pscelclient.h.

Definition at line 688 of file pscelclient.h.

Definition at line 715 of file pscelclient.h.

Definition at line 686 of file pscelclient.h.

The Vital of the player with regards to his health/mana/fatigue/etc.

Definition at line 644 of file pscelclient.h.


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