22 #ifndef NANCY_ACTION_SHOVELMEASUREPUZZLE_H 23 #define NANCY_ACTION_SHOVELMEASUREPUZZLE_H 25 #include "engines/nancy/commontypes.h" 26 #include "engines/nancy/action/puzzlerecord.h" 45 void execute()
override;
48 bool isViewportRelative()
const override {
return true; }
51 Common::String getRecordTypeName()
const override {
return "ShovelMeasurePuzzle"; }
70 bool endsStretch[kNumDirections] = {
false,
false,
false,
false };
75 Direction direction = kNorth;
90 static double getAngle(Direction direction);
94 const Cell &getCell(
const Common::Point &pos)
const {
return _cells[pos.
y * _numColumns + pos.
x]; }
97 void face(Direction direction);
100 void updateMeasure();
107 uint16 _buttonCursor = 0;
108 int32 _maxWrongSteps = 0;
109 uint32 _moveTime = 0;
119 Direction _startDirection = kNorth;
125 uint _maxMeasure = 0;
143 Direction _direction = kNorth;
144 Direction _targetDirection = kNorth;
145 Command _move = kNoCommand;
146 uint32 _moveStartTime = 0;
149 uint _shownMeasure = 0;
153 uint _currentStretch = 0;
154 int32 _numWrongSteps = 0;
155 Outcome _outcome = kNone;
161 #endif // NANCY_ACTION_SHOVELMEASUREPUZZLE_H
Definition: shovelmeasurepuzzle.h:37
Definition: commontypes.h:206
Definition: commontypes.h:324
Definition: puzzlerecord.h:37
Definition: shovelmeasurepuzzle.h:74
Definition: actionmanager.h:32
Definition: shovelmeasurepuzzle.h:68