Planeshift
Public Member Functions | Public Attributes

psEffectMessage Class Reference

Effect Message. More...

#include <messages.h>

List of all members.

Public Member Functions

 psEffectMessage (uint32_t clientNum, const csString &effectName, const csVector3 &effectOffset, EID anchorID, EID targetID, uint32_t uid, float scale1=0.0, float scale2=0.0, float scale3=0.0, float scale4=0.0)
 Constructs a new message that will tell the client to render an effect.
 psEffectMessage (uint32_t clientNum, const csString &effectName, const csVector3 &effectOffset, EID anchorID, EID targetID, uint32_t duration, uint32_t uid, float scale1=0.0, float scale2=0.0, float scale3=0.0, float scale4=0.0)
 Constructs a new message that will tell the client to render a spell effect - not just a normal effect.
 psEffectMessage (MsgEntry *message)
 Translates a generic message to a psEffectMessage.
 PSF_DECLARE_MSG_FACTORY ()
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string.

Public Attributes

EID anchorID
uint32_t duration
csString name
csVector3 offset
float scale [4]
EID targetID
uint32_t uid

Detailed Description

Effect Message.

This message is used to manage any effect the server wants to send to the clients. psClientCharManager handles this clientside

Definition at line 2487 of file messages.h.


Constructor & Destructor Documentation

psEffectMessage::psEffectMessage ( uint32_t  clientNum,
const csString &  effectName,
const csVector3 &  effectOffset,
EID  anchorID,
EID  targetID,
uint32_t  uid,
float  scale1 = 0.0,
float  scale2 = 0.0,
float  scale3 = 0.0,
float  scale4 = 0.0 
)

Constructs a new message that will tell the client to render an effect.

Parameters:
clientNumthe client to send the effect message to
effectNamethe name of the effect to render
effectOffsetthe offset position from the anchor point
anchorIDthe ID of the entity to anchor the effect to (0 for absolute anchor)
targetIDthe ID of the entity that will be the target of the effect (0 for a target the same as the anchor)
uidOptional ID that server can use to stop a particular Effect.
scale1Used for scalable effects.
scale2Used for scalable effects.
scale3Used for scalable effects.
scale4Used for scalable effects.
psEffectMessage::psEffectMessage ( uint32_t  clientNum,
const csString &  effectName,
const csVector3 &  effectOffset,
EID  anchorID,
EID  targetID,
uint32_t  duration,
uint32_t  uid,
float  scale1 = 0.0,
float  scale2 = 0.0,
float  scale3 = 0.0,
float  scale4 = 0.0 
)

Constructs a new message that will tell the client to render a spell effect - not just a normal effect.

Parameters:
clientNumthe client to send the effect message to
effectNamethe name of the effect to render
effectOffsetthe offset position from the anchor point
anchorIDthe ID of the entity to anchor the effect to (0 for absolute anchor)
targetIDthe ID of the entity that will be the target of the effect (0 for a target the same as the anchor)
durationthe duration of the effect
uidOptional ID that server can use to stop a particular Effect.
scale1Used for scalable effects.
scale2Used for scalable effects.
scale3Used for scalable effects.
scale4Used for scalable effects.
psEffectMessage::psEffectMessage ( MsgEntry message)

Translates a generic message to a psEffectMessage.

Parameters:
messagethe generic message to translate

Member Function Documentation

psEffectMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psEffectMessage::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.

Implements psMessageCracker.


Member Data Documentation

Definition at line 2541 of file messages.h.

Definition at line 2543 of file messages.h.

Definition at line 2539 of file messages.h.

Definition at line 2540 of file messages.h.

Definition at line 2545 of file messages.h.

Definition at line 2542 of file messages.h.

Definition at line 2544 of file messages.h.


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