mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
33 lines
892 B
C
33 lines
892 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 *x, s16 *y);
|
|
void DrawDoorMetatileAt(int x, int y, u16 *arr);
|
|
void ResetFieldCamera(void);
|
|
void ResetCameraUpdateInfo(void);
|
|
u32 InitCameraUpdateCallback(u8 trackedSpriteId);
|
|
void CameraUpdate(void);
|
|
void SetCameraPanningCallback(void (*callback)(void));
|
|
void SetCameraPanning(s16 horizontal, s16 vertical);
|
|
void InstallCameraPanAheadCallback(void);
|
|
void UpdateCameraPanning(void);
|
|
void FieldUpdateBgTilemapScroll(void);
|
|
|
|
#endif //GUARD_FIELD_CAMERA_H
|