projects
/
physics.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c40d44ccda1d72f411d0a9e1f1eda7dd047860f0
[physics.git]
/
src
/
Entities
/
Entity.h
1
#ifndef ENTITY_H
2
#define ENTITY_H
3
4
#include "../Vector2.h"
5
6
7
/// ***** Header Class *****
8
9
class Entity
10
{
11
protected:
12
Entity(const Vector2&);
13
14
public:
15
virtual ~Entity();
16
17
virtual void update(float) = 0;
18
virtual void draw() const = 0;
19
20
const Vector2& positionRaw() const;
21
const Vector2& velocityRaw() const;
22
23
protected:
24
Vector2 position;
25
Vector2 velocity;
26
};
27
28
#endif // ENTITY_H