Caseus Tower
 All Classes Namespaces Files Functions Variables
entity.h
Go to the documentation of this file.
1 #pragma once
2 
7 class Entity
8 {
9 protected:
10  /*dimensions*/
11  int xScale;
12  int yScale;
13  /*position*/
14  float x;
15  float y;
16  /*y velocity*/
17  float yVelocity;
18  /*should the entity be displayed*/
19  bool display;
20  /*current animation index*/
22 public:
31  Entity(float, float, int, int, int);
32 
36  ~Entity();
37 
43  void setX(float);
44 
50  void setY(float);
51 
57  void setXScale(int);
58 
64  void setYScale(int);
65 
71  void setYVelocity(float);
72 
78  void setDisplay(bool);
79 
85  void setAnimationIndex(int);
86 
91  float getX();
92 
97  float getY();
98 
103  int getXScale();
104 
109  int getYScale();
110 
115  float getYVelocity();
116 
121  bool getDisplay();
122 
127  int getAnimationIndex();
128 
134  void updateY(float);
135 };
float getX()
void setY(float)
void setX(float)
float yVelocity
Definition: entity.h:17
int getYScale()
float getYVelocity()
void setAnimationIndex(int)
void setDisplay(bool)
float y
Definition: entity.h:15
void setYVelocity(float)
Creates an Entity object Creates an Entity object with all the information about the Entity...
Definition: entity.h:7
int animationIndex
Definition: entity.h:21
void setYScale(int)
int xScale
Definition: entity.h:11
float x
Definition: entity.h:14
int getAnimationIndex()
bool display
Definition: entity.h:19
int yScale
Definition: entity.h:12
void setXScale(int)
Entity(float, float, int, int, int)
int getXScale()
bool getDisplay()
float getY()
void updateY(float)