2017-09-16 19:13:06 +00:00
|
|
|
#ifndef GUARD_FIELDMAP_H
|
|
|
|
#define GUARD_FIELDMAP_H
|
2017-09-16 17:54:33 +00:00
|
|
|
|
2018-09-18 15:03:24 +00:00
|
|
|
#define NUM_TILES_IN_PRIMARY 512
|
|
|
|
#define NUM_TILES_TOTAL 1024
|
|
|
|
#define NUM_METATILES_IN_PRIMARY 512
|
|
|
|
#define NUM_METATILES_TOTAL 1024
|
|
|
|
#define NUM_PALS_IN_PRIMARY 6
|
|
|
|
#define NUM_PALS_TOTAL 13
|
|
|
|
|
2018-06-20 22:41:51 +00:00
|
|
|
extern struct BackupMapLayout gUnknown_03005DC0;
|
2017-09-16 17:54:33 +00:00
|
|
|
|
2017-10-22 22:55:07 +00:00
|
|
|
u32 MapGridGetMetatileIdAt(int, int);
|
2017-10-13 15:09:36 +00:00
|
|
|
u32 MapGridGetMetatileBehaviorAt(int, int);
|
2017-10-12 07:06:19 +00:00
|
|
|
void MapGridSetMetatileIdAt(int, int, u16);
|
2017-10-22 22:55:07 +00:00
|
|
|
void MapGridSetMetatileEntryAt(int, int, u16);
|
2017-09-13 09:16:26 +00:00
|
|
|
void GetCameraCoords(u16*, u16*);
|
2018-05-09 10:07:56 +00:00
|
|
|
bool8 MapGridIsImpassableAt(int, int);
|
|
|
|
int GetMapBorderIdAt(int x, int y);
|
|
|
|
int CanCameraMoveInDirection(int direction);
|
2017-10-22 22:55:07 +00:00
|
|
|
u16 GetBehaviorByMetatileId(u16 metatileId);
|
2018-02-13 23:58:22 +00:00
|
|
|
void sav1_camera_get_focus_coords(u16 *x, u16 *y);
|
2018-04-18 12:12:41 +00:00
|
|
|
u8 MapGridGetMetatileLayerTypeAt(s32 x, s32 y);
|
2018-06-11 15:23:14 +00:00
|
|
|
u8 MapGridGetZCoordAt(int x, int y);
|
2018-04-18 12:12:41 +00:00
|
|
|
u8 CameraMove(s32 deltaX, s32 deltaY);
|
2018-05-09 10:07:56 +00:00
|
|
|
void mapheader_copy_mapdata_with_padding(struct MapHeader *mapHeader);
|
|
|
|
void map_copy_with_padding(u16 *map, u16 width, u16 height);
|
|
|
|
void mapheader_copy_mapdata_of_adjacent_maps(struct MapHeader *);
|
|
|
|
void fillSouthConnection(struct MapHeader const *, struct MapHeader const *, s32);
|
|
|
|
void fillNorthConnection(struct MapHeader const *, struct MapHeader const *, s32);
|
|
|
|
void fillWestConnection(struct MapHeader const *, struct MapHeader const *, s32);
|
|
|
|
void fillEastConnection(struct MapHeader const *, struct MapHeader const *, s32);
|
|
|
|
void mapdata_from_sav2(void);
|
|
|
|
bool8 sub_8088BF0(u16*, u16, u8);
|
|
|
|
struct MapConnection *sub_8088950(u8 direction, int x, int y);
|
|
|
|
bool8 sub_80889A8(u8 direction, int x, int y, struct MapConnection *connection);
|
|
|
|
bool8 sub_8088A0C(int x, int src_width, int dest_width, int offset);
|
2017-09-16 17:54:33 +00:00
|
|
|
|
2018-05-10 23:36:57 +00:00
|
|
|
void SpriteCB_PokeballGlow(struct Sprite *);
|
|
|
|
void SpriteCB_PokecenterMonitor(struct Sprite *);
|
|
|
|
void SpriteCB_HallOfFameMonitor(struct Sprite *);
|
|
|
|
|
2017-09-16 19:13:06 +00:00
|
|
|
#endif //GUARD_FIELDMAP_H
|