blob: 9cda9b7e1efb018a8bd6f76802c7ac990d05d1fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#ifndef D_T_SIREN_H
#define D_T_SIREN_H
#include "common.h"
#include "d/t/d_tg.h"
#include "toBeSorted/timekeeper.h"
class dTgSiren_c : public dTg_c {
public:
dTgSiren_c() {}
virtual ~dTgSiren_c() {}
static bool isOutOfTime() {
if (sInstance == nullptr) {
return false;
}
return sInstance->outOfTime();
}
static s32 getTime() {
if (sInstance == nullptr) {
return -1;
}
return sInstance->mTimekeeper.getTime();
}
static bool hasCollectedAllTears() {
if (sInstance == nullptr) {
return false;
}
return sInstance->_hasCollectedAllTears();
}
static void setLightFruitTime(u16 time) {
if (sInstance == nullptr) {
return;
}
sInstance->mPillarTime = time;
}
private:
bool outOfTime() const;
bool _hasCollectedAllTears();
static dTgSiren_c *sInstance;
/* 0x0FC */ u8 _0x0FC[0x140 - 0x0FC];
/* 0x140 */ u32 mPillarTime;
/* 0x144 */ u8 _0x144[0x2C0 - 0x144];
/* 0x2C0 */ Timekeeper mTimekeeper;
};
#endif
|