1 #ifndef TILE_HPP_INCLUDED
2 #define TILE_HPP_INCLUDED
35 operator bool()
const;
Tile & operator-=(const Tile &T)
Subtracts the x-axis and y-axis coordinates, plane is ignored.
std::int32_t Y
The y-axis coordinate.
friend std::ostream & operator<<(std::ostream &OS, const Tile &T)
double DistanceFrom(const Tile &T) const
bool operator!=(const Tile &T) const
std::int32_t X
The x-axis coordinate.
std::int32_t Plane
The plane the tile exists on (usually 0-4)
Tile(std::int32_t X, std::int32_t Y, std::int32_t Plane=0)
bool operator==(const Tile &T) const
Tile operator+(const Tile &T) const
Adds the x-axis and y-axis coordinates, plane is ignored.
Tile & operator+=(const Tile &T)
Adds the x-axis and y-axis coordinates, plane is ignored.
Tile operator-(const Tile &T) const
Subtracts the x-axis and y-axis coordinates, plane is ignored.