// // Created by trotfunky on 07/06/19. // #ifndef PROJECT_MAAT_UTILS_H #define PROJECT_MAAT_UTILS_H #include #include #include #include namespace pro_maat { // Used as the base of all grid based computations using GridUnit = int16_t; // Used when dealing with the grid representation of the map using GridPos = std::pair; static constexpr uint8_t pixelsPerUnit = 30; static constexpr char levelFolder[] = "resources/"; static constexpr char textureFolder[] = "resources/"; static constexpr char fontFolder[] = "resources/"; void errorWindow(const std::string& error); // Good heuristic on 4-way grids float manhattanDistance(const GridPos& leftHandSide, const GridPos& rightHandSide); /// Gets the 4 cardinal neighbours on the grid with edge checking const std::vector getNeighbours(const GridPos& origin, const GridPos& gridSize); } #endif //PROJECT_MAAT_UTILS_H