22 #ifndef NANCY_ACTION_COLLISIONPUZZLE_H 23 #define NANCY_ACTION_COLLISIONPUZZLE_H 25 #include "engines/nancy/action/puzzlerecord.h" 40 enum PuzzleType { kCollision, kTileMove };
45 void registerGraphics()
override;
46 void updateGraphics()
override;
49 void execute()
override;
52 bool isViewportRelative()
const override {
return true; }
57 enum WallType { kWallLeft = 16, kWallUp = 17, kWallDown = 18, kWallRight = 19, kBlock = 20 };
70 bool isViewportRelative()
const override {
return true; }
73 Common::String getRecordTypeName()
const override {
return _puzzleType == kCollision ?
"CollisionPuzzle" :
"TileMovePuzzle"; }
90 uint _tileMoveExitIndex = 0;
91 bool _tileMoveSolveStartsInSlot =
false;
93 bool _usesExitButton =
false;
99 uint16 _lineWidth = 0;
100 uint16 _framesPerMove = 0;
102 uint32 _timerTime = 0;
114 int _currentlyAnimating = -1;
115 int _currentAnimFrame = -1;
118 uint32 _solveSoundPlayTime = 0;
119 bool _solved =
false;
121 uint32 _puzzleStartTime = 0;
122 int _currentTimerGraphic = -1;
124 PuzzleType _puzzleType;
130 #endif // NANCY_ACTION_COLLISIONPUZZLE_H
Definition: collisionpuzzle.h:38
Definition: renderobject.h:36
Definition: puzzlerecord.h:37
Definition: commontypes.h:306
Definition: actionmanager.h:32
Definition: collisionpuzzle.h:59