2017-09-17 01:59:14 +00:00
|
|
|
#ifndef GUARD_FIELD_CAMERA_H
|
|
|
|
#define GUARD_FIELD_CAMERA_H
|
|
|
|
|
|
|
|
// Exported type declarations
|
|
|
|
|
2017-09-17 02:15:54 +00:00
|
|
|
struct CameraObject
|
|
|
|
{
|
|
|
|
void (*callback)(struct CameraObject *);
|
2018-04-18 12:12:41 +00:00
|
|
|
u32 spriteId;
|
2018-10-16 13:55:16 +00:00
|
|
|
s32 movementSpeedX;
|
|
|
|
s32 movementSpeedY;
|
2017-09-17 02:15:54 +00:00
|
|
|
s32 x;
|
|
|
|
s32 y;
|
|
|
|
};
|
|
|
|
|
2017-09-17 01:59:14 +00:00
|
|
|
// Exported RAM declarations
|
2018-10-16 13:55:16 +00:00
|
|
|
extern struct CameraObject gFieldCamera;
|
|
|
|
extern u16 gTotalCameraPixelOffsetX;
|
|
|
|
extern u16 gTotalCameraPixelOffsetY;
|
2017-09-17 01:59:14 +00:00
|
|
|
|
|
|
|
// Exported ROM declarations
|
2017-10-13 15:09:36 +00:00
|
|
|
void DrawWholeMapView(void);
|
2017-10-25 00:19:33 +00:00
|
|
|
void CurrentMapDrawMetatileAt(int x, int y);
|
2018-01-14 19:45:44 +00:00
|
|
|
void sub_8089C08(s16 *a0, s16 *a1);
|
2018-01-07 23:50:13 +00:00
|
|
|
void DrawDoorMetatileAt(int x, int y, u16 *arr);
|
2018-02-13 23:58:22 +00:00
|
|
|
void move_tilemap_camera_to_upper_left_corner(void);
|
|
|
|
void sub_8057A58(void);
|
|
|
|
void ResetCameraUpdateInfo(void);
|
|
|
|
u32 InitCameraUpdateCallback(u8 a);
|
|
|
|
void CameraUpdate(void);
|
|
|
|
void SetCameraPanningCallback(void (*a)(void));
|
|
|
|
void SetCameraPanning(s16 a, s16 b);
|
|
|
|
void InstallCameraPanAheadCallback(void);
|
|
|
|
void UpdateCameraPanning(void);
|
2017-10-13 15:09:36 +00:00
|
|
|
|
2017-09-17 01:59:14 +00:00
|
|
|
#endif //GUARD_FIELD_CAMERA_H
|