summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_lv4digsand.h
blob: d6b0d8196c9e4c17da7f6874b44dc3bd73d1fbc1 (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
#ifndef D_A_OBJ_LV4DIGSAND_H
#define D_A_OBJ_LV4DIGSAND_H

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

/**
 * @ingroup actors-objects
 * @class daObjL4DigSand_c
 * @brief Arbiter's Grounds Digging Sand
 *
 * @details
 *
 */
class daObjL4DigSand_c : public dBgS_MoveBgActor {
public:
    void initBaseMtx();
    void setBaseMtx();
    int create1st();
    void action();
    void mode_init_wait();
    void mode_wait();
    void mode_init_dig();
    void mode_dig();
    void mode_init_end();
    void mode_end();

    virtual int CreateHeap();
    virtual int Create();
    virtual int Execute(Mtx**);
    virtual int Draw();
    virtual int Delete();

    u8 getSwNo() { return fopAcM_GetParamBit(this, 0, 8); }
    void startDig() { field_0x941 = 1; }
    void endDig() { field_0x941 = 2; }

    /* 0x5A0 */ request_of_phase_process_class mPhase;
    /* 0x5A8 */ J3DModel* mpModel;
    /* 0x5AC */ dBgS_ObjAcch mAcch;
    /* 0x784 */ dBgS_AcchCir mAcchCir;
    /* 0x7C4 */ dCcD_Stts mCcStts;
    /* 0x800 */ dCcD_Cyl mCcCyl;
    /* 0x93C */ f32 mGroundY;
    /* 0x940 */ u8 mMode;
    /* 0x941 */ u8 field_0x941;
    /* 0x942 */ u8 mTimer;
};

STATIC_ASSERT(sizeof(daObjL4DigSand_c) == 0x944);


#endif /* D_A_OBJ_LV4DIGSAND_H */