22 #ifndef FIFE_PATHFINDER_SEARCHSPACE
23 #define FIFE_PATHFINDER_SEARCHSPACE
33 #include "model/structures/location.h"
41 SearchSpace(Layer* layer);
43 int getUpperX()
const {
47 int getUpperY()
const {
51 int getLowerX()
const {
55 int getLowerY()
const {
59 int getWidth()
const {
61 return (m_upperX - m_lowerX) + 1;
64 int 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 int convertCoordToInt(
const ModelCoordinate& coord)
const;
109 ModelCoordinate convertIntToCoord(
const int cell)
const;
115 int getMaxIndex()
const;