#include <TileAnim.h>
Collaboration diagram for TileAnim:

Definition at line 32 of file TileAnim.h.
Public Member Functions | |
| TileAnim (void) | |
| default constructor | |
| TileAnim (Vector vPos, float angle, float duration, int anim, float delay, int setup, bool over) | |
| general constructor | |
| ~TileAnim (void) | |
| removes the effect | |
| void | Draw (void) |
| draws the effect in it's current state | |
| bool | Step (float timeStep) |
| advances the animation | |
Public Attributes | |
| bool | bOver |
| set to true when the animation has reached the last frame | |
| Vector | vPosition |
| absolute position of the effect's origin | |
| float | fAngle |
| rotation angle of the animation when displayed on screen | |
| float | fFrameTimer |
| timer used to keep track of the time elapsed displaying each frame | |
| float | fFrameDelay |
| amount of time a frame will be displayed | |
| float | iDuration |
| total amount of time the animation will be on screen before being removed | |
| int | iAnimation |
| the animation this effect will display | |
| int | iCurrentFrame |
| the current frame of animation to be displayed | |
| int | iSetupTimer |
| timer used to keep track of the setup frame display | |
| int | iSetupFrames |
| amount of times the first frame of animation will be displayed | |
| TileAnim::TileAnim | ( | void | ) |
Definition at line 26 of file TileAnim.cpp.
References ANIMID_NULL, bOver, fAngle, fFrameDelay, fFrameTimer, iAnimation, iCurrentFrame, iDuration, iSetupFrames, iSetupTimer, vPosition, Vector::x, Vector::y, and Vector::z.
| TileAnim::TileAnim | ( | Vector | vPos, | |
| float | angle, | |||
| float | duration, | |||
| int | anim, | |||
| float | delay, | |||
| int | setup, | |||
| bool | over | |||
| ) |
Definition at line 42 of file TileAnim.cpp.
References bOver, fAngle, fFrameDelay, fFrameTimer, iAnimation, iCurrentFrame, iDuration, iSetupFrames, iSetupTimer, and vPosition.
| TileAnim::~TileAnim | ( | void | ) |
Definition at line 56 of file TileAnim.cpp.
| void TileAnim::Draw | ( | void | ) |
Definition at line 93 of file TileAnim.cpp.
References bOver, fAngle, GetAnimation(), GetFrame(), iAnimation, iCurrentFrame, iDuration, TILEANIM_FADEOUT_TIME, vPosition, Vector::x, and Vector::y.
Referenced by CEffect::Draw().
Here is the call graph for this function:

Here is the caller graph for this function:

| bool TileAnim::Step | ( | float | timeStep | ) |
Advances the animations current frame based on the time that the animation been in existance, as determined by the time step parameter passed to the function. This function also contains keep the current frame clamped to the animation's last frame when playback is complete.
Definition at line 64 of file TileAnim.cpp.
References fFrameDelay, fFrameTimer, GetAnimation(), iAnimation, iCurrentFrame, iDuration, iSetupFrames, iSetupTimer, and CAnimation::iTotalFrames.
Referenced by CEffect::Step().
Here is the call graph for this function:

Here is the caller graph for this function:

| bool TileAnim::bOver |
| float TileAnim::fAngle |
| float TileAnim::fFrameTimer |
| float TileAnim::fFrameDelay |
| float TileAnim::iDuration |
Copyright Windsor Schmidt 2006 - All rights reserved.