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 static u32 toUnits(u32 seconds);
40
41 static u32 fromUnits(u32 units)
42 {
43 return units >> 0xC;
44 }
45
46 u32 getTime() const
47 {
48 return mTime;
49 }
50
51 /**
52 * @brief The value which the bonus time animation is loaded with and will add to the clock when it's done.
53 */
54 void setBonusTime(u16 time)
55 {
56 mBonusTime = time;
57 }
58
59protected:
61 u32 mTime; // seconds << 12
65 u16 mBonusTime; ///< The value which the bonus time animation is loaded with and will add to the clock when it's done.
66};
67static_assert(sizeof(CourseTimer) == 0x20, "CourseTimer size mismatch");
Definition CourseTimer.h:7
u32 mFreezeTime
Definition CourseTimer.h:60
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:54
u32 mBeginTime
Definition CourseTimer.h:62
static u32 toUnits(u32 seconds)
u32 mTime
Definition CourseTimer.h:61
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:65
sead::BitFlag8 mStopTimerInfo
Definition CourseTimer.h:64
u32 getTime() const
Definition CourseTimer.h:46
bool mIsHurryUp
Definition CourseTimer.h:63
static u32 fromUnits(u32 units)
Definition CourseTimer.h:41