Creates a Animation object to handle the animations.
More...
#include <animation.h>
Creates a Animation object to handle the animations.
Animation::Animation |
( |
float |
inLength | ) |
|
Constructs an Animation object Constructs the Animation object.
- Parameters
-
float | the length of the timer |
Animation::~Animation |
( |
| ) |
|
void Animation::endGoalAnimation |
( |
Entity * |
entity | ) |
|
Performs the animation for the end goal
- Parameters
-
void Animation::gemAnimation |
( |
int |
type, |
|
|
Entity * |
entity |
|
) |
| |
Performs the timer test and animation for the Gem
- Parameters
-
void Animation::snailAnimation |
( |
Entity * |
entity | ) |
|
Performs the animation for the snail
- Parameters
-
void Animation::upadateAnimation |
( |
char |
type, |
|
|
Entity * |
entity |
|
) |
| |
void Animation::upadateTimer |
( |
float |
deltaTime | ) |
|
Updates the timer Updates the timer using the delta time. If the timer is now greater than 1, then reset the timer to 0.
- Parameters
-
void Animation::wormAnimation |
( |
Entity * |
entity | ) |
|
Performs the animation for the worm
- Parameters
-
The documentation for this class was generated from the following files:
- PGGAssignment1SDL/animation.h
- PGGAssignment1SDL/animation.cpp