Commit | Line | Data |
---|---|---|
1 | #ifndef ENTITY_H | |
2 | #define ENTITY_H | |
3 | ||
4 | #include "../Vector2.h" | |
5 | ||
6 | /// ***** Header Class ***** | |
7 | class Entity | |
8 | { | |
9 | protected: | |
10 | Entity(const Vector2&); | |
11 | ||
12 | public: | |
13 | virtual ~Entity(); | |
14 | ||
15 | virtual void update(float) = 0; | |
16 | virtual void draw() const = 0; | |
17 | ||
18 | protected: | |
19 | Vector2 position; | |
20 | Vector2 velocity; | |
21 | }; | |
22 | ||
23 | #endif // ENTITY_H |