#pragma once #include struct Position { double x; double y; }; struct PositionInt { int x; int y; }; using Rect = sf::Rect; using Sprite = sf::Sprite; inline bool operator==(const PositionInt & b, const Position & a) { return a.x == b.x && a.y == b.y; } inline bool operator==(const Position & a, const Position & b) { return a.x == b.x && a.y == b.y; } inline bool operator!=(const Position & a, const Position & b) { return !(a == b); }