ScummVM API documentation
Nancy::Action::RippedLetterPuzzle Class Reference
Inheritance diagram for Nancy::Action::RippedLetterPuzzle:
Nancy::Action::RenderActionRecord Nancy::Action::ActionRecord Nancy::RenderObject

Public Types

enum  SolveState { kNotSolved, kWaitForSound }
 
enum  RotationType { kRotationNone = 0, kRotation90 = 1, kRotation180 = 2 }
 
- Public Types inherited from Nancy::Action::ActionRecord
enum  ExecutionState { kBegin, kRun, kActionTrigger }
 
enum  ExecutionType { kOneShot = 1, kRepeating = 2 }
 

Public Member Functions

void init () override
 
void registerGraphics () override
 
void readData (Common::SeekableReadStream &stream) override
 
void execute () override
 
void handleInput (NancyInput &input) override
 
- Public Member Functions inherited from Nancy::Action::RenderActionRecord
 RenderActionRecord (uint zOrder)
 
void onPause (bool pause) override
 
- Public Member Functions inherited from Nancy::Action::ActionRecord
virtual CursorManager::CursorType getHoverCursor () const
 
- Public Member Functions inherited from Nancy::RenderObject
 RenderObject (uint16 zOrder)
 
 RenderObject (uint16 zOrder, Graphics::ManagedSurface &surface, const Common::Rect &srcBounds, const Common::Rect &destBounds)
 
virtual void updateGraphics ()
 
void moveTo (const Common::Point &position)
 
void moveTo (const Common::Rect &bounds)
 
void setVisible (bool visible)
 
void setTransparent (bool isTransparent)
 
bool isVisible () const
 
void grabPalette (byte *colors, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const Common::Path &paletteName, uint paletteStart=0, uint paletteSize=256)
 
void setPalette (const byte *colors, uint paletteStart=0, uint paletteSize=256)
 
bool hasMoved () const
 
Common::Rect getScreenPosition () const
 
Common::Rect getPreviousScreenPosition () const
 
Common::Rect convertToLocal (const Common::Rect &screen) const
 
Common::Rect convertToScreen (const Common::Rect &rect) const
 
Common::Rect getBounds () const
 
uint16 getZOrder () const
 

Public Attributes

Common::Path _imageName
 
Common::Array< Common::Rect_srcRects
 
Common::Array< Common::Rect_destRects
 
Common::Rect _rotateHotspot
 
Common::Rect _takeHotspot
 
Common::Rect _dropHotspot
 
RotationType _rotationType = kRotation90
 
Common::Array< int8 > _initOrder
 
Common::Array< byte > _initRotations
 
Common::Array< int8 > _solveOrder
 
Common::Array< byte > _solveRotations
 
Common::Array< int8 > _solveOrderAlt
 
Common::Array< byte > _solveRotationsAlt
 
Common::Array< Common::Array< byte > > _doubles
 
bool _useAltSolution = false
 
bool _useCustomPickUpTile = false
 
Common::Rect _customPickUpTileSrc
 
SoundDescription _takeSound
 
SoundDescription _dropSound
 
SoundDescription _rotateSound
 
SceneChangeWithFlag _solveExitScene
 
SoundDescription _solveSound
 
SceneChangeWithFlag _exitScene
 
Common::Rect _exitHotspot
 
int16 _customCursorID = -1
 
Misc::MouseFollowObject _pickedUpPiece
 
Graphics::ManagedSurface _image
 
SolveState _solveState = kNotSolved
 
RippedLetterPuzzleData_puzzleState = nullptr
 
- Public Attributes inherited from Nancy::Action::ActionRecord
Common::String _description
 
byte _type
 
ExecutionType _execType
 
DependencyRecord _dependencies
 
bool _isActive
 
bool _isDone
 
bool _hasHotspot
 
Common::Rect _hotspot
 
ExecutionState _state
 
int16 _days
 
DependencyRecord_cursorDependency
 
- Public Attributes inherited from Nancy::RenderObject
Graphics::ManagedSurface _drawSurface
 

Protected Member Functions

Common::String getRecordTypeName () const override
 
bool isViewportRelative () const override
 
void drawPiece (const uint pos, const byte rotation, const int pieceID=-1)
 
bool checkOrder (bool useAlt)
 
- Protected Member Functions inherited from Nancy::Action::ActionRecord
void finishExecution ()
 
virtual bool canHaveHotspot () const
 

Additional Inherited Members

- Protected Attributes inherited from Nancy::RenderObject
bool _needsRedraw
 
bool _isVisible
 
bool _hasMoved
 
uint16 _z
 
Common::Rect _previousScreenPosition
 
Common::Rect _screenPosition
 

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