summaryrefslogtreecommitdiff
path: root/source/logic/GameObject.cpp
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@entelect.co.za>2014-07-31 13:58:22 +0200
committerJustin Worthe <justin.worthe@entelect.co.za>2014-07-31 13:58:22 +0200
commit98ba22e7064db57316dfff1ae127feb3dceeb73e (patch)
tree1f7fe3065f804e491f558650285e8c6d05fc914b /source/logic/GameObject.cpp
Initial commitHEADmain
Diffstat (limited to 'source/logic/GameObject.cpp')
-rw-r--r--source/logic/GameObject.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/source/logic/GameObject.cpp b/source/logic/GameObject.cpp
new file mode 100644
index 0000000..07957e5
--- /dev/null
+++ b/source/logic/GameObject.cpp
@@ -0,0 +1,27 @@
+#include "GameObject.h"
+
+GameObject::GameObject(double x, double y, BitmapStore::Image image, Maze::Direction facing)
+ :_x(x), _y(y), _destroyed(false), _image(image), _facing(facing)
+{
+}
+
+double GameObject::x() const
+{
+ return _x;
+}
+double GameObject::y() const
+{
+ return _y;
+}
+bool GameObject::destroyed() const
+{
+ return _destroyed;
+}
+BitmapStore::Image GameObject::image() const
+{
+ return _image;
+}
+Maze::Direction GameObject::facing() const
+{
+ return _facing;
+}