ScummVM API documentation
Nancy::CursorManager Class Reference

Public Types

enum  CursorType {
  kNormal = 0 , kHotspot = 1 , kMove = 2 , kExit = 3 ,
  kRotateCW = 4 , kRotateCCW = 5 , kMoveLeft = 6 , kMoveRight = 7 ,
  kMoveForward = 8 , kMoveBackward = 9 , kMoveUp = 10 , kMoveDown = 11 ,
  kRotateLeft = 12 , kRotateRight = 13 , kInvertedRotateRight = 14 , kInvertedRotateLeft = 15 ,
  kCustom1 = 16 , kCustom1Hotspot = 17 , kCustom2 = 18 , kCustom2Hotspot = 19 ,
  kNormalArrow = 20 , kHotspotArrow = 21 , kHotspotTalk = 22 , kDragHand = 23 ,
  kDropHand = 24 , kPuzzleArrow = 25 , kDialCW = 26 , kDialCCW = 27 ,
  kNewNormal = 0 , kNewHotspot = 1 , kNewUse = 2 , kNewHotspotUse = 3 ,
  kNewLockedUse = 4 , kNewHotspotLockedUse = 5 , kNewTalk = 6 , kNewHotspotTalk = 7 ,
  kNewNormalArrow = 8 , kNewHotspotArrow = 9 , kNewExit = 10 , kNewMoveLeft = 12 ,
  kNewMoveRight = 14 , kNewMoveForward = 16 , kNewMoveBackward = 18 , kNewMoveUp = 20 ,
  kNewMoveDown = 22 , kNewRotateCW = 24 , kNewRotateCCW = 26 , kNewRotateRight = 28 ,
  kNewRotateLeft = 30 , kNewInvertedRotateRight = 32 , kNewInvertedRotateLeft = 34 , kNewUseHand = 36 ,
  kNewUseHandHotspot = 37 , kNewDragHand = 38 , kNewDragHandHotspot = 39 , kNewRotatePiece = 40 ,
  kNewDialCW = 41 , kNewDialCCW = 43 , kNewPuzzleArrow = 45 , kNewPuzzleSlideUp = 47 ,
  kNewPuzzleSlideDown = 49 , kNewPuzzleSlideLeft = 51 , kNewPuzzleSlideRight = 53 , kNewDropHand = 64 ,
  kNewDropHandHotspot = 65 , kNewBlank = 72 , kNancy13Normal = 0 , kNancy13Talk = 5 ,
  kNancy13MoveUp = 6 , kNancy13MoveDown = 7 , kNancy13MoveLeft = 8 , kNancy13MoveRight = 9 ,
  kNancy13MoveBackward = 10 , kNancy13MoveForward = 12 , kNancy13Arrow = 14 , kNancy13RotateRight = 17 ,
  kNancy13RotateLeft = 18 , kNancy13Exit = 19 , kNancy13InvertedRotateRight = 20 , kNancy13InvertedRotateLeft = 21 ,
  kNancy13Blank = 24 , kNancy13PuzzleRotateCW = 25 , kNancy13PuzzleRotateCCW = 26 , kNancy13PuzzleDragHand = 28 ,
  kNancy13PuzzleDropHand = 29 , kNancy13PuzzleMoveUp = 30 , kNancy13PuzzleMoveDown = 31 , kNancy13PuzzleArrow = 34
}
 

Public Member Functions

void init (Common::SeekableReadStream *chunkStream)
 
void init (const ScriptBootData &boot)
 
int getCursorTypeByName (const Common::String &name) const
 
uint getItemCursorType (int16 itemID) const
 
void setCursor (CursorType type, int16 itemID, bool setFromScript, bool hotspotVariant=true)
 
void setCursorType (CursorType type, bool setFromScript=false, bool hotspotVariant=true)
 
void setCursorItemID (int16 itemID)
 
bool isHoldingItem () const
 
void showCursor (bool shouldShow)
 
void warpCursor (const Common::Point &pos)
 
void applyCursor ()
 
const Common::Point & getCurrentCursorHotspot ()
 
const Common::Rect & getCurrentCursorBounds ()
 
const Common::Rect & getPrimaryVideoInactiveZone ()
 
const Common::Point & getPrimaryVideoInitialPos ()
 

Public Attributes

const CursorType _puzzleExitCursor
 

The documentation for this class was generated from the following file: