Skip to Content
The Alchemy Project

src/scene/shared/cracked_tile_find.c

Included by anemos_inner_sanctum.c, jupiter_lighthouse_aerie.c, jupiter_lighthouse_aerie_beacon.c, jupiter_lighthouse_basement.c, jupiter_lighthouse_central_room.c, jupiter_lighthouse_cracked_floor.c, jupiter_lighthouse_entrance.c, jupiter_lighthouse_ground_floor.c, jupiter_lighthouse_left_tower_lower.c, jupiter_lighthouse_locked_doors.c, jupiter_lighthouse_right_tower_lower.c, jupiter_lighthouse_right_tower_upper.c, jupiter_lighthouse_side_halls.c, jupiter_lighthouse_terraces.c, jupiter_lighthouse_upper_hall.c, mars_lighthouse_entrance.c, mars_lighthouse_star_room.c and mars_lighthouse_towers.c.

Functions

NameDescription
Sint32scCrackedTileFind (Uint32 kind, Sint32 flag, Sint32 flagByte, Sint32 x, Sint32 z)Finds the room's cracked tiles: every metatile whose script is kind (whole) or kind + 1 (cracked), each given the next flag from flags; returns how many.

Functions in detail

scCrackedTileFind

Sint32 scCrackedTileFind(Uint32 kind, Sint32 flag, Sint32 flagByte, Sint32 x, Sint32 z)

Finds the room's cracked tiles: every metatile whose script is kind (whole) or kind + 1 (cracked), each given the next flag from flags; returns how many.

References CrackedTiles, fdActorGet(), fdMapGridCopyMetatiles(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, mnVRAMLoad(), scCrackedTileUpdate(), Sint32, syHeapAllocate(), syHeapRelease(), sySetTickEvent() and syVRAMCacheFindFreeEntry().

Referenced by scInit().

Definition at line 4 of file cracked_tile_find.c.