Document bike.c and fix weird goto
This commit is contained in:
+19
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user