]> git.localhorst.tv Git - space.git/blob - src/entity/Entity.h
move to SDL2
[space.git] / src / entity / Entity.h
1 #ifndef SPACE_ENTITY_H_
2 #define SPACE_ENTITY_H_
3
4 #include "../graphics/Vector.h"
5
6
7 namespace space {
8
9 class Entity {
10
11 public:
12         constexpr Entity() { }
13
14 public:
15         Vector<int> area;
16         Vector<float> pos;
17         Vector<float> vel;
18         Vector<float> acc;
19
20 public:
21         void Update(float delta) {
22                 pos += vel * delta;
23                 vel += acc * delta;
24         }
25
26 };
27
28 }
29
30 #endif