summaryrefslogtreecommitdiff
path: root/include/spaceship.h
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-06-06 15:39:02 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-06-06 15:39:02 +0200
commit97d6287a0710ec59d746f6340a796bbe6c7c8aa2 (patch)
treed4dcca538ae99829b808e10261d4d430b4e29278 /include/spaceship.h
parent140b51f2bcd9c0aaa5b536d85702064a93530188 (diff)
Abstracted game objects into an entity base class
Diffstat (limited to 'include/spaceship.h')
-rw-r--r--include/spaceship.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/spaceship.h b/include/spaceship.h
index 5e6afd0..bd26b64 100644
--- a/include/spaceship.h
+++ b/include/spaceship.h
@@ -1,11 +1,12 @@
#pragma once
-class Spaceship {
+#include "game_entity.h"
+
+class Spaceship: public GameEntity
+{
public:
Spaceship(int x, int y);
const static char ENEMY_MAP_CHAR = 'V';
const static char PLAYER_MAP_CHAR = 'A';
private:
- int x;
- int y;
};