25#include "common/array.h"
26#include "common/ptr.h"
27#include "common/stream.h"
29#include "graphics/managed_surface.h"
31#include "engines/nancy/enginedata.h"
53 kInvertedRotateRight = 14,
54 kInvertedRotateLeft = 15,
78 kNewHotspotLockedUse = 5,
87 kNewMoveBackward = 18,
94 kNewInvertedRotateRight = 32,
95 kNewInvertedRotateLeft = 34,
97 kNewUseHandHotspot = 37,
99 kNewDragHandHotspot = 39,
100 kNewRotatePiece = 40,
103 kNewPuzzleArrow = 45,
104 kNewPuzzleSlideUp = 47,
105 kNewPuzzleSlideDown = 49,
106 kNewPuzzleSlideLeft = 51,
107 kNewPuzzleSlideRight = 53,
109 kNewDropHandHotspot = 65,
121 kNancy13MoveDown = 7,
122 kNancy13MoveLeft = 8,
123 kNancy13MoveRight = 9,
124 kNancy13MoveBackward = 10,
125 kNancy13MoveForward = 12,
127 kNancy13RotateRight = 17,
128 kNancy13RotateLeft = 18,
130 kNancy13InvertedRotateRight = 20,
131 kNancy13InvertedRotateLeft = 21,
135 kNancy13PuzzleRotateCW = 25,
136 kNancy13PuzzleRotateCCW = 26,
137 kNancy13PuzzleDragHand = 28,
138 kNancy13PuzzleDropHand = 29,
139 kNancy13PuzzleMoveUp = 30,
140 kNancy13PuzzleMoveDown = 31,
141 kNancy13PuzzleArrow = 34
154 uint getItemCursorType(int16 itemID)
const {
return _numCursorTypes + itemID; }
160 void setCursor(CursorType type, int16 itemID,
bool setFromScript,
bool hotspotVariant =
true);
161 void setCursorType(CursorType type,
bool setFromScript =
false,
bool hotspotVariant =
true);
162 void setCursorItemID(int16 itemID);
163 bool isHoldingItem()
const {
return _curItemID != -1; }
164 void showCursor(
bool shouldShow);
171 const Common::Point &getCurrentCursorHotspot() {
return _cursors[_curCursorID].hotspot;}
172 const Common::Rect &getCurrentCursorBounds() {
return _cursors[_curCursorID].bounds; }
173 const Common::Rect &getPrimaryVideoInactiveZone() {
return _primaryVideoInactiveZone; }
174 const Common::Point &getPrimaryVideoInitialPos() {
return _primaryVideoInitialPos; }
176 const CursorType _puzzleExitCursor;
179 void adjustCursorHotspot();
182 uint resolveNancy10CursorID(CursorType type, int16 itemID,
bool setFromScript,
bool hotspotVariant);
187 uint resolveNancy13CursorID(CursorType type, int16 itemID,
bool setFromScript,
bool hotspotVariant);
189 uint resolveScriptedCursorID(CursorType type, int16 itemID,
bool setFromScript,
bool hotspotVariant);
205 uint _defaultCursorType = 0;
220 CursorType _curCursorType;
221 bool _curSetFromScript;
222 bool _curHotspotVariant;
Definition: managed_surface.h:51
Definition: actionmanager.h:32
Definition: enginedata.h:1101