|
|
@ -32,12 +32,14 @@ namespace CSMWorld
|
|
|
|
std::string getId (const std::string& worldspace) const;
|
|
|
|
std::string getId (const std::string& worldspace) const;
|
|
|
|
///< Return the ID for the cell at these coordinates.
|
|
|
|
///< Return the ID for the cell at these coordinates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static bool isExteriorCell (const std::string& id);
|
|
|
|
|
|
|
|
|
|
|
|
/// \return first: CellCoordinates (or 0, 0 if cell does not have coordinates),
|
|
|
|
/// \return first: CellCoordinates (or 0, 0 if cell does not have coordinates),
|
|
|
|
/// second: is cell paged?
|
|
|
|
/// second: is cell paged?
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// \note The worldspace part of \a id is ignored
|
|
|
|
/// \note The worldspace part of \a id is ignored
|
|
|
|
static std::pair<CellCoordinates, bool> fromId (const std::string& id);
|
|
|
|
static std::pair<CellCoordinates, bool> fromId (const std::string& id);
|
|
|
|
|
|
|
|
|
|
|
|
/// \return cell coordinates such that given world coordinates are in it.
|
|
|
|
/// \return cell coordinates such that given world coordinates are in it.
|
|
|
|
static std::pair<int, int> coordinatesToCellIndex (float x, float y);
|
|
|
|
static std::pair<int, int> coordinatesToCellIndex (float x, float y);
|
|
|
|
};
|
|
|
|
};
|
|
|
|