32 lines
845 B
C++
32 lines
845 B
C++
#pragma once
|
|
|
|
#include "Direction.hpp"
|
|
#include "Position.hpp"
|
|
#include <array>
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
namespace pacman {
|
|
|
|
bool isWalkableForPacMan(GridPosition point);
|
|
bool isWalkableForGhost(GridPosition point, GridPosition origin, bool isEyes);
|
|
bool isInPen(GridPosition point);
|
|
bool isPortal(GridPosition point, Direction direction);
|
|
GridPosition iterateGridPosition(GridPosition point, Direction direction);
|
|
GridPosition teleport(GridPosition point);
|
|
|
|
std::vector<GridPosition> initialPelletPositions();
|
|
|
|
std::vector<GridPosition> initialSuperPelletPositions();
|
|
|
|
inline Position penDoorPosition() {
|
|
return { 13, 11 };
|
|
}
|
|
inline Position initialPacManPosition() {
|
|
return { 13.5, 23 };
|
|
}
|
|
|
|
bool isWalkableStraightLine(GridPosition pointA, GridPosition pointB);
|
|
bool isIntersection(GridPosition point);
|
|
|
|
} // namespace pacman
|