pokeemerald/include/field_map_obj.h

57 lines
2.1 KiB
C
Raw Normal View History

2017-09-06 12:35:16 +00:00
#ifndef POKEEMERALD_FIELD_MAP_OBJ_H
#define POKEEMERALD_FIELD_MAP_OBJ_H
2017-09-08 18:16:44 +00:00
#define NUM_OBJECT_GRAPHICS_INFO 239
#define SPRITE_VAR 240
2017-09-06 12:35:16 +00:00
// Exported struct declarations
// Exported RAM declarations
// Exported ROM declarations
2017-09-06 13:29:59 +00:00
void sub_808D438(void);
2017-09-06 13:49:51 +00:00
u8 GetFieldObjectIdByLocalIdAndMap(u8, u8, u8);
bool8 TryGetFieldObjectIdByLocalIdAndMap(u8, u8, u8, u8 *);
2017-09-06 13:52:31 +00:00
u8 GetFieldObjectIdByXY(s16, s16);
void FieldObjectSetDirection(struct MapObject *, u8);
2017-09-06 22:26:37 +00:00
u8 sub_808D4F4(void);
void RemoveFieldObjectByLocalIdAndMap(u8, u8, u8);
2017-09-07 00:28:36 +00:00
void npc_load_two_palettes__no_record(u16, u8);
void npc_load_two_palettes__and_record(u16, u8);
2017-09-08 01:04:32 +00:00
void pal_patch_for_npc(u16, u8);
2017-09-07 23:45:30 +00:00
void sub_808E16C(s16, s16);
2017-09-07 00:28:36 +00:00
void sub_8092FF0(s16, s16, s16 *, s16 *);
u8 FieldObjectDirectionToImageAnimId(u8);
2017-09-07 19:50:49 +00:00
void sub_80930E0(s16 *, s16 *, u8, u8);
2017-09-07 23:45:30 +00:00
void FieldObjectClearAnim(struct MapObject *);
void SpawnFieldObjectsInView(s16, s16);
u8 sprite_new(u8, u8, s16, s16, u8, u8);
u8 AddPseudoFieldObject(u16, void (*)(struct Sprite *), s16, s16, u8);
u8 show_sprite(u8, u8, u8);
u8 SpawnSpecialFieldObjectParametrized(u8, u8, u8, s16, s16, u8);
u8 SpawnSpecialFieldObject(struct MapObjectTemplate *);
2017-09-08 01:04:32 +00:00
void sub_8093038(s16, s16, s16 *, s16 *);
void CameraObjectReset1(void);
2017-09-08 01:17:55 +00:00
void FieldObjectSetGraphicsId(struct MapObject *, u8);
2017-09-08 17:41:55 +00:00
void FieldObjectTurn(struct MapObject *, u8);
2017-09-08 17:46:21 +00:00
void FieldObjectTurnByLocalIdAndMap(u8, u8, u8, u8);
const struct MapObjectGraphicsInfo *GetFieldObjectGraphicsInfo(u8);
void npc_by_local_id_and_map_set_field_1_bit_x20(u8, u8, u8, u8);
2017-09-08 21:34:12 +00:00
void gpu_pal_allocator_reset__manage_upper_four(void);
void sub_808E82C(u8, u8, u8, s16, s16);
void sub_808E7E4(u8, u8, u8);
void sub_808E78C(u8, u8, u8, u8);
void sub_808E75C(s16, s16);
void FieldObjectGetLocalIdAndMap(struct MapObject *, u8 *, u8 *, u8 *);
2017-09-09 01:27:02 +00:00
void npc_coords_shift(struct MapObject *, s16, s16);
2017-09-09 01:35:46 +00:00
void sub_808EB08(struct MapObject *, s16, s16);
2017-09-12 20:17:52 +00:00
void sub_808F254(u8, u8, u8);
2017-09-13 13:41:11 +00:00
void FieldObjectStep(struct MapObject *, struct Sprite *, bool8(struct MapObject *, struct Sprite *));
2017-09-06 13:29:59 +00:00
2017-09-06 13:38:38 +00:00
// Exported data declarations
extern const struct SpriteTemplate *const gFieldEffectObjectTemplatePointers[];
2017-09-06 12:35:16 +00:00
#endif //POKEEMERALD_FIELD_MAP_OBJ_H