diff options
Diffstat (limited to 'engines/titanic/star_control/fpoint.h')
-rw-r--r-- | engines/titanic/star_control/fpoint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/titanic/star_control/fpoint.h b/engines/titanic/star_control/fpoint.h index 33181d937b..9ce58c08af 100644 --- a/engines/titanic/star_control/fpoint.h +++ b/engines/titanic/star_control/fpoint.h @@ -37,6 +37,8 @@ public: bool operator==(const FPoint &p) const { return _x == p._x && _y == p._y; } bool operator!=(const FPoint &p) const { return _x != p._x || _y != p._y; } + FPoint operator+(const FPoint &delta) const { return FPoint(_x + delta._x, _y + delta._y); } + FPoint operator-(const FPoint &delta) const { return FPoint(_x - delta._x, _y - delta._y); } void operator+=(const FPoint &delta) { _x += delta._x; |