22 #ifndef NANCY_ACTION_TURNINGPUZZLE_H 23 #define NANCY_ACTION_TURNINGPUZZLE_H 25 #include "engines/nancy/action/actionrecord.h" 35 enum SolveState { kNotSolved, kWaitForAnimation, kWaitBeforeSound, kWaitForSound };
40 void updateGraphics()
override;
43 void execute()
override;
47 Common::String getRecordTypeName()
const override {
return "TurningPuzzle"; }
48 bool isViewportRelative()
const override {
return true; }
50 void drawObject(uint objectID, uint faceID, uint frameID);
51 void turnLogic(uint objectID);
56 uint16 _numFramesPerTurn = 0;
62 bool _separateRows =
false;
69 uint16 _solveDelayBetweenTurns = 0;
70 bool _solveAnimate =
false;
71 uint16 _solveAnimationNumRepeats = 0;
78 uint16 _solveSoundDelay = 0;
87 uint32 _solveSoundDelayTime = 0;
88 uint32 _nextTurnTime = 0;
89 int32 _objectCurrentlyTurning = -1;
90 uint32 _turnFrameID = 0;
92 uint32 _solveAnimLoop = 0;
93 uint32 _solveAnimFace = 0;
95 SolveState _solveState = kNotSolved;
101 #endif // NANCY_ACTION_TURNINGPUZZLE_H Definition: managed_surface.h:51
Definition: commontypes.h:171
Definition: turningpuzzle.h:33
Definition: actionrecord.h:149
Definition: commontypes.h:254
Definition: actionmanager.h:32