summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_fireWood.h
blob: 116af1203cff063919d399bf679a537760c583ad (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
#ifndef D_A_OBJ_FIREWOOD_H
#define D_A_OBJ_FIREWOOD_H

#include "d/d_com_inf_game.h"
#include "m_Do/m_Do_hostIO.h"
#include "f_op/f_op_actor_mng.h"
#include "d/d_cc_d.h"

/**
 * @ingroup actors-objects
 * @class daFireWood_c
 * @brief Kakariko Stove Flame?
 *
 * @details
 *
 */
class daFireWood_c : public fopAc_ac_c {
public:
    void setBaseMtx();
    int create();
    void lightInit();
    void setLight();
    int Execute();
    int Draw();
    int Delete();

    static const dCcD_SrcGObjInf mCcDObjInfo;
    static dCcD_SrcCyl mCcDCyl;

private:
    /* 0x568 */ u8 field_0x568[0x574 - 0x568];
    /* 0x574 */ dCcD_Stts mCcStts;
    /* 0x5B0 */ dCcD_Cyl mCcCyl;
    /* 0x6EC */ cXyz mFlamePos;
    /* 0x6F8 */ u8 mIsSwitch;
    /* 0x6F9 */ u8 mIsLit;
    /* 0x6FC */ u32 mFlameEmtrIDs[4];
    /* 0x70C */ u8 mFlameType;
    /* 0x710 */ cXyz mLightPos;
    /* 0x71C */ LIGHT_INFLUENCE mLightInfluence;
    /* 0x73C */ u8 mSwWaitTime;
};

STATIC_ASSERT(sizeof(daFireWood_c) == 0x740);

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

    void genMessage(JORMContext*);

    /* 0x4 */ f32 mFlameOffsetY;
    /* 0x8 */ f32 mCollisionRadius;
    /* 0xC */ u8 mWaitTime;
};

#endif /* D_A_OBJ_FIREWOOD_H */