summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_digplace.h
blob: 404b35aff4d683ad75b55244ff21051bd354c2f3 (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
#ifndef D_A_OBJ_DIGPLACE_H
#define D_A_OBJ_DIGPLACE_H

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

/**
 * @ingroup actors-objects
 * @class daObjDigpl_c
 * @brief Wolf Dig Place (Treasure)
 *
 * @details
 *
 */
class daObjDigpl_c : public fopAc_ac_c {
public:
    int create();
    int execute();

private:
    /* 0x568 */ u8 mType;
    /* 0x569 */ u8 mSwitch;
    /* 0x56A */ u8 mDigFlg;
    /* 0x56B */ u8 field_0x56b;
    /* 0x56C */ u8 mCurrentDigPoint;
    /* 0x570 */ Mtx field_0x570;
    /* 0x5A0 */ int mUsedDigFlags[6];
    /* 0x5B8 */ dPath* mpDigPoints;

public:
    virtual ~daObjDigpl_c();

    u8 getSceneNum() { return (fopAcM_GetParam(this) >> 0xC) & 0xFF; }
    int getItemNum() { return getSceneNum(); }
    u8 getType() const { return mType; }
    void onDigFlg() { mDigFlg = true; }
};

STATIC_ASSERT(sizeof(daObjDigpl_c) == 0x5C0);

#endif /* D_A_OBJ_DIGPLACE_H */