From 573bf36b3852e934c8d1b23d26e7828dd3e2cafc Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 19 Apr 2023 23:56:15 +0200 Subject: 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. --- engine/src/Point.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engine/src/Point.cpp') 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 -- cgit v1.1