summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_ystone.h
blob: 830e5a6d303ac956ba597e91eb8813ea1adf462e (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef D_A_OBJ_YSTONE_H
#define D_A_OBJ_YSTONE_H

#include "SSystem/SComponent/c_phase.h"
#include "f_op/f_op_actor.h"

/**
 * @ingroup actors-objects
 * @class obj_ystone_class
 * @brief ??? (Shadow Stone?)
 *
 * @details
 *
 */
class obj_ystone_class : public fopAc_ac_c {
public:
    void setCurrentPos(cXyz i_pos) {
        current.pos = i_pos;
    }

    void setShapeAngle(csXyz i_angle) {
        shape_angle = i_angle;
    }

    void setScale(f32 i_scale) {
        mScaleF = i_scale;
    }

    void setBaseMtx(MtxP i_mtx) {
        field_0x598 = 1;
        if (mLevel < 3) {
            if (mpModel != NULL) {
                mpModel->setBaseTRMtx(i_mtx);
            }
        } else {
            if (mpMorf != NULL) {
                mpMorf->getModel()->setBaseTRMtx(i_mtx);
            }
        }
    }

    int getMirrorMode() {
        return mMirrorMode;
    }

    void setMirrorMode(int i_mode) {
        mMirrorMode = i_mode;
    }

    /* 0x568 */ request_of_phase_process_class mPhaseReq;
    /* 0x570 */ J3DModel* mpModel;
    /* 0x574 */ mDoExt_brkAnm* mpBrkAnm;
    /* 0x578 */ mDoExt_btkAnm* mpBtkAnm;
    /* 0x57C */ mDoExt_McaMorfSO* mpMorf;
    /* 0x580 */ f32 mScaleF;
    /* 0x584 */ u8 field_0x584[2];
    /* 0x586 */ s16 mShadowMode;
    /* 0x588 */ u8 field_0x588[4];
    /* 0x58C */ int mMirrorMode;
    /* 0x590 */ int mTimer;
    /* 0x594 */ u32 mParticleKey;
    /* 0x598 */ s8 field_0x598;
    /* 0x599 */ u8 mLevel;
    /* 0x59A */ bool field_0x59a;
    /* 0x59B */ bool field_0x59b;
    /* 0x59C */ u8 field_0x59c[4];
};

STATIC_ASSERT(sizeof(obj_ystone_class) == 0x5A0);

#endif /* D_A_OBJ_YSTONE_H */