1 #ifndef CSM_WOLRD_CELLCOORDINATES_H
2 #define CSM_WOLRD_CELLCOORDINATES_H
32 std::string
getId (
const std::string& worldspace)
const;
41 static std::pair<CellCoordinates, bool>
fromId (
const std::string&
id);
int getX() const
Definition: cellcoordinates.cpp:15
int mX
Definition: cellcoordinates.hpp:14
static std::pair< CellCoordinates, bool > fromId(const std::string &id)
Definition: cellcoordinates.cpp:45
CellCoordinates move(int x, int y) const
Return a copy of *this, moved by the given offset.
Definition: cellcoordinates.cpp:25
bool operator<(const CellCoordinates &left, const CellCoordinates &right)
Definition: cellcoordinates.cpp:79
static bool isExteriorCell(const std::string &id)
Definition: cellcoordinates.cpp:40
std::string getId(const std::string &worldspace) const
Return the ID for the cell at these coordinates.
Definition: cellcoordinates.cpp:30
static std::pair< int, int > coordinatesToCellIndex(float x, float y)
Definition: cellcoordinates.cpp:62
bool operator==(const CellCoordinates &left, const CellCoordinates &right)
Definition: cellcoordinates.cpp:69
int mY
Definition: cellcoordinates.hpp:15
bool operator!=(const CellCoordinates &left, const CellCoordinates &right)
Definition: cellcoordinates.cpp:74
Definition: cellcoordinates.hpp:12
int getY() const
Definition: cellcoordinates.cpp:20
CellCoordinates()
Definition: cellcoordinates.cpp:8
std::ostream & operator<<(std::ostream &stream, const CellCoordinates &coordiantes)
Definition: cellcoordinates.cpp:90