summaryrefslogtreecommitdiff
path: root/include/d/actor/d_a_branch.h
blob: c050d24bd407c92eab7631e2496063ddd287b789 (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_BRANCH_H
#define D_A_BRANCH_H

#include "f_op/f_op_actor.h"
#include "dolphin/types.h"
#include "d/d_com_inf_game.h"

class daBranch_c : public fopAc_ac_c {
public:
    ~daBranch_c() {
        for (int i = 0; i < 2; i++) {
            mDoExt_McaMorf* anim = mAnims[i];
            if (anim != 0) {
                anim->stopZelAnime();
            }
        }

        dComIfG_resDeleteDemo(&mPhase, m_arcname);
    }
    inline cPhs_State create();
    inline BOOL draw();
    inline BOOL execute();

    void set_mtx();
    void set_anim(int, int, int);
    void demoPlay(mDoExt_McaMorf*);

    BOOL CreateHeap();
    static BOOL solidHeapCB(fopAc_ac_c*);
    
    MtxP getJointMtx(const char*);

    /* 0x0290 */ request_of_phase_process_class mPhase;
    /* 0x0298 */ J3DModel* mModel[2];
    /* 0x02A0 */ u8 dummy2[0x08];
    /* 0x02A8 */ mDoExt_McaMorf* mAnims[2];
    /* 0x02B0 */ u8 dummy[0x08];
    /* 0x02B8 */ u32 m02B8;
    /* 0x02BC */ u8 m02BC;
    /* 0x02BD */ u8 m02BD;

    static char m_arcname[];
};

#endif /* D_A_BRANCH_H */