summaryrefslogtreecommitdiffhomepage
path: root/src/tile.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-29 03:10:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-29 03:10:43 +0200
commit055b027a3cf567fd8cfe19e1aad7a055f2449b86 (patch)
treebddc754664c0f6987ee2322fe1aabcc9c218910e /src/tile.cpp
parent9c9d02e674231dca8f9b75ea23a0efa0b28f970b (diff)
a
Diffstat (limited to 'src/tile.cpp')
-rw-r--r--src/tile.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index 82970c76..7e988a27 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -2,4 +2,12 @@
namespace floormat {
+bool operator==(const tile& a, const tile& b) noexcept
+{
+ return a.ground == b.ground &&
+ a.wall_north == b.wall_north &&
+ a.wall_west == b.wall_west &&
+ a.passability == b.passability;
+}
+
} // namespace floormat