1#pragma once
2
3#include <basis/seadTypes.h>
4
5#include "Library/Layout/LayoutActor.h"
6
7namespace al {
8class LayoutInitInfo;
9}
10
11class CounterLife : public al::LayoutActor {
12public:
13 CounterLife(const char* name, const char* resName, const al::LayoutInitInfo& info);
14
15 void appear() override;
16 void kill() override;
17
18 void startGauge(f32 goalFrame);
19 void startGaugeWithFrame(f32 goalFrame, f32 frames);
20 void setEmpty();
21 void setGaugeAnim();
22 void setCount(f32 frame);
23
24 void start();
25 void end();
26 void wait();
27 bool isWait() const;
28
29 void exeNone();
30 void exeAppear();
31 void exeWait();
32 void exeEnd();
33 void exeGauge();
34 void exeGaugeWait();
35
36private:
37 f32 mCurFrame = 0.0f;
38 f32 mGoalFrame = 0.0f;
39 f32 mStep = 1.0f;
40 bool mIsCounterUp = false;
41};
42