Alchemy

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.

FieldDeclared as
footprintIndexs32 footprintIndexThe large thing's row in gStagedActor_FootprintKinds and gStagedActor_FootprintBounds, 0 to 5.
actorSlots32 actorSlotthe large thing's actor number, 8 to 65
positionstruct FieldPosition position16.16 pixels while moving; converted to cells by footprint redraws.
callbackvoid (*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.

Line 14

StagedActorFootprint

struct StagedActorFootprint

A footprint's bounds, as gStagedActor_FootprintBounds holds four words a footprint; no TBS code names this struct.

FieldDeclared as
x0s32 x0left edge, pixels from the thing's position
z0s32 z0top edge, pixels from the thing's position
x1s32 x1right edge, pixels from the thing's position
z1s32 z1bottom edge, pixels from the thing's position

Line 28

Globals, without a comment: offsetof, offsetof.

On this page