summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_poCandle.h
blob: defcdb78586c661b635936f475770f514ba40f79 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef D_A_OBJ_POCANDLE_H
#define D_A_OBJ_POCANDLE_H

#include "f_op/f_op_actor_mng.h"
#include "d/d_bg_s_movebg_actor.h"
#include "d/d_event_lib.h"

/**
 * @ingroup actors-objects
 * @class daPoCandle_c
 * @brief Poe Torch
 *
 * @details
 *
 */
class daPoCandle_c : public dBgS_MoveBgActor, public request_of_phase_process_class, public dEvLib_callback_c {
public:
    daPoCandle_c() : dEvLib_callback_c(this) {}

    void setBaseMtx();
    int create();
    void lightInit();
    void setLight();
    void cutLight();
    void pointLightProc();
    void init_modeWait();
    void modeWait();
    void init_modeOnFire();
    void modeOnFire();
    void modeOnSwWait();
    void init_modeEnd();
    void modeEnd();
    
    virtual int CreateHeap();
    virtual int Execute(Mtx**);
    virtual int Draw();
    virtual int Delete();

    virtual ~daPoCandle_c() {}
    virtual bool eventStart();

    cXyz getFirePos() { return mFirePos; }

    int getLightType() { return fopAcM_GetParamBit(this, 0x10, 8); }
    int getSwBit() { return fopAcM_GetParamBit(this, 0, 8); }
    int getID() { return fopAcM_GetParamBit(this, 8, 8); }

    u8 getIDNum() { return mIDNum; }
    void setFireFlag(u8 flag) { mFireFlag = flag; }

private:
    /* 0x5B8 */ request_of_phase_process_class mPhase;
    /* 0x5C0 */ J3DModel* mpModel;
    /* 0x5C4 */ cXyz mFirePos;
    /* 0x5D0 */ u8 field_0x5d0;
    /* 0x5D1 */ u8 mOnPlight;
    /* 0x5D2 */ u8 mFireFlag;
    /* 0x5D3 */ u8 mSwWaitTimer;
    /* 0x5D4 */ u8 mSwbit;
    /* 0x5D5 */ u8 mIDNum;
    /* 0x5D6 */ u8 mMode;
    /* 0x5D7 */ u8 mIsSwitch;
    /* 0x5D8 */ u32 mGlowEmtID;
    /* 0x5DC */ u32 mFireEmtID;
    /* 0x5E0 */ cXyz mLightPos;
    /* 0x5EC */ u8 mLightType;
    /* 0x5F0 */ f32 mPlightRefDist;
    /* 0x5F4 */ LIGHT_INFLUENCE mLight;
};

STATIC_ASSERT(sizeof(daPoCandle_c) == 0x614);

#endif /* D_A_OBJ_POCANDLE_H */