2021-06-10 12:42:51 +00:00
|
|
|
#pragma once
|
2020-11-27 13:10:09 +00:00
|
|
|
|
2020-11-28 13:10:25 +00:00
|
|
|
#include "Direction.hpp"
|
|
|
|
#include "Position.hpp"
|
2021-07-01 12:33:59 +00:00
|
|
|
#include <array>
|
2020-11-27 13:10:09 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
|
2021-07-05 12:10:01 +00:00
|
|
|
namespace pacman {
|
|
|
|
|
2021-08-02 13:31:32 +00:00
|
|
|
bool isWalkableForPacMan(GridPosition point);
|
2021-10-07 11:15:08 +00:00
|
|
|
bool isWalkableForGhost(GridPosition target_position, GridPosition current_position, bool isEyes);
|
2021-08-02 13:31:32 +00:00
|
|
|
bool isInPen(GridPosition point);
|
|
|
|
bool isPortal(GridPosition point, Direction direction);
|
2021-09-28 12:34:48 +00:00
|
|
|
bool isIntersection(GridPosition point);
|
|
|
|
|
2021-08-02 13:31:32 +00:00
|
|
|
GridPosition teleport(GridPosition point);
|
2020-11-27 13:10:09 +00:00
|
|
|
|
2021-08-02 13:31:32 +00:00
|
|
|
std::vector<GridPosition> initialPelletPositions();
|
|
|
|
std::vector<GridPosition> initialSuperPelletPositions();
|
2020-11-27 13:10:09 +00:00
|
|
|
|
2021-09-17 14:44:16 +00:00
|
|
|
inline Position penDoorPosition() {
|
|
|
|
return { 13, 11 };
|
|
|
|
}
|
|
|
|
inline Position initialPacManPosition() {
|
|
|
|
return { 13.5, 23 };
|
|
|
|
}
|
|
|
|
|
2021-09-09 08:56:29 +00:00
|
|
|
} // namespace pacman
|