Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
animation.h
1 #pragma once
2 #ifndef ANIMATION_H
3 #define ANIMATION_H
4 
5 #include "entity.h"
6 
10 class Animation
11 {
12 private:
13  /*the timer float*/
14  float timer;
15  /*the length of the timer float*/
16  float timerLength;
17 public:
23  Animation(float);
24 
29  ~Animation();
30 
37  void upadateTimer(float);
38 
45  void upadateAnimation(char, Entity *);
46 
51  void snailAnimation(Entity *);
52 
57  void wormAnimation(Entity *);
58 
63  void endGoalAnimation(Entity *);
64 
70  void gemAnimation(int, Entity *);
71 };
72 #endif
Creates a Animation object to handle the animations.
Definition: animation.h:10
void upadateTimer(float)
Definition: animation.cpp:24
void snailAnimation(Entity *)
Definition: animation.cpp:70
void endGoalAnimation(Entity *)
Definition: animation.cpp:106
Animation(float)
Definition: animation.cpp:6
void gemAnimation(int, Entity *)
Definition: animation.cpp:124
Creates an Entity object Creates an Entity object with a Texture (including variables for the source ...
Definition: entity.h:13
void wormAnimation(Entity *)
Definition: animation.cpp:88
~Animation()
Definition: animation.cpp:16
void upadateAnimation(char, Entity *)
Definition: animation.cpp:39