ScummVM API documentation
Darkseed::Player Class Reference

Public Member Functions

bool loadAnimations (const Common::Path &filename)
 
const SpritegetSprite (int frameNo) const
 
void updateSprite ()
 
void draw ()
 
bool isAtPosition (int x, int y) const
 
bool isAtWalkTarget () const
 
void calculateWalkTarget ()
 
void changeDirection (int16 oldDir, int16 newDir)
 
void playerFaceWalkTarget ()
 
int getWidth ()
 
int getHeight ()
 
void updatePlayerPositionAfterRoomChange ()
 
void setPlayerTowardsBedroom ()
 
void walkToNextConnector ()
 

Public Attributes

Nsp _animations
 
int _frameIdx = 0
 
int _direction = 0
 
Common::Point _position
 
Common::Point _positionLong
 
Common::Point _walkTarget
 
Common::Point _finalTarget
 
int16 _playerSpriteWalkIndex_maybe = 0
 
int16 _playerWalkFrameDeltaOffset = 0
 
int16 _playerNewFacingDirection_maybe = 0
 
uint16 _playerWalkFrameIdx = 0
 
bool _actionToPerform = false
 
bool _playerIsChangingDirection = false
 
bool _isAutoWalkingToBed = false
 
bool _heroMoving = false
 
bool _heroWaiting = false
 
int _walkPathIndex = -1
 
uint16 _numConnectorsInWalkPath = 0
 
Common::Array< Common::Point_connectorList
 
int16 _sequenceRotation = -1
 
bool _walkToSequence = false
 
Common::Point _walkToSequencePoint
 
bool _flipSprite = false
 

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