mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-26 12:15:59 -05:00
This documents the `unk_02068344.c` file, which is in charge of calling the correct init/free functions for the dynamic map features, and call the correct map-specific collision check function. Dynamic map features are defined as features that can change the layout of a map according to player inputs, potentially also affecting their collision. Dynamic map features may encompass multiple map headers. Examples include the Sunyshore Gym dynamic map features with its bridges in multiple rooms, or the Platform Lift dynamic map features that handles maps with platform lifts (some rooms in Iron Island and the Pokémon League). Signed-off-by: Kuruyia <github@kuruyia.net>
19 lines
854 B
C
19 lines
854 B
C
#ifndef POKEPLATINUM_DYNAMIC_MAP_FEATURES_H
|
|
#define POKEPLATINUM_DYNAMIC_MAP_FEATURES_H
|
|
|
|
#include <nitro/fx/fx.h>
|
|
#include <nitro/types.h>
|
|
|
|
#include "field/field_system_decl.h"
|
|
|
|
typedef void (*DynamicMapFeaturesInitFunc)(FieldSystem *);
|
|
typedef void (*DynamicMapFeaturesFreeFunc)(FieldSystem *);
|
|
typedef BOOL (*DynamicMapFeaturesCheckCollisionFunc)(FieldSystem *, const int, const int, const fx32, BOOL *);
|
|
|
|
void DynamicMapFeatures_Init(FieldSystem *fieldSystem);
|
|
void DynamicMapFeatures_Free(FieldSystem *fieldSystem);
|
|
BOOL DynamicMapFeatures_CheckCollision(FieldSystem *fieldSystem, const int tileX, const int tileY, const fx32 height, BOOL *isColliding);
|
|
BOOL DynamicMapFeatures_WillPlayerJumpEternaGymClock(FieldSystem *fieldSystem, const int tileX, const int tileY, const fx32 unused3, int direction);
|
|
|
|
#endif // POKEPLATINUM_DYNAMIC_MAP_FEATURES_H
|