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

Public Member Functions

void init () 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)
 
virtual void registerGraphics ()
 
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  BulAction {
  kNone, kRoll, kPass, kReset,
  kCapture
}
 

Protected Member Functions

void movePiece (bool player)
 
void reset (bool capture)
 
Common::String getRecordTypeName () const override
 
bool isViewportRelative () const override
 
- Protected Member Functions inherited from Nancy::Action::ActionRecord
void finishExecution ()
 
virtual bool canHaveHotspot () const
 

Protected Attributes

Common::Path _imageName
 
uint16 _numCells = 0
 
uint16 _numPieces = 0
 
uint16 _numRolls = 0
 
uint16 _playerStart = 0
 
uint16 _enemyStart = 0
 
Common::Array< Common::Rect_diceDestsPlayer
 
Common::Array< Common::Rect_diceDestsEnemy
 
Common::Array< Common::Rect_cellDests
 
Common::Array< Common::Rect_playerBarracksDests
 
Common::Array< Common::Rect_playerJailDests
 
Common::Array< Common::Rect_enemyBarracksDests
 
Common::Array< Common::Rect_enemyJailDests
 
Common::Rect _rollButtonDest
 
Common::Rect _passButtonDest
 
Common::Rect _resetButtonDest
 
Common::Rect _playerLightDest
 
Common::Rect _enemyLightDest
 
Common::Array< Common::Rect_diceBlackSrcs
 
Common::Array< Common::Rect_diceCleanSrcs
 
Common::Rect _playerSrc
 
Common::Rect _enemySrc
 
Common::Rect _playerCapturedSrc
 
Common::Rect _enemyCapturedSrc
 
Common::Rect _playerBarracksSrc
 
Common::Rect _enemyBarracksSrc
 
Common::Rect _playerJailSrc
 
Common::Rect _enemyJailSrc
 
Common::Rect _rollButtonSrc
 
Common::Rect _passButtonSrc
 
Common::Rect _passButtonDisabledSrc
 
Common::Rect _resetButtonSrc
 
Common::Rect _playerLightSrc
 
Common::Rect _enemyLightSrc
 
SoundDescription _moveSound
 
SoundDescription _playerCapturedSound
 
SoundDescription _enemyCapturedSound
 
SoundDescription _rollSound
 
SoundDescription _passSound
 
SoundDescription _resetSound
 
SceneChangeWithFlag _solveScene
 
uint16 _solveSoundDelay = 0
 
SoundDescription _solveSound
 
SceneChangeWithFlag _exitScene
 
uint16 _loseSoundDelay = 0
 
SoundDescription _loseSound
 
Common::Rect _exitHotspot
 
Graphics::ManagedSurface _image
 
int16 _playerPos = 0
 
int16 _playerPieces = 0
 
int16 _enemyPos = 0
 
int16 _enemyPieces = 0
 
uint16 _turn = 0
 
uint16 _moveDiff = 0
 
uint32 _nextMoveTime = 0
 
bool _pushedButton = false
 
bool _changeLight = false
 
BulAction _currentAction = kNone
 
bool _playerWon = false
 
- Protected Attributes inherited from Nancy::RenderObject
bool _needsRedraw
 
bool _isVisible
 
bool _hasMoved
 
uint16 _z
 
Common::Rect _previousScreenPosition
 
Common::Rect _screenPosition
 

Additional Inherited Members

- Public Types inherited from Nancy::Action::ActionRecord
enum  ExecutionState { kBegin, kRun, kActionTrigger }
 
enum  ExecutionType { kOneShot = 1, kRepeating = 2 }
 
- 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
 

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