summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_wind_stone.h
blob: f5e52dfc9480ab646958d62354a91e067b6f4b23 (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
#ifndef D_A_OBJ_WIND_STONE_H
#define D_A_OBJ_WIND_STONE_H

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

/**
 * @ingroup actors-objects
 * @class daWindStone_c
 * @brief Howling Stone (Hole)
 *
 * @details
 *
 */
class daWindStone_c : public fopAc_ac_c, public request_of_phase_process_class {
public:
    daWindStone_c();
    virtual ~daWindStone_c();
    int createHeap();
    int create();
    int execute();
    int draw();
    int Delete();
    void setModelMtx();
    void init();
    bool chkWlfInRange();
    bool chkEveOccur();
    void exeModeHowl();
    void exeModeMapDisp();
    bool chkMapDispMode();
    u8 getGoldWolfIdx();

    s8 getTuneId() { return fopAcM_GetParamBit(this, 4, 4); }
    s8 getNextSceneId() { return fopAcM_GetParamBit(this, 0, 4); }
    u32 getSwBit1() { return home.angle.x & 0xff; }
    u32 getSwBit2() { return fopAcM_GetParamBit(this, 8, 8); }
    u32 getDelEveFlgId() { return fopAcM_GetParamBit(this, 0x10, 0x10); }

private:
    /* 0x574 */ cBgS_PolyInfo mPolyInfo;
    /* 0x584 */ J3DModel* mpModel;
    /* 0x588 */ dBgW* mpBgW;
    /* 0x58C */ Mtx field_0x58c;
    /* 0x5BC */ f32 field_0x5bc;
    /* 0x5C0 */ u32 field_0x5c0;
    /* 0x5C4 */ u8 field_0x5c4;
};

STATIC_ASSERT(sizeof(daWindStone_c) == 0x5C8);

#endif /* D_A_OBJ_WIND_STONE_H */