ScummVM API documentation
Macs2::Character Class Reference

Public Member Functions

bool calculatePath (Common::Point target)
 
void setWalkTarget (const Common::Point &target, bool snap)
 
void startPickup (Macs2::GameObject *object)
 
void getPathPolyline (Common::Array< Common::Point > &out) const
 
const Common::PointgetPosition () const
 
void setPosition (const Common::Point &newPosition)
 
uint16 getVerticalOffset () const
 
bool hasPendingVerticalMotion () const
 
bool fillCurrentAnimationFrame (uint16 advanceMode, Macs2::AnimFrame &out) const
 
Macs2::AnimFramegetCurrentPortrait (bool onRightSide=false, uint16 frameIndex=0)
 
void update ()
 

Public Attributes

uint16 _pickupFrameCounter = 0
 
bool _pickupItemTransferred = false
 
bool _markedForDeletion = false
 
ObjectOrientation _previousOrientation = OrientationNone
 
Common::Point _targetPosition
 
int16 _stepDeltaX = 0
 
int16 _stepDeltaY = 0
 
int16 _stepError = 0
 
bool _stepDirectionSet = false
 
Common::Array< uint16 > _path
 
int16 _currentPathIndex = 0
 
Common::Point _pathFinalDestination
 
Common::Array< uint8 > _pathfindingOverlay
 
Macs2::GameObject_gameObject = nullptr
 
uint16 _motionTargetVerticalOffset = 0
 
uint16 _motionVerticalOffsetDelta = 0
 
uint16 _motionDistanceUnits = 0
 
uint16 _motionProgress = 0
 
uint16 _motionStartVerticalOffset = 0
 

Member Function Documentation

◆ getPathPolyline()

void Macs2::Character::getPathPolyline ( Common::Array< Common::Point > &  out) const

Remaining walk polyline: current position, unused path nodes, final destination.


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