2017-10-12 09:06:19 +02:00
|
|
|
#ifndef GUARD_ROM4_H
|
|
|
|
#define GUARD_ROM4_H
|
|
|
|
|
2017-10-23 00:55:07 +02:00
|
|
|
#include "main.h"
|
|
|
|
|
2017-10-12 09:06:19 +02:00
|
|
|
struct UnkPlayerStruct
|
|
|
|
{
|
|
|
|
u8 player_field_0;
|
|
|
|
u8 player_field_1;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct LinkPlayerMapObject
|
|
|
|
{
|
|
|
|
u8 active;
|
|
|
|
u8 linkPlayerId;
|
|
|
|
u8 mapObjId;
|
|
|
|
u8 mode;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct UCoords32
|
|
|
|
{
|
|
|
|
u32 x, y;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct LinkPlayerMapObject gLinkPlayerMapObjects[4];
|
2017-10-23 00:55:07 +02:00
|
|
|
extern MainCallback gFieldCallback;
|
2017-10-12 09:06:19 +02:00
|
|
|
|
|
|
|
void IncrementGameStat(u8 index);
|
|
|
|
|
|
|
|
void Overworld_SetMapObjTemplateCoords(u8, s16, s16);
|
|
|
|
void Overworld_SetMapObjTemplateMovementType(u8, u8);
|
|
|
|
|
|
|
|
void Overworld_SetWarpDestination(s8 mapGroup, s8 mapNum, s8 warpId, s8 x, s8 y);
|
|
|
|
|
2017-10-25 03:27:46 +02:00
|
|
|
void saved_warp2_set(int unused, s8 mapGroup, s8 mapNum, s8 warpId);
|
2017-10-12 09:06:19 +02:00
|
|
|
void saved_warp2_set_2(int unused, s8 mapGroup, s8 mapNum, s8 warpId, s8 x, s8 y);
|
|
|
|
void Overworld_SetHealLocationWarp(u8);
|
|
|
|
void sub_8084DD4(s8 mapGroup, s8 mapNum, s8 warpId, s8 x, s8 y);
|
|
|
|
void sub_8084E2C(s8, s8, s8, s8, s8);
|
|
|
|
void sub_8084E80(s8, s8, s8, s8, s8);
|
|
|
|
void sub_8084EBC(s16, s16);
|
|
|
|
|
|
|
|
void player_avatar_init_params_reset(void);
|
|
|
|
|
|
|
|
void Overworld_SetFlashLevel(s32 a1);
|
|
|
|
//u8 Overworld_GetFlashLevel(void);
|
|
|
|
void sub_8085524(u16);
|
|
|
|
|
|
|
|
void Overworld_SetSavedMusic(u16);
|
|
|
|
void Overworld_ChangeMusicToDefault(void);
|
|
|
|
void Overworld_ChangeMusicTo(u16);
|
|
|
|
|
|
|
|
bool32 is_c1_link_related_active(void);
|
2017-11-10 03:48:27 +01:00
|
|
|
extern u16 gUnknown_03005DA8;
|
2017-10-12 09:06:19 +02:00
|
|
|
|
|
|
|
void strange_npc_table_clear(void);
|
2017-10-31 02:08:28 +01:00
|
|
|
const struct MapHeader *get_mapheader_by_bank_and_number(u16, u16);
|
2017-10-12 09:06:19 +02:00
|
|
|
void FieldObjectMoveDestCoords(struct MapObject *, u32, s16 *, s16 *);
|
|
|
|
void sub_8086230(void);
|
|
|
|
void c2_exit_to_overworld_2_switch(void);
|
2017-10-14 15:52:56 +02:00
|
|
|
bool32 sub_8087598(void);
|
2017-10-12 09:06:19 +02:00
|
|
|
void c2_exit_to_overworld_1_continue_scripts_restart_music(void);
|
2017-10-23 00:55:07 +02:00
|
|
|
void warp_in(void);
|
2017-10-31 02:08:28 +01:00
|
|
|
u8 get_map_light_level_by_bank_and_number(s8 mapGroup, s8 mapNum);
|
2017-11-01 03:34:12 +01:00
|
|
|
void sub_8086194(void);
|
2017-11-01 05:34:57 +01:00
|
|
|
void sub_8084CCC(u8 spawn);
|
2017-10-25 03:10:58 +02:00
|
|
|
void warp1_set_2(s8 mapGroup, s8 mapNum, s8 warpNum);
|
2017-10-25 03:27:46 +02:00
|
|
|
void c2_load_new_map(void);
|
2017-10-25 14:34:41 +02:00
|
|
|
void copy_saved_warp2_bank_and_enter_x_to_warp1(u8 unused);
|
|
|
|
void mapldr_default(void);
|
2017-10-12 09:06:19 +02:00
|
|
|
|
2017-11-13 07:01:27 +01:00
|
|
|
bool32 sub_80875C8(void);
|
|
|
|
bool32 sub_8087634(void);
|
|
|
|
bool32 sub_808766C(void);
|
|
|
|
|
2017-10-12 09:06:19 +02:00
|
|
|
#endif //GUARD_ROM4_H
|