pokeemerald/include/field_camera.h
2021-04-06 17:17:41 -04:00

33 lines
857 B
C

#ifndef GUARD_FIELD_CAMERA_H
#define GUARD_FIELD_CAMERA_H
struct CameraObject
{
void (*callback)(struct CameraObject *);
u32 spriteId;
s32 movementSpeedX;
s32 movementSpeedY;
s32 x;
s32 y;
};
extern struct CameraObject gFieldCamera;
extern u16 gTotalCameraPixelOffsetX;
extern u16 gTotalCameraPixelOffsetY;
void DrawWholeMapView(void);
void CurrentMapDrawMetatileAt(int x, int y);
void GetCameraOffsetWithPan(s16 *a0, s16 *a1);
void DrawDoorMetatileAt(int x, int y, u16 *arr);
void ResetFieldCamera(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);
void FieldUpdateBgTilemapScroll(void);
#endif //GUARD_FIELD_CAMERA_H