Commit | Line | Data |
---|---|---|
1 | #include "Entity.h" | |
2 | ||
3 | #include "../Vector2.h" | |
4 | ||
5 | ||
6 | /// ***** Constructors/Destructors ***** | |
7 | ||
8 | Entity::Entity(const Vector2& pos) | |
9 | : position(pos), velocity(0,0) | |
10 | { | |
11 | ||
12 | } | |
13 | Entity::~Entity() | |
14 | { | |
15 | ||
16 | } | |
17 | ||
18 | /// ***** Public Class Methods ***** | |
19 | ||
20 | const Vector2& Entity::positionRaw() const | |
21 | { | |
22 | return position; | |
23 | } | |
24 | const Vector2& Entity::velocityRaw() const | |
25 | { | |
26 | return velocity; | |
27 | } | |
28 |