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);
|
|
|
|
bool isWalkableForGhost(GridPosition point, GridPosition origin, bool isEyes);
|
|
|
|
bool isInPen(GridPosition point);
|
|
|
|
bool isPortal(GridPosition point, Direction direction);
|
2021-09-17 14:44:16 +00:00
|
|
|
GridPosition iterateGridPosition(GridPosition point, Direction direction);
|
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();
|
2021-06-24 11:32:52 +00:00
|
|
|
|
2021-08-02 13:31:32 +00:00
|
|
|
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 };
|
|
|
|
}
|
|
|
|
|
|
|
|
bool isWalkableStraightLine(GridPosition pointA, GridPosition pointB);
|
|
|
|
bool isIntersection(GridPosition point);
|
2021-06-25 09:06:50 +00:00
|
|
|
|
2021-09-09 08:56:29 +00:00
|
|
|
} // namespace pacman
|