staged_actor.h
games/tbs/include/staged_actor.h on GitHub
Structures
StagedActorProbe
struct StagedActorProbe
Where a large thing ahead of the leader would roll to: its footprint, its actor, that position, and a callback during the leader's follow-through.
| Field | Declared as | |
|---|---|---|
footprintIndex | s32 footprintIndex | The large thing's row in gStagedActor_FootprintKinds and gStagedActor_FootprintBounds, 0 to 5. |
actorSlot | s32 actorSlot | the large thing's actor number, 8 to 65 |
position | struct FieldPosition position | 16.16 pixels while moving; converted to cells by footprint redraws. |
callback | void (*callback)(void) | Run as the leader follows the rolling thing, when not null; the probe clears it. |
Used by AltmillerCave_MoveStagedActorToClearPosition, CrossboneIslePillarRooms_DrawRaisedFootprint, CrossboneIslePillarRooms_QueryFootprint, CrossboneIslePillarRooms_RestoreGroundFootprint, Event_PushFirstRoomBlock, Event_PushPillar, Event_PushSinkingPillar, KolimaForestBridge_PushLog, KolimaForestClearing_PushLog, KolimaForestRiver_PushLog, MercuryLighthouse_MoveChannelBlocks, MercuryLighthouse_MoveStairAndFountainBlocks, MogallForest_FirstArea_PushLog, MogallForest_SecondArea_PushLog, MogallForest_ThirdArea_PushLog, offsetof.
StagedActorFootprint
struct StagedActorFootprint
A footprint's bounds, as gStagedActor_FootprintBounds holds four words a footprint; no TBS code names this struct.
| Field | Declared as | |
|---|---|---|
x0 | s32 x0 | left edge, pixels from the thing's position |
z0 | s32 z0 | top edge, pixels from the thing's position |
x1 | s32 x1 | right edge, pixels from the thing's position |
z1 | s32 z1 | bottom edge, pixels from the thing's position |