13        MushroomAndBoostPanel,
 
   21    [[nodiscard]] 
bool activate(Type type, s16 frames);
 
   22    [[nodiscard]] 
bool calc();
 
   31    [[nodiscard]] f32 multiplier()
 const {
 
   35    [[nodiscard]] f32 acceleration()
 const {
 
   36        return m_acceleration;
 
   39    [[nodiscard]] f32 speedLimit()
 const {
 
   46    static constexpr size_t BOOST_TYPE_COUNT = 
static_cast<size_t>(Type::Max);
 
 
This header houses common data types such as our integral types and enums.
State management for boosts (start boost, mushrooms, mini-turbos)
bool activate(Type type, s16 frames)
Starts/restarts a boost of the given type.
std::array< bool, BOOST_TYPE_COUNT > m_active
Whether the different boost types are active.
f32 m_multiplier
Multiplier applied to vehicle speed.
bool calc()
Computes the current frame's boost multiplier, acceleration, and speed limit.
std::array< s16, BOOST_TYPE_COUNT > m_timers
Durations for the different boost types.
Pertains to kart-related functionality.