summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_lv4gear.h
blob: 5e649c0722e54a68e7878f0758f8bbc5c7c3537b (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
#ifndef D_A_OBJ_LV4GEAR_H
#define D_A_OBJ_LV4GEAR_H

#include "d/actor/d_a_obj_swspinner.h"

/**
 * @ingroup actors-objects
 * @class daObjLv4Gear_c
 * @brief Arbiter's Grounds Spinner Gear
 *
 * @details
 *
 */
class daObjLv4Gear_c : public fopAc_ac_c {
public:
    enum gear_type_e {
        GEAR_S_e,
        GEAR_L_e,
    };

    void initBaseMtx();
    void setBaseMtx();
    int Create();
    int CreateHeap();
    int create();
    int execute();
    int draw();
    int _delete();

    u8 getSwBit() { return fopAcM_GetParamBit(this, 0, 8); }
    u8 getType() { return fopAcM_GetParamBit(this, 8, 4); }
    u8 checkSE() { return fopAcM_GetParamBit(this, 12, 4); }

private:
    /* 0x568 */ request_of_phase_process_class mPhase;
    /* 0x570 */ J3DModel* mpModel;
    /* 0x574 */ s16 mTarget;
    /* 0x576 */ s16 mSpeed;
    /* 0x578 */ s16 mRotation;
    /* 0x57C */ fpc_ProcID mSwActorID;
    /* 0x580 */ u16 mCount;
    /* 0x582 */ u8 mType;
};

#endif /* D_A_OBJ_LV4GEAR_H */