ScummVM API documentation
Hollywood::ActorPathController Class Reference

#include <actor_path_controller.h>

Public Member Functions

void initialize (uint routeBoundaryPointCount, uint routeStepCount, uint paletteRegionCount, uint boundaryCandidateCount, uint routeStepCountPerRegionPair, const byte *defaultStepDeltas, uint defaultStepDeltaCount)
 
bool loadRouteTables (const Common::Array< byte > &metadata, uint routeBoundaryOffset, uint routeStepsOffset, const char *archiveName)
 
void resetStepDeltas (const byte *table, uint tableSize)
 
void queueWithPaletteRegionRouting (ActorPathControllerDelegate &delegate, int startX, int startY, int targetX, int targetY, byte initialDrawOrderMode, byte initialFacing, byte initialCel, byte finalFacing, byte finalCel, byte invalidFacing, byte invalidCel, const byte *baseStepDeltas, uint baseStepDeltaCount)
 
byte calculateFacingTowardPoint (int fromX, int fromY, int toX, int toY) const
 

Public Attributes

Common::Array< ScenePoint > _routeBoundaryPoints
 
Common::Array< byte > _routeSteps
 
Common::Array< ActorPathFrame > _frames
 
Common::Array< byte > _stepDeltas
 

Detailed Description

Expands resource-defined palette-region routes into actor animation _frames.

Resource route tables select intermediate regions and candidate boundary points. The delegate maps coordinates to regions and may customize each intermediate and final segment.


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