summaryrefslogtreecommitdiff
path: root/engine/src
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-04-19 23:56:15 +0200
committerAki <please@ignore.pl>2024-04-05 19:41:19 +0200
commit573bf36b3852e934c8d1b23d26e7828dd3e2cafc (patch)
tree7b8b71ce9963030087820cd75b80ad42e45f4560 /engine/src
parentd26f892bbe906d2a44b39049fca013c1503c1655 (diff)
downloadkurator-573bf36b3852e934c8d1b23d26e7828dd3e2cafc.zip
kurator-573bf36b3852e934c8d1b23d26e7828dd3e2cafc.tar.gz
kurator-573bf36b3852e934c8d1b23d26e7828dd3e2cafc.tar.bz2
Extracted chunk of user interaction to own Controller
This also introduced Mouse and a simple error of dragging box always appearing during pause (or in scenario editor). This can be fixed via pause update in Battle class.
Diffstat (limited to 'engine/src')
-rw-r--r--engine/src/Point.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engine/src/Point.cpp b/engine/src/Point.cpp
index f02991c..e01de57 100644
--- a/engine/src/Point.cpp
+++ b/engine/src/Point.cpp
@@ -82,5 +82,19 @@ Point::subtract(const double _x, const double _y) const
}
+bool
+Point::operator==(const Point& other) const
+{
+ return x == other.x && y == other.y;
+}
+
+
+bool
+Point::operator!=(const Point& other) const
+{
+ return x != other.x || y != other.y;
+}
+
+
} // namespace engine
} // namespace kurator