Skip to Content
The Alchemy Project

src/scene/shared/actor_set_metatile_open.c

Included by airs_rock_inside.c, alhafran_cave.c, eastern_alhafra.c, gabomba_statue.c, jupiter_lighthouse_right_tower_lower.c, mars_lighthouse_entrance.c, crumbling_pillar.c, yampi_desert.c and yampi_desert_cave.c.

Enumerations

NameDescription
enumSTAKE_KIND { STAKE_WOOD, STAKE_STONE, STAKE_MOSSY_STONE }A stake's look in stake.png, the kind its (actor, kind, flag) entry gives.

Functions

NameDescription
voidfdActorSetMetatileOpen (Sint32 id, Uint32 kind, Sint32 flag, Sint32 layer)A stake as its flag leaves it: driven down by Pound, its metatile is open ground and it is drawn underfoot, sunk to its top; still standing, its metatile is a wall.

Enumerations in detail

STAKE_KIND

enum STAKE_KIND

A stake's look in stake.png, the kind its (actor, kind, flag) entry gives.

EnumeratorValueDescription
STAKE_WOOD
STAKE_STONE
STAKE_MOSSY_STONE

Definition at line 2 of file actor_set_metatile_open.c.

Functions in detail

fdActorSetMetatileOpen

void fdActorSetMetatileOpen(Sint32 id, Uint32 kind, Sint32 flag, Sint32 layer)

A stake as its flag leaves it: driven down by Pound, its metatile is open ground and it is drawn underfoot, sunk to its top; still standing, its metatile is a wall. kind is its look (STAKE_KIND).

References fdActorGetById(), fdActorGetMetatileIndex(), fdActorSelectAnimation(), Sint32 and syGameFlagGet().

Referenced by fdPoundSinkTarget(), scActorsSetMetatilesOpen(), scGabombaStatuePlaceSwitchActors(), scPillarPlace() and scYampiDesertPlaceStakes().

Definition at line 12 of file actor_set_metatile_open.c.