Skip to Content
The Alchemy Project

src/scene/shared/pushed_actor_fill_rectangle.c

The pushed-actor scenes (pushed_actor.c) and Venus Lighthouse's unused copy: a rectangle of metatiles given one metatile behavior.

Included by pushed_actor.c and venus_lighthouse.c.

Functions

NameDescription
static Sint32scMapGridFillCollisionRectangle ( Uint32 layer, Sint32 x, Sint32 z, Uint32 width, Uint32 height, Sint32 value)Sets the metatile behavior of a width by height rectangle of metatiles, from metatile (x, z), to value, on map grid layer 0 to 2, or (3 and up) in MapGridMetatileBuffer.

Description

The pushed-actor scenes (pushed_actor.c) and Venus Lighthouse's unused copy: a rectangle of metatiles given one metatile behavior.

Functions in detail

scMapGridFillCollisionRectangle

static Sint32 scMapGridFillCollisionRectangle( Uint32 layer, Sint32 x, Sint32 z, Uint32 width, Uint32 height, Sint32 value)

Sets the metatile behavior of a width by height rectangle of metatiles, from metatile (x, z), to value, on map grid layer 0 to 2, or (3 and up) in MapGridMetatileBuffer.

References MapGridMetatileBuffer, Sint32 and width.

Referenced by scCrossboneIsleSteppingStonesMoveSinkingBoulder(), scCrossboneIsleSteppingStonesStartMovingSinkingBoulder(), scCrossboneIsleSteppingStonesStrandLog(), scInit(), scKolimaForestCliffPushLog(), scKolimaForestEntrancePushLog(), scMogallForestSecondAreaPushLog(), scMogallForestThirdAreaUpdateSouthRock(), scMogallForestUpdateRockMetatiles(), scPushedActorBlockFootprint(), scPushedActorRoll(), scTunnelRuinsUpdateGreyPillarMetatiles(), scValeCaveApplyEntryState(), scValeCavePushLogNorth(), scValeCavePushLogOffLedge() and scValeCavePushLogOverEdge().

Definition at line 7 of file pushed_actor_fill_rectangle.c.