projects
/
physics.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
added screen collisions using an Effect
[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