New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
CourseTimer Class Reference

#include <CourseTimer.h>

Public Member Functions

void onStopTimer (s32 player_no)
void offStopTimer (s32 player_no)
void onFreezeFrame ()
void addTimeLimitSeconds (u32 seconds)
void setTimer (u32 seconds)
u32 getTime () const
void setBonusTime (u16 time)
 The value which the bonus time animation is loaded with and will add to the clock when it's done.

Static Public Member Functions

static u32 toUnits (u32 seconds)
static u32 fromUnits (u32 units)

Protected Attributes

u32 mFreezeTime
u32 mTime
u32 mBeginTime
bool mIsHurryUp
sead::BitFlag8 mStopTimerInfo
u16 mBonusTime
 The value which the bonus time animation is loaded with and will add to the clock when it's done.

Member Function Documentation

◆ onStopTimer()

void CourseTimer::onStopTimer ( s32 player_no)
inline

◆ offStopTimer()

void CourseTimer::offStopTimer ( s32 player_no)
inline

◆ onFreezeFrame()

void CourseTimer::onFreezeFrame ( )
inline

◆ addTimeLimitSeconds()

void CourseTimer::addTimeLimitSeconds ( u32 seconds)

◆ setTimer()

void CourseTimer::setTimer ( u32 seconds)

◆ toUnits()

u32 CourseTimer::toUnits ( u32 seconds)
staticnodiscard

◆ fromUnits()

u32 CourseTimer::fromUnits ( u32 units)
inlinestaticnodiscard

◆ getTime()

u32 CourseTimer::getTime ( ) const
inlinenodiscard

◆ setBonusTime()

void CourseTimer::setBonusTime ( u16 time)
inline

The value which the bonus time animation is loaded with and will add to the clock when it's done.

Member Data Documentation

◆ mFreezeTime

u32 CourseTimer::mFreezeTime
protected

◆ mTime

u32 CourseTimer::mTime
protected

◆ mBeginTime

u32 CourseTimer::mBeginTime
protected

◆ mIsHurryUp

bool CourseTimer::mIsHurryUp
protected

◆ mStopTimerInfo

sead::BitFlag8 CourseTimer::mStopTimerInfo
protected

◆ mBonusTime

u16 CourseTimer::mBonusTime
protected

The value which the bonus time animation is loaded with and will add to the clock when it's done.