summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_TvCdlst.h
blob: 7d94a3567666f211e57e46811466e30c33f7d2c8 (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
#ifndef D_A_OBJ_TVCDLST_H
#define D_A_OBJ_TVCDLST_H

#include "f_op/f_op_actor_mng.h"
#include "d/d_com_inf_game.h"

/**
 * @ingroup actors-objects
 * @class daTvCdlst_c
 * @brief Ordon Torch Stand
 *
 * @details
 *
 */
class daTvCdlst_c : public fopAc_ac_c {
public:
    void setBaseMtx();
    int CreateHeap();
    int create();
    static int createHeapCallBack(fopAc_ac_c*);
    void lightInit();
    void setLight();
    void cutLight();
    void pointLightProc();
    int Execute();
    int Draw();
    int Delete();

    static dCcD_SrcGObjInf const mCcDObjInfo;
    static dCcD_SrcCyl mCcDCyl;

    u8 getLightType() { return fopAcM_GetParamBit(this,8,8); }
    u8 getOnSw() { return fopAcM_GetParamBit(this,0,8); }
    u8 getOffSw() { return fopAcM_GetParamBit(this,0x10,8); }

private:
    /* 0x568 */ request_of_phase_process_class mPhaseReq;
    /* 0x570 */ J3DModel* mpModel;
    /* 0x574 */ dCcD_Stts mStts;
    /* 0x5b0 */ dCcD_Cyl mCyl;
    /* 0x6ec */ cXyz field_0x6ec;
    /* 0x6f8 */ u8 field_0x6f8;
    /* 0x6f9 */ u8 mIsOn;
    /* 0x6fa */ u8 mIsOff;
    /* 0x6fb */ u8 mOnSw;
    /* 0x6fc */ u8 mOffSw;
    /* 0x6fd */ u8 mDoIgnite;
    /* 0x700 */ cXyz field_0x700;
    /* 0x70c */ u8 mLightType;
    /* 0x710 */ f32 field_0x710;
    /* 0x714 */ LIGHT_INFLUENCE mLight;
    /* 0x734 */ Z2SoundObjSimple mSound;
};

STATIC_ASSERT(sizeof(daTvCdlst_c) == 0x754);

class daTvCdlst_HIO_c : public mDoHIO_entry_c {
public:
    daTvCdlst_HIO_c();
    virtual ~daTvCdlst_HIO_c() {}

    void genMessage(JORMContext*);

    /* 0x4 */ u8 field_0x4;
    /* 0x5 */ u8 field_0x5;
};


#endif /* D_A_OBJ_TVCDLST_H */