NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
daIceBall_c::GlobalData_t Struct Reference

Description

Definition at line 13 of file d_a_iceball.hpp.

Public Member Functions

float calcExtraBoost (float speedDiff) const

Public Attributes

float moveBoostThreshold
float mMoveBoostScale
float mBoostExtraScale
float mLightRadius
 The radius of the iceball's light mask.

Member Function Documentation

◆ calcExtraBoost()

float daIceBall_c::GlobalData_t::calcExtraBoost ( float speedDiff) const
inline

Definition at line 14 of file d_a_iceball.hpp.

Member Data Documentation

◆ moveBoostThreshold

float daIceBall_c::GlobalData_t::moveBoostThreshold

Up to this speed, the iceball's speed boost is calculated by multiplying the player's speed by mMoveBoostScale.

Definition at line 20 of file d_a_iceball.hpp.

◆ mMoveBoostScale

float daIceBall_c::GlobalData_t::mMoveBoostScale

Any speed between 0 and moveBoostThreshold is multiplied by this scale to determine the iceball's speed boost on bounce.

Definition at line 24 of file d_a_iceball.hpp.

◆ mBoostExtraScale

float daIceBall_c::GlobalData_t::mBoostExtraScale

If the player's speed on iceball bounce is over the boost threshold, the extra speed is multiplied by this scale and added to the base speed boost.

Definition at line 28 of file d_a_iceball.hpp.

◆ mLightRadius

float daIceBall_c::GlobalData_t::mLightRadius

The radius of the iceball's light mask.

Definition at line 30 of file d_a_iceball.hpp.