| 
    Planeshift
    
   | 
 
#include <pseffectanchorsocket.h>
Public Member Functions | |
| psEffectAnchor * | Clone () const | 
| Clones the effect anchor.  More... | |
| bool | Create (const csVector3 &offset, iMeshWrapper *posAttach, bool rotateWithMesh=false) | 
| Creates the effect anchor.  More... | |
| const csString & | GetSocketName () const | 
| Gets the name of the socket where this anchor is attached.  More... | |
| bool | Load (iDocumentNode *node) | 
| Loads the effect anchors from an xml node.  More... | |
| psEffectAnchorSocket () | |
| void | SetPosition (const csVector3 &, iSector *, const csMatrix3 &) | 
| Sets a new position for the effect anchor.  More... | |
| void | SetPosition (const csVector3 &, iSectorList *, const csMatrix3 &) | 
| Sets a new position for the effect anchor.  More... | |
| void | SetRotBase (const csMatrix3 &) | 
| Sets the base rotation matrix of the effect anchor.  More... | |
| void | SetSocket (const char *name) | 
| Sets the socket where this anchor is attached.  More... | |
| bool | Update (csTicks elapsed) | 
| Updates the effect anchor – called every frame.  More... | |
| ~psEffectAnchorSocket () | |
  Public Member Functions inherited from psEffectAnchor | |
| size_t | AddKeyFrame (float time) | 
| Creates a new keyframe and attaches it to this movable.  More... | |
| void | CloneBase (psEffectAnchor *newAnchor) const | 
| Convenience function to clone the base member variables.  More... | |
| void | FillInLerps () | 
| Interpolates keyFrame actions for ones that weren't specified in each keyframe.  More... | |
| float | GetAnimGetSize () | 
| Gets the animation length of the effect anchor.  More... | |
| const char * | GetDirectionType () const | 
| Gets the direction type of this anchor.  More... | |
| psEffectAnchorKeyFrame * | GetKeyFrame (size_t idx) const | 
| Returns the keyframe at the given index.  More... | |
| size_t | GetKeyFrameCount () const | 
| Returns the number of keyframes in this anchor.  More... | |
| iMeshWrapper * | GetMesh () const | 
| Returns the mesh that's associated with this effect anchor (almost always a nullmesh).  More... | |
| const csString & | GetName () const | 
| Returns the name of this effect anchor.  More... | |
| bool | IsReady () const | 
| Check to see if this anchor is ready.  More... | |
| psEffectAnchor () | |
| void | SetAnimLength (float newAnimLength) | 
| Sets the animation length of the effect anchor.  More... | |
| void | SetDirectionType (const char *newDir) | 
| Sets the direction type of this anchor.  More... | |
| void | SetName (const csString &newName) | 
| Sets the name of this effect anchor.  More... | |
| void | SetTarget (const csVector3 &newTarget, const csMatrix3 &transf) | 
| Sets the target of the effect anchor.  More... | |
| void | TransformOffset (csVector3 &offset) | 
| Transforms the offset according to the mesh's settings, like abs_dir, etc.  More... | |
| virtual | ~psEffectAnchor () | 
Additional Inherited Members | |
  Public Types inherited from psEffectAnchor | |
| enum | DIR_TYPE { DT_NONE = 0, DT_ORIGIN, DT_TARGET, DT_COUNT } | 
  Protected Member Functions inherited from psEffectAnchor | |
| size_t | FindKeyFrameByTime (float time) const | 
| Finds the index of the keyFrame at the specified time.  More... | |
| bool | FindNextKeyFrameWithAction (size_t startFrame, size_t action, size_t &index) const | 
| Finds the next key frame where the specific action is specified.  More... | |
| float | lerp (float f1, float f2, float t1, float t2, float t) | 
| Linear interpolation function for a floating point.  More... | |
| csVector3 | lerpVec (const csVector3 &v1, const csVector3 &v2, float t1, float t2, float t) | 
| Linear interpolation function for a 3D vector.  More... | |
  Protected Attributes inherited from psEffectAnchor | |
| float | animLength | 
| The amount of time this anchor has been alive (gets reset on loop).  More... | |
| size_t | currKeyFrame | 
| int | dir | 
| What type of direction does this movable have.  More... | |
| csRef< iEngine > | engine | 
| Reference to CS's iEngine.  More... | |
| bool | isReady | 
| csRef< psEffectAnchorKeyFrameGroup > | keyFrames | 
| The next keyframe the anchor will be on.  More... | |
| float | life | 
| A unique name identifying this anchor.  More... | |
| csMatrix3 | matBase | 
| The length of each loop of this anchor.  More... | |
| csRef< iMeshWrapper > | mesh | 
| The mesh that makes up this anchor.  More... | |
| csString | name | 
| size_t | nextKeyFrame | 
| The current keyframe the anchor is on.  More... | |
| csVector3 | objBasePos | 
| Base pos for the effect anchor, this is used for things like the variable offset from the anchoring mesh.  More... | |
| csVector3 | objEffectPos | 
| The base transform matrix of this anchor.  More... | |
| csVector3 | objOffset | 
| The complete offset, this gets modified by the position action, generally.  More... | |
| csVector3 | objTargetOffset | 
| Stores the delta to the effect target.  More... | |
| csMatrix3 | posTransf | 
| bool | rotateWithMesh | 
| Whether the anchor should rotate with the mesh. This is so effects can stay aligned, e.g. flame sword.  More... | |
| csVector3 | target | 
| Stores the target of the effect.  More... | |
| csMatrix3 | targetTransf | 
Definition at line 32 of file pseffectanchorsocket.h.
| psEffectAnchorSocket::psEffectAnchorSocket | ( | ) | 
| psEffectAnchorSocket::~psEffectAnchorSocket | ( | ) | 
      
  | 
  virtual | 
      
  | 
  virtual | 
Creates the effect anchor.
| offset | the offset of the position of the obj. | 
| posAttach | the mesh to attach this anchor to. | 
| rotateWithMesh | Rotate the anchor with the mesh. | 
Reimplemented from psEffectAnchor.
      
  | 
  inline | 
Gets the name of the socket where this anchor is attached.
Definition at line 54 of file pseffectanchorsocket.h.
      
  | 
  virtual | 
Loads the effect anchors from an xml node.
| node | the xml node containing the effect anchor, must be valid. | 
Reimplemented from psEffectAnchor.
      
  | 
  inlinevirtual | 
Sets a new position for the effect anchor.
| basePos | The new position of the anchor. | 
| sector | The new sector of the anchor | 
| transf | The transform of the position. | 
Reimplemented from psEffectAnchor.
Definition at line 48 of file pseffectanchorsocket.h.
      
  | 
  inlinevirtual | 
Sets a new position for the effect anchor.
| basePos | The new position of the anchor. | 
| sectors | The new sectors of the anchor. | 
| transf | The transform of the position. | 
Reimplemented from psEffectAnchor.
Definition at line 49 of file pseffectanchorsocket.h.
      
  | 
  inlinevirtual | 
Sets the base rotation matrix of the effect anchor.
| newRotBase | The 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.
| name | the name of the socket. | 
      
  | 
  virtual | 
Updates the effect anchor – called every frame.
| elapsed | the ticks elapsed since last update. | 
Reimplemented from psEffectAnchor.