added screen collisions using an Effect
[physics.git] / src / Entities / Entity.h
CommitLineData
ad9f1fb6
PG
1#ifndef ENTITY_H
2#define ENTITY_H
3
4#include "../Vector2.h"
5
6/// ***** Header Class *****
7class Entity
8{
9 protected:
5f1f55d1 10 Entity(const Vector2&);
ad9f1fb6
PG
11
12 public:
13 virtual ~Entity();
14
15 virtual void update(float) = 0;
16 virtual void draw() const = 0;
17
2c18685d
PG
18 const Vector2& positionRaw() const;
19 const Vector2& velocityRaw() const;
20
ad9f1fb6
PG
21 protected:
22 Vector2 position;
23 Vector2 velocity;
24};
25
26#endif // ENTITY_H