summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_hakai_brl.h
blob: 394cab03663b31d9051e075e62d64d6ec3ba9d17 (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
#ifndef D_A_OBJ_HAKAI_BRL_H
#define D_A_OBJ_HAKAI_BRL_H

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

/**
 * @ingroup actors-objects
 * @class daObjHBarrel_c
 * @brief Destructable Barrel
 *
 * @details
 *
 */
class daObjHBarrel_c : public fopAc_ac_c, public request_of_phase_process_class {
public:
    daObjHBarrel_c();
    virtual ~daObjHBarrel_c();
    int createHeap();
    int create();
    int Delete();
    int draw();
    int execute();
    void init();
    void setModelMtx();
    void hitAction();
    u8 getItemBit() {
        return fopAcM_GetParamBit(this, 8, 8);
    }
    u8 getItemNo() {
        return fopAcM_GetParamBit(this, 0, 8);
    }
    void callEmt();

    static dCcD_SrcCyl const s_CcDCyl;

private:
    /* 0x574 */ J3DModel* mpModel;
    /* 0x578 */ dCcD_Stts mStts;
    /* 0x5B4 */ dCcD_Cyl mCyl;
    /* 0x6F0 */ Z2SoundObjSimple mSound;
};

STATIC_ASSERT(sizeof(daObjHBarrel_c) == 0x710);


#endif /* D_A_OBJ_HAKAI_BRL_H */