From 97d6287a0710ec59d746f6340a796bbe6c7c8aa2 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 6 Jun 2015 15:39:02 +0200 Subject: Abstracted game objects into an entity base class --- include/game_entity.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/game_entity.h (limited to 'include/game_entity.h') diff --git a/include/game_entity.h b/include/game_entity.h new file mode 100644 index 0000000..215333c --- /dev/null +++ b/include/game_entity.h @@ -0,0 +1,13 @@ +#pragma once + +class GameEntity +{ +public: + GameEntity(int x, int y); + int x() const {return _x;} + int y() const {return _y;} +private: + int _x; + int _y; +}; + -- cgit v1.2.3