Caseus Tower
|
Creates an Animation object Creates an Animation object to handle the timing of when an Animation should run. DISCLAMER - This is the animation class that I used in my PGG SDL assignment. More...
#include <animation.h>
Public Member Functions | |
Animation (float) | |
~Animation () | |
void | updateTimer (float dt) |
float | getCurrentTime () |
Private Attributes | |
float | currentTime |
float | duration |
Creates an Animation object Creates an Animation object to handle the timing of when an Animation should run. DISCLAMER - This is the animation class that I used in my PGG SDL assignment.
Definition at line 8 of file animation.h.
Animation::Animation | ( | float | ) |
Animation::~Animation | ( | ) |
A destructor for the Animation object
float Animation::getCurrentTime | ( | ) |
Getter # returns the current time.
void Animation::updateTimer | ( | float | dt | ) |
A timer for Animation The timer is updated with the current time and resets to 0 when the time is the duration.
float | the delta time |
|
private |
The current time of the Animation timer
Definition at line 12 of file animation.h.
|
private |
The duration of the Animation timer
Definition at line 14 of file animation.h.