summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_firepillar.h
blob: 620373422a7745a19c0d266537d48488b4b30523 (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
#ifndef D_A_OBJ_FIREPILLAR_H
#define D_A_OBJ_FIREPILLAR_H

#include "d/d_bg_s_acch.h"
#include "f_op/f_op_actor.h"
#include "f_op/f_op_actor_mng.h"
#include "d/d_cc_d.h"

/**
 * @ingroup actors-objects
 * @class daObjFPillar_c
 * @brief Fire Pillar
 *
 * @details
 *
 */
class daObjFPillar_c : public fopAc_ac_c {
public:
    typedef void (daObjFPillar_c::*actionFunc)();

    enum Action {
        ACTION_OFF,
        ACTION_ON_WAIT,
        ACTION_ON,
    };

    class daObjFPillar_prm {
    public:
        static u8 getArg0(daObjFPillar_c* i_this) { return fopAcM_GetParam(i_this) >> 8; }
        static u8 getArg1(daObjFPillar_c* i_this) { return fopAcM_GetParam(i_this) >> 24; }
        static u8 getArg2(daObjFPillar_c* i_this) { return fopAcM_GetParam(i_this) >> 16; }
        static u8 getSwNo(daObjFPillar_c* i_this) { return fopAcM_GetParam(i_this); }
    };

    void initBaseMtx();
    void setBaseMtx();
    int Create();
    int create();
    int execute();
    void action();
    void actionOffInit();
    void actionOff();
    void actionOnWaitInit();
    void actionOnWait();
    void actionOnInit();
    void actionOn();
    int draw();
    int _delete();

private:
    /* 0x568 */ request_of_phase_process_class mPhase;
    /* 0x570 */ int field_0x570;
    /* 0x574 */ dBgS_ObjAcch mAcch;
    /* 0x74C */ dBgS_AcchCir mAcchCir;
    /* 0x78C */ dCcD_Stts mStts;
    /* 0x7C8 */ dCcD_Cps mCps;
    /* 0x90C */ u8 field_0x90c[0x93c - 0x90c];
    /* 0x93C */ cXyz mCylScale;
    /* 0x948 */ Vec field_0x948;
    /* 0x954 */ cM3dGCpsS field_0x954;
    /* 0x970 */ u8 mAction;
    /* 0x972 */ u16 mActionTimer;
};

STATIC_ASSERT(sizeof(daObjFPillar_c) == 0x974);


#endif /* D_A_OBJ_FIREPILLAR_H */