22 #ifndef FIFE_PATHFINDER_SEARCHSPACE
23 #define FIFE_PATHFINDER_SEARCHSPACE
33 #include "model/structures/location.h"
41 SearchSpace(Layer* layer);
43 int32_t getUpperX()
const {
47 int32_t getUpperY()
const {
51 int32_t getLowerX()
const {
55 int32_t getLowerY()
const {
59 int32_t getWidth()
const {
61 return (m_upperX - m_lowerX) + 1;
64 int32_t getHeight()
const {
65 return (m_upperY - m_lowerY) + 1;
68 Layer* getLayer()
const {
80 bool isInSearchSpace(
const Location& location)
const;
90 ModelCoordinate translateCoordsToSearchSpace(
const ModelCoordinate& coords)
const;
99 int32_t convertCoordToInt(
const ModelCoordinate& coord)
const;
109 ModelCoordinate convertIntToCoord(
const int32_t cell)
const;
115 int32_t getMaxIndex()
const;