Planeshift
Public Member Functions

psEffectAnchorSocket Class Reference

#include <pseffectanchorsocket.h>

List of all members.

Public Member Functions

psEffectAnchorClone () const
 Clones the effect anchor.
bool Create (const csVector3 &offset, iMeshWrapper *posAttach, bool rotateWithMesh=false)
 Creates the effect anchor.
const csString & GetSocketName () const
 Gets the name of the socket where this anchor is attached.
bool Load (iDocumentNode *node)
 Loads the effect anchors from an xml node.
 psEffectAnchorSocket ()
void SetPosition (const csVector3 &, iSectorList *, const csMatrix3 &)
 Sets a new position for the effect anchor.
void SetPosition (const csVector3 &, iSector *, const csMatrix3 &)
 Sets a new position for the effect anchor.
void SetRotBase (const csMatrix3 &)
 Sets the base rotation matrix of the effect anchor.
void SetSocket (const char *name)
 Sets the socket where this anchor is attached.
bool Update (csTicks elapsed)
 Updates the effect anchor -- called every frame.
 ~psEffectAnchorSocket ()

Detailed Description

Definition at line 32 of file pseffectanchorsocket.h.


Constructor & Destructor Documentation

psEffectAnchorSocket::psEffectAnchorSocket ( )
psEffectAnchorSocket::~psEffectAnchorSocket ( )

Member Function Documentation

psEffectAnchor* psEffectAnchorSocket::Clone ( ) const [virtual]

Clones the effect anchor.

This will almost always be overloaded.

Reimplemented from psEffectAnchor.

bool psEffectAnchorSocket::Create ( const csVector3 &  offset,
iMeshWrapper *  posAttach,
bool  rotateWithMesh = false 
) [virtual]

Creates the effect anchor.

Parameters:
offsetthe offset of the position of the obj.
posAttachthe mesh to attach this anchor to.
rotateWithMeshRotate the anchor with the mesh.
Returns:
true on success.

Reimplemented from psEffectAnchor.

const csString& psEffectAnchorSocket::GetSocketName ( ) const [inline]

Gets the name of the socket where this anchor is attached.

Returns:
the name of the socket.

Definition at line 54 of file pseffectanchorsocket.h.

bool psEffectAnchorSocket::Load ( iDocumentNode *  node) [virtual]

Loads the effect anchors from an xml node.

Parameters:
nodethe xml node containing the effect anchor, must be valid.
Returns:
true on success, false otherwise.

Reimplemented from psEffectAnchor.

void psEffectAnchorSocket::SetPosition ( const csVector3 &  basePos,
iSectorList *  sectors,
const csMatrix3 &  transf 
) [inline, virtual]

Sets a new position for the effect anchor.

Parameters:
basePosThe new position of the anchor.
sectorsThe new sectors of the anchor.
transfThe transform of the position.

Reimplemented from psEffectAnchor.

Definition at line 49 of file pseffectanchorsocket.h.

void psEffectAnchorSocket::SetPosition ( const csVector3 &  basePos,
iSector *  sector,
const csMatrix3 &  transf 
) [inline, virtual]

Sets a new position for the effect anchor.

Parameters:
basePosThe new position of the anchor.
sectorThe new sector of the anchor
transfThe transform of the position.

Reimplemented from psEffectAnchor.

Definition at line 48 of file pseffectanchorsocket.h.

void psEffectAnchorSocket::SetRotBase ( const csMatrix3 &  newRotBase) [inline, virtual]

Sets the base rotation matrix of the effect anchor.

Parameters:
newRotBaseThe base rotation matrix.

Reimplemented from psEffectAnchor.

Definition at line 47 of file pseffectanchorsocket.h.

void psEffectAnchorSocket::SetSocket ( const char *  name)

Sets the socket where this anchor is attached.

Parameters:
namethe name of the socket.
bool psEffectAnchorSocket::Update ( csTicks  elapsed) [virtual]

Updates the effect anchor -- called every frame.

Parameters:
elapsedthe ticks elapsed since last update.
Returns:
false if the anchor is useless and can be removed by its parent effect.

Reimplemented from psEffectAnchor.


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