#pragma once #include #include "Direction.hpp" #include "Position.hpp" #include #include #include namespace pacman { [[nodiscard]] bool isWalkableForPacMan(GridPosition point); [[nodiscard]] bool isWalkableForGhost(GridPosition point, GridPosition origin, bool isEyes); [[nodiscard]] bool isInPen(GridPosition point); [[nodiscard]] bool isPortal(GridPosition point, Direction direction); [[nodiscard]] GridPosition teleport(GridPosition point); [[nodiscard]] std::vector initialPelletPositions(); [[nodiscard]] std::vector initialSuperPelletPositions(); inline Position penDoorPosition() { return { 13, 11 }; } inline Position initialPacManPosition() { return { 13.5, 23 }; } inline Position initialBlinkyPosition() { return { 13.5, 11 }; } inline Position blinkyScatterTarget() { return { 25, -3 }; } inline Position initialSpeedyPosition() { return { 11.5, 14 }; } inline Position speedyScatterTarget() { return { 3, -2 }; } inline Position initialInkyPosition() { return { 13.5, 14 }; } inline Position inkyScatterTarget() { return { 27, 30 }; } inline Position initialClydePosition() { return { 15.5, 14 }; } inline Position clydeScatterTarget() { return { 0, 30 }; } } // namespace pacman