aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/cpp/Tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/cpp/Tile.cpp')
-rw-r--r--src/main/cpp/Tile.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/cpp/Tile.cpp b/src/main/cpp/Tile.cpp
new file mode 100644
index 0000000..9fc436a
--- /dev/null
+++ b/src/main/cpp/Tile.cpp
@@ -0,0 +1,11 @@
+#include "Tile.hpp"
+
+bool Tile::actor(Actor *actor)
+{
+ if (_actor != nullptr) {
+ return false;
+ }
+
+ _actor = actor;
+ return true;
+}