22 #ifndef VCRUISE_CIRCUITPUZZLE_H 23 #define VCRUISE_CIRCUITPUZZLE_H 25 #include "common/array.h" 26 #include "common/random.h" 27 #include "common/rect.h" 37 struct CircuitPuzzleAIEvaluator;
38 class CircuitPuzzleVisitedSet;
44 static const uint kBoardWidth = 6;
45 static const uint kBoardHeight = 5;
55 kConclusionPlayerLost,
68 void addLink(
const Common::Point &coord, CellDirection direction);
70 Conclusion checkConclusion()
const;
103 CellDirection _direction;
107 LinkState *getConnectionState(
const Common::Point &coord, Direction direction);
108 const LinkState *getConnectionState(
const Common::Point &coord, Direction direction)
const;
111 void computeStepsToReach(CircuitPuzzleAIEvaluator &evaluator)
const;
112 void floodFillLinks(
Common::Point *pointsList, uint &listSize, CircuitPuzzleVisitedSet &visitedSet)
const;
116 CellState _cells[kBoardWidth][kBoardHeight];
121 bool _havePreviousAction;
122 Action _previousAction;
Definition: circuitpuzzle.h:58
Definition: ad2044_items.h:27
Definition: algorithm.h:29
Definition: circuitpuzzle.h:40