src/beanstalkSubtask.c file

Classes

struct Data

Functions

void sub_0807C898(void)
void sub_0805BB74(s32 lightLevel)
void LoadRoomGfx(void)
void LoadRoomTileSet(void)
void sub_0807C4F8(void)
void sub_0801AD6C(const Data*, u32)
auto sub_0801A4F8(void) -> bool32
auto sub_0801AA58(Entity*, u32, u32) -> bool32
void RenderMapLayerToSubTileMap(u16* tileMap, MapLayer* mapLayer)
Renders a tileMap with 16x16 tiles into a subTileMap with 8x8 tiles.
auto GetTileSetIndexForSpecialTile(u32 position, u32 tileIndex) -> u32
auto sub_0807BDB8(Entity* this, u32 param_2) -> u32
void sub_0804B388(u32 a1, u32 a2)
auto sub_080A7CFC(u32 a1, u32 tmp) -> u32
void OpenSmallChest(u32 pos, u32 layer)
auto sub_08079778() -> bool32
auto sub_08080734(u32 param_1, u32 param_2) -> Transition*
auto sub_0801A2B0(MapLayer* mapLayer, u32 position, u32 collisionType) -> bool32
auto sub_0801A9F0(u32 param_1, u32 param_2, u32 param_3) -> bool32
auto sub_0801A570(Entity*, u32) -> u32
auto sub_0801A458(MapLayer* mapLayer, u32 position, u32 collisionType) -> bool32
auto sub_0801A370(MapLayer* mapLayer, u32 position) -> bool32
auto sub_0801A8D0(Entity* this, u32 param_2) -> u32
void sub_0801967C(void)
void sub_08019698(void)
void sub_08019740(void)
void sub_08019764(void)
void sub_080197A0(void)
void SetBGDefaults(void)
void LoadMapData(MapDataDefinition* dataDefinition)
auto UpdatePlayerCollision(void) -> u32
auto sub_0801A980(void) -> bool32
void sub_0801AC98(void)
auto sub_0801AE30(void) -> bool32
auto sub_0801AE34(void) -> u32
void sub_0801AE44(bool32 loadGfx)
void SetMultipleTiles(const TileData* tileData, u32 basePosition, u32 layer)
Sets multiple tiles at once.
void RegisterInteractTile(u32 tileIndex, u32 tilePos, u32 layer)
void UnregisterInteractTile(u32 tilePos, s32 layer)
void sub_0801AFE4(void)

Variables

void gMapData
u8 gUpdateVisibleTiles
u16 gMapDataTopSpecial
u16 gMapDataBottomSpecial
const u8 gGlobalGfxAndPalettes
const u8 gEntityListLUT
const u16 gUnk_080B4410
void(*const gUnk_080B4458
const s16 gUnk_080B4468
const s16 gUnk_080B4478
const s16 gUnk_080B4488
const s16 gUnk_080B4490
const u16 gUnk_080B44A0
const s16 gUnk_080B44A8
const u32 gUnk_080B44B8
const Data gUnk_080B44C0
const Data gUnk_080B44C2
const struct_080B44D0 gUnk_080B44D0

Function documentation

void RenderMapLayerToSubTileMap(u16* tileMap, MapLayer* mapLayer)

Renders a tileMap with 16x16 tiles into a subTileMap with 8x8 tiles.

Takes into account the special tile indicess >= 0x4000 using GetTileSetIndexForSpecialTile.

void SetMultipleTiles(const TileData* tileData, u32 basePosition, u32 layer)

Sets multiple tiles at once.

Parameters
tileData [u16 tileIndex, s16 positionOffset], ends with 0xffff
basePosition the position the offsets in tileData are based on
layer the tile layer