Planeshift
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

psPersistActor Class Reference

#include <messages.h>

List of all members.

Public Types

enum  Flags {
  NONE = 0, INVISIBLE = 1 << 0, INVINCIBLE = 1 << 1, NPC = 1 << 2,
  NAMEKNOWN = 1 << 3, IS_ALIVE = 1 << 4
}

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 psPersistActor (MsgEntry *me, NetBase::AccessPointers *accessPointers, bool forNPClient=false)
 psPersistActor (uint32_t clientnum, int type, int masqueradeType, bool control, const char *name, const char *guild, const char *factname, const char *matname, const char *race, const char *mountFactname, const char *MounterAnim, unsigned short int gender, float scale, float mountscale, const char *helmGroup, const char *BracerGroup, const char *BeltGroup, const char *CloakGroup, csVector3 collTop, csVector3 collBottom, csVector3 collOffset, const char *texParts, const char *equipmentParts, uint8_t counter, EID mappedid, csStringSet *msgstrings, psLinearMovement *linmove, uint8_t movementMode, uint8_t serverMode, PID playerID=0, uint32_t groupID=0, EID ownerEID=0, uint32_t flags=NONE, PID masterID=0, bool forNPClient=false)
void SetInstance (InstanceID instance)
 Used to insert instance into the message buffer after creation.
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string.

Static Public Member Functions

static uint32_t PeekEID (MsgEntry *me)
 Used to extract just the entity EID from the message.

Public Attributes

csString beltGroup
 Used for belt groupings.
csVector3 bottom
csString bracerGroup
 Used for bracers groupings.
csString cloakGroup
 Used for cloak groupings.
bool control
csString equipment
csString factname
uint32_t flags
unsigned short int gender
uint32_t groupID
csString guild
csString helmGroup
 Used for helm groupings.
InstanceID instance
int masqueradeType
PID masterID
csString matname
csString MounterAnim
 The anim to be used by the mounter.
csString mountFactname
float mountScale
 Stores the scale of the mounted actor.
csString name
csVector3 offset
EID ownerEID
PID playerID
int posInstance
 Remember the position of the instance field in the generated message.
int posPlayerID
 Remember the position the playerID in the generated message.
csString race
float scale
 Stores the scale of the actor. Total model scale.
uint8_t serverMode
csString texParts
csVector3 top
int type

Detailed Description

Definition at line 3352 of file messages.h.


Member Enumeration Documentation

Enumerator:
NONE 
INVISIBLE 

Used to inform super client. Clients will not get this < since actor is removed when invisible.

INVINCIBLE 

Used to inform super client.

NPC 

Set for NPCs.

NAMEKNOWN 

Used to tell the client if he knows this actor.

IS_ALIVE 

Used to tell the clients that this actor is alive.

Definition at line 3355 of file messages.h.


Constructor & Destructor Documentation

psPersistActor::psPersistActor ( uint32_t  clientnum,
int  type,
int  masqueradeType,
bool  control,
const char *  name,
const char *  guild,
const char *  factname,
const char *  matname,
const char *  race,
const char *  mountFactname,
const char *  MounterAnim,
unsigned short int  gender,
float  scale,
float  mountscale,
const char *  helmGroup,
const char *  BracerGroup,
const char *  BeltGroup,
const char *  CloakGroup,
csVector3  collTop,
csVector3  collBottom,
csVector3  collOffset,
const char *  texParts,
const char *  equipmentParts,
uint8_t  counter,
EID  mappedid,
csStringSet *  msgstrings,
psLinearMovement linmove,
uint8_t  movementMode,
uint8_t  serverMode,
PID  playerID = 0,
uint32_t  groupID = 0,
EID  ownerEID = 0,
uint32_t  flags = NONE,
PID  masterID = 0,
bool  forNPClient = false 
)
psPersistActor::psPersistActor ( MsgEntry me,
NetBase::AccessPointers accessPointers,
bool  forNPClient = false 
)

Member Function Documentation

static uint32_t psPersistActor::PeekEID ( MsgEntry me) [static]

Used to extract just the entity EID from the message.

psPersistActor::PSF_DECLARE_MSG_FACTORY ( )

Reimplemented from psDRMessage.

void psPersistActor::SetInstance ( InstanceID  instance)

Used to insert instance into the message buffer after creation.

virtual csString psPersistActor::ToString ( NetBase::AccessPointers accessPointers) [virtual]

Converts the message into human readable string.

Parameters:
accessPointersA struct to a number of access pointers.
Returns:
Return a human readable string for the message.

Reimplemented from psDRMessage.


Member Data Documentation

Used for belt groupings.

Definition at line 3426 of file messages.h.

Definition at line 3428 of file messages.h.

Used for bracers groupings.

Definition at line 3425 of file messages.h.

Used for cloak groupings.

Definition at line 3427 of file messages.h.

Definition at line 3437 of file messages.h.

Definition at line 3430 of file messages.h.

Definition at line 3418 of file messages.h.

Definition at line 3439 of file messages.h.

Definition at line 3423 of file messages.h.

Definition at line 3435 of file messages.h.

Definition at line 3417 of file messages.h.

Used for helm groupings.

Definition at line 3424 of file messages.h.

Definition at line 3440 of file messages.h.

Definition at line 3432 of file messages.h.

Definition at line 3438 of file messages.h.

Definition at line 3419 of file messages.h.

The anim to be used by the mounter.

Definition at line 3422 of file messages.h.

Definition at line 3421 of file messages.h.

Stores the scale of the mounted actor.

Definition at line 3445 of file messages.h.

Definition at line 3416 of file messages.h.

Definition at line 3428 of file messages.h.

Definition at line 3436 of file messages.h.

Definition at line 3434 of file messages.h.

Remember the position of the instance field in the generated message.

Definition at line 3443 of file messages.h.

Remember the position the playerID in the generated message.

Definition at line 3442 of file messages.h.

Definition at line 3420 of file messages.h.

Stores the scale of the actor. Total model scale.

Definition at line 3444 of file messages.h.

Definition at line 3433 of file messages.h.

Definition at line 3429 of file messages.h.

Definition at line 3428 of file messages.h.

Definition at line 3431 of file messages.h.


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