diff options
author | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2020-03-28 10:11:45 +0800 |
---|---|---|
committer | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2020-03-28 10:11:45 +0800 |
commit | fd7abb3d73b69842723d073f0ad543cb38c77bf3 (patch) | |
tree | 0b5a58776e259662a0ed1383eabc4adb92b02e37 /include/bike.h | |
parent | a473ca70a2ca5f3ca4a11a109533902c7605e7d4 (diff) |
bike
Diffstat (limited to 'include/bike.h')
-rw-r--r-- | include/bike.h | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/include/bike.h b/include/bike.h index ad2bd999a..abffae435 100644 --- a/include/bike.h +++ b/include/bike.h @@ -1,11 +1,35 @@ #ifndef GUARD_BIKE_H #define GUARD_BIKE_H -void sub_80BD620(u32 unkC, u32 unk10); +// TODO: Do the constants make sense in FRLG? + +// Player speeds +enum +{ + SPEED_STANDING, + SPEED_NORMAL, + SPEED_FAST, + SPEED_FASTER, + SPEED_FASTEST, +}; + +// Acro bike states +enum +{ + ACRO_STATE_NORMAL, + ACRO_STATE_TURNING, + ACRO_STATE_WHEELIE_STANDING, + ACRO_STATE_BUNNY_HOP, + ACRO_STATE_WHEELIE_MOVING, + ACRO_STATE_SIDE_JUMP, + ACRO_STATE_TURN_JUMP, +}; + +void sub_80BD620(u32 directionHistory, u32 abStartSelectHistory); bool8 sub_80BD540(void); void StartTransitionToFlipBikeState(u8 flags); s16 GetPlayerSpeed(void); - +bool8 sub_80BD460(u8); void MovePlayerOnBike(u8 direction, u16 newKeys, u16 heldKeys); bool32 IsRunningDisallowed(u8 metatileBehavior); void Bike_HandleBumpySlopeJump(void); |