projects
/
physics.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b5b268dbb549afe8fd8b35f3675b1a78f3fc8346
[physics.git]
/
src
/
Entities
/
Entity.h
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
const Vector2& positionRaw() const;
19
const Vector2& velocityRaw() const;
20
21
protected:
22
Vector2 position;
23
Vector2 velocity;
24
};
25
26
#endif // ENTITY_H