summaryrefslogtreecommitdiff
path: root/source/logic/GameObject.cpp
diff options
context:
space:
mode:
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;
+}