22#ifndef HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_ACTOR_PATH_CONTROLLER_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_ACTOR_PATH_CONTROLLER_H
25#include "common/array.h"
26#include "common/types.h"
28#include "hollywood/monsters/scenes/playable/actor_types.h"
29#include "hollywood/monsters/scenes/scene_data.h"
34 kActorPathStepDeltaTableSize = 72
38extern const byte kActorPathStepDeltaTableSet00[kActorPathStepDeltaTableSize];
39extern const byte kActorPathStepDeltaTableSetB4[kActorPathStepDeltaTableSize];
40extern const byte kActorPathStepDeltaTableSet87[kActorPathStepDeltaTableSize];
41extern const byte kActorPathStepDeltaTableSet5A[kActorPathStepDeltaTableSize];
54 virtual byte paletteRegionAt(
int x,
int y)
const = 0;
55 virtual bool customizeRouteSegment(
byte currentRegion,
byte nextRegion,
const ActorPathBuildState &state,
56 const ScenePoint &boundary,
int &requestedFacing,
bool &restoredStepDeltas) = 0;
57 virtual bool customizeRouteFinal(
byte currentRegion,
byte targetRegion,
const ActorPathBuildState &state,
58 int targetX,
int targetY,
int &requestedFacing,
bool &restoredStepDeltas) = 0;
72 void initialize(uint routeBoundaryPointCount, uint routeStepCount, uint paletteRegionCount,
73 uint boundaryCandidateCount, uint routeStepCountPerRegionPair,
74 const byte *defaultStepDeltas, uint defaultStepDeltaCount);
76 uint routeStepsOffset,
const char *archiveName);
77 void resetStepDeltas(
const byte *table, uint tableSize);
79 int targetX,
int targetY,
byte initialDrawOrderMode,
byte initialFacing,
byte initialCel,
80 byte finalFacing,
byte finalCel,
byte invalidFacing,
byte invalidCel,
81 const byte *baseStepDeltas, uint baseStepDeltaCount);
83 byte calculateFacingTowardPoint(
int fromX,
int fromY,
int toX,
int toY)
const;
92 byte finalFacing,
byte finalCel,
int requestedFacing,
byte invalidFacing,
byte invalidCel);
94 ScenePoint nearestPaletteRouteBoundaryPoint(
int startX,
int startY,
byte currentRegion,
byte nextRegion)
const;
95 ScenePoint bestPaletteRouteBoundaryPoint(
int startX,
int startY,
int targetX,
int targetY,
96 byte currentRegion,
byte targetRegion)
const;
97 byte calculateMovementFacingForPath(
int fromX,
int fromY,
int toX,
int toY,
int requestedFacing)
const;
98 uint calculateWalkStepCountForAxisDelta(
int startAxis,
int targetAxis,
byte facing,
byte cel)
const;
99 byte nextCel(
byte cel)
const;
100 uint stepDelta(
byte facing,
byte cel)
const;
102 uint _paletteRegionCount;
103 uint _boundaryCandidateCount;
104 uint _routeStepCountPerRegionPair;
107const byte *defaultActorPathStepDeltaTable();
108uint defaultActorPathStepDeltaTableSize();
Definition: actor_path_controller.h:50
Definition: actor_path_controller.h:68
Definition: actor_types.h:59
Definition: scene_data.h:29