New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
CourseTimer.h
Go to the documentation of this file.
1#pragma once
2
3#include <heap/seadDisposer.h>
4#include <prim/seadBitFlag.h>
5
7{
8 // createInstance() Address: 0x024C12C4
9 // deleteInstance() Address: Deleted
10 // sInstance Address: 0x101D15F4
11 // SingletonDisposer_::~SingletonDisposer_() Address: 0x024C15C8
12 // SingletonDisposer_::sStaticDisposer Address: 0x101D15F8
13 // SingletonDisposer_::vtbl Address: 0x100B74B8
15
16public:
21
26
28 {
30 }
31
32 // Address: 0x024C14C0
34
35 // Address: 0x024C134C
36 void setTimer(u32 seconds);
37
38 // Address: 0x024C1344
39 [[nodiscard]]
40 static u32 toUnits(u32 seconds);
41
42 [[nodiscard]]
43 static u32 fromUnits(u32 units)
44 {
45 return units >> 0xC;
46 }
47
48 [[nodiscard]]
49 u32 getTime() const
50 {
51 return mTime;
52 }
53
54 /**
55 * @brief The value which the bonus time animation is loaded with and will add to the clock when it's done.
56 */
57 void setBonusTime(u16 time)
58 {
59 mBonusTime = time;
60 }
61
62protected:
64 u32 mTime; // seconds << 12
68 u16 mBonusTime; ///< The value which the bonus time animation is loaded with and will add to the clock when it's done.
69};
70static_assert(sizeof(CourseTimer) == 0x20, "CourseTimer size mismatch");
Definition CourseTimer.h:7
u32 mFreezeTime
Definition CourseTimer.h:63
void setBonusTime(u16 time)
The value which the bonus time animation is loaded with and will add to the clock when it's done.
Definition CourseTimer.h:57
u32 mBeginTime
Definition CourseTimer.h:65
static u32 toUnits(u32 seconds)
u32 mTime
Definition CourseTimer.h:64
void setTimer(u32 seconds)
u16 mBonusTime
The value which the bonus time animation is loaded with and will add to the clock when it's done.
Definition CourseTimer.h:68
sead::BitFlag8 mStopTimerInfo
Definition CourseTimer.h:67
u32 getTime() const
Definition CourseTimer.h:49
bool mIsHurryUp
Definition CourseTimer.h:66
static u32 fromUnits(u32 units)
Definition CourseTimer.h:43