summaryrefslogtreecommitdiff
path: root/include/bike.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-03-30 15:45:42 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-03-30 15:45:42 -0400
commit8e82c291fddf460198ae2fb5bcc3e4e7d67898bc (patch)
tree62440df937f10dfdaae7433aaf1c418ec3db9890 /include/bike.h
parent35b68c68ee565b9b232252e4f37ea082e9310560 (diff)
Document bike.c and fix weird goto
Diffstat (limited to 'include/bike.h')
-rw-r--r--include/bike.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/include/bike.h b/include/bike.h
index e4f94becb..9526b6e83 100644
--- a/include/bike.h
+++ b/include/bike.h
@@ -13,6 +13,20 @@ enum
SPEED_FASTEST,
};
+enum {
+ BIKE_TRANS_FACE_DIRECTION,
+ BIKE_TRANS_TURNING,
+ BIKE_TRANS_MOVE,
+ BIKE_TRANS_DOWNHILL,
+ BIKE_TRANS_UPHILL
+};
+
+enum {
+ BIKE_STATE_NORMAL,
+ BIKE_STATE_TURNING,
+ BIKE_STATE_SLOPE
+};
+
// Acro bike states
enum
{
@@ -25,15 +39,15 @@ enum
ACRO_STATE_TURN_JUMP,
};
-void InitPlayerAvatarBikeState(u32 directionHistory, u32 abStartSelectHistory);
-bool8 MetatileAtPlayerPositionForbidsBiking(void);
-void StartTransitionToFlipBikeState(u8 flags);
+void BikeClearState(u32 directionHistory, u32 abStartSelectHistory);
+bool8 IsBikingDisallowedByPlayer(void);
+void GoOnOffBike(u8 flags);
s16 GetPlayerSpeed(void);
-bool8 sub_80BD460(u8);
+bool8 RS_IsRunningDisallowed(u8 r0);
void MovePlayerOnBike(u8 direction, u16 newKeys, u16 heldKeys);
bool32 IsRunningDisallowed(u8 metatileBehavior);
void Bike_HandleBumpySlopeJump(void);
void Bike_UpdateBikeCounterSpeed(u8 counter);
-bool8 player_should_look_direction_be_enforced_upon_movement(void);
+bool8 IsPlayerNotUsingAcroBikeOnBumpySlope(void);
#endif //GUARD_BIKE_H