#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
