summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_obj_shelf.h
blob: 2dd2dc537151eae62e16abd7d791d9914783d6f5 (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
#ifndef D_A_OBJ_SHELF_H
#define D_A_OBJ_SHELF_H

#include "d/d_bg_s_movebg_actor.h"
#include "d/d_a_obj.h"

namespace daObjShelf {
    class Act_c : public dBgS_MoveBgActor {
    public:
        static Mtx M_tmp_mtx;

        enum Prm_e {
            PRM_GROUNDMA_W = 0x01,
            PRM_GROUNDMA_S = 0x00,
        };

        bool prm_get_groundma() const { return daObj::PrmAbstract<Prm_e>(this, PRM_GROUNDMA_W, PRM_GROUNDMA_S); }
    
        virtual BOOL CreateHeap();
        virtual BOOL Create();
        cPhs_State Mthd_Create();
        virtual BOOL Delete();
        BOOL Mthd_Delete();
        void hold_event() const;
        void mode_wait_init();
        void mode_wait();
        void mode_vib_init();
        void mode_vib();
        void mode_rot_init();
        void mode_rot_init2();
        void mode_rot_init3();
        void mode_rot();
        void mode_fell_init();
        void mode_fell();
        void set_mtx();
        void init_mtx();
        virtual BOOL Execute(Mtx**);
        virtual BOOL Draw();
    
    public:
        static const char M_arcname[6];

        /* 0x2C8 */ request_of_phase_process_class mPhs;
        /* 0x2D0 */ J3DModel * mpModel;
        /* 0x2D4 */ int mMode;
        /* 0x2D8 */ float mRotSpeed;
        /* 0x2DC */ short mTargetAngle;
        /* 0x2DE */ short mTimer;
        /* 0x2E0 */ short mVibY;
        /* 0x2E2 */ short mVibX;
        /* 0x2E4 */ short mVibZ;
        /* 0x2E6 */ s8 mCurBounce;
        /* 0x2E7 */ bool m2e7;
    };
};

#endif /* D_A_OBJ_SHELF_H */