Classes | |
| class | Piece |
Public Types | |
| enum | PuzzleType { kCollision, kTileMove } |
Public Types inherited from Nancy::Action::ActionRecord | |
| enum | ExecutionState { kBegin, kRun, kActionTrigger } |
| enum | ExecutionType { kOneShot = 1, kRepeating = 2 } |
Public Member Functions | |
| CollisionPuzzle (PuzzleType type) | |
| void | init () override |
| void | registerGraphics () override |
| void | updateGraphics () 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) | |
| 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 |
Protected Types | |
| enum | WallType { kWallLeft = 6, kWallUp = 7, kWallDown = 8, kWallRight = 9, kBlock = 10 } |
Protected Member Functions | |
| Common::String | getRecordTypeName () const override |
| bool | isViewportRelative () const override |
| Common::Point | movePiece (uint pieceID, WallType direction) |
| Common::Rect | getScreenPosition (Common::Point gridPos) |
| void | drawGrid () |
Protected Member Functions inherited from Nancy::Action::ActionRecord | |
| void | finishExecution () |
| virtual bool | canHaveHotspot () const |
Protected Attributes | |
| Common::Path | _imageName |
| Common::Array< Common::Array< uint16 > > | _grid |
| Common::Array< Common::Point > | _startLocations |
| Common::Array< Common::Rect > | _pieceSrcs |
| Common::Array< Common::Rect > | _homeSrcs |
| Common::Rect | _verticalWallSrc |
| Common::Rect | _horizontalWallSrc |
| Common::Rect | _blockSrc |
| Common::Point | _tileMoveExitPos = Common::Point(-1, -1) |
| uint | _tileMoveExitSize = 0 |
| bool | _usesExitButton = false |
| Common::Rect | _exitButtonSrc |
| Common::Rect | _exitButtonDest |
| Common::Point | _gridPos |
| uint16 | _lineWidth = 0 |
| uint16 | _framesPerMove = 0 |
| uint32 | _timerTime = 0 |
| Common::Array< Common::Rect > | _timerSrcs |
| Common::Array< int16 > | _timerFlagIds |
| Common::Rect | _timerDest |
| SoundDescription | _moveSound |
| SoundDescription | _homeSound |
| SoundDescription | _wallHitSound |
| SoundDescription | _exitButtonSound |
| SceneChangeWithFlag | _solveScene |
| uint16 | _solveSoundDelay = 0 |
| SoundDescription | _solveSound |
| SceneChangeWithFlag | _exitScene |
| Common::Rect | _exitHotspot |
| Graphics::ManagedSurface | _image |
| Common::Array< Piece > | _pieces |
| int | _currentlyAnimating = -1 |
| int | _currentAnimFrame = -1 |
| Common::Point | _lastPosition = { -1, -1 } |
| uint32 | _solveSoundPlayTime = 0 |
| bool | _solved = false |
| uint32 | _puzzleStartTime = 0 |
| int | _currentTimerGraphic = -1 |
| PuzzleType | _puzzleType |
Protected Attributes inherited from Nancy::RenderObject | |
| bool | _needsRedraw |
| bool | _isVisible |
| bool | _hasMoved |
| uint16 | _z |
| Common::Rect | _previousScreenPosition |
| Common::Rect | _screenPosition |
Additional Inherited Members | |
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 |