22 #ifndef MEDIASTATION_MINIGAMES_MAZE_H 23 #define MEDIASTATION_MINIGAMES_MAZE_H 25 #include "mediastation/actor.h" 29 namespace MazeMinigame {
31 enum CellDirectionMask {
50 CellCoord(int16 row_ = 0, int16 column_ = 0) : row(row_), column(column_) {}
52 bool operator==(
const CellCoord &other)
const {
53 return row == other.row && column == other.column;
59 Cell(int16 directionMask = 0) : _directionMask(directionMask) {};
61 CellGraphType getType()
const;
65 int16 _directionMask = 0;
77 CellGrid(int16 rowCount, int16 columnCount);
83 int32 paddedIndexForCoord(
CellCoord coord);
86 int16 indexForCoord(
CellCoord coord)
const;
87 CellCoord coordForIndex(int16 index)
const;