blob: c3959945fc7776f4de857b74317ec16a1cdd108f (
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
|
#ifndef D_LYT_BATTERY_H
#define D_LYT_BATTERY_H
#include "d/lyt/d2d.h"
#include "s/s_State.hpp"
class dLytBattery_c {
public:
static bool create();
static bool draw();
bool dismissManually();
static dLytBattery_c *GetInstance() {
return sInstance;
}
private:
dLytBattery_c() : mStateMgr(*this) {
sInstance = this;
}
bool doDraw();
bool init();
bool hasEnoughBatteryCharge();
STATE_FUNC_DECLARE(dLytBattery_c, Off);
STATE_FUNC_DECLARE(dLytBattery_c, In);
STATE_FUNC_DECLARE(dLytBattery_c, On);
STATE_FUNC_DECLARE(dLytBattery_c, None);
STATE_FUNC_DECLARE(dLytBattery_c, Out);
/* 0x000 */ UI_STATE_MGR_DECLARE(dLytBattery_c);
/* 0x040 */ d2d::ResAccIf_c mResAcc;
/* 0x0EB */ d2d::dLytSub mLyt;
/* 0x110 */ d2d::AnmGroup_c mAnmGroups[4];
/* 0x540 */ bool mDismissManually;
static dLytBattery_c *sInstance;
};
#endif
|