pacman/lib/Position.hpp
2021-07-05 11:40:10 +02:00

29 lines
486 B
C++

#pragma once
#include <SFML/Graphics.hpp>
struct Position {
double x;
double y;
};
struct PositionInt {
int x;
int y;
};
using Rect = sf::Rect<int>;
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);
}