22#define D_A_OBJ_WARP_KBRG_H
33
44#include " f_op/f_op_actor_mng.h"
5+ #include " d/d_bg_s_movebg_actor.h"
6+ #include " d/d_msg_flow.h"
57
68/* *
79 * @ingroup actors-objects
810 * @class daObjWarpKBrg_c
9- * @brief Warp K Bridge ( Kakariko Gorge Bridge?)
11+ * @brief Kakariko Gorge Warp Bridge
1012 *
1113 * @details
1214 *
1315 */
14- class daObjWarpKBrg_c : public fopAc_ac_c {
16+ class daObjWarpKBrg_c : public dBgS_MoveBgActor {
1517public:
18+ enum Action_e {
19+ ACTION_WAIT_e,
20+ ACTION_ORDER_EVENT_e,
21+ ACTION_TALK_EVENT_e,
22+ ACTION_WAIT_WARP_EVENT_e,
23+ ACTION_WARP_EVENT_e,
24+ ACTION_ORDER_A_TALK_EVENT_e,
25+ ACTION_DEAD_e,
26+ ACTION_WAIT2_e,
27+ ACTION_ORDER_EVENT2_e,
28+ ACTION_WARP_EVENT2_e,
29+ ACTION_DEAD2_e,
30+ };
31+
1632 /* 80D26FA8 */ void initBaseMtx ();
1733 /* 80D27008 */ void setBaseMtx ();
18- /* 80D270C4 */ void Create ();
19- /* 80D27300 */ void CreateHeap ();
20- /* 80D276B4 */ void create1st ();
21- /* 80D2781C */ void Execute (f32 (**)[3][4]);
34+ /* 80D276B4 */ int create1st ();
2235 /* 80D27890 */ void event_proc_call ();
2336 /* 80D27A38 */ void orderZHintEvent ();
2437 /* 80D27B2C */ void actionWait ();
@@ -34,7 +47,7 @@ class daObjWarpKBrg_c : public fopAc_ac_c {
3447 /* 80D28248 */ void actionDead2 ();
3548 /* 80D2824C */ void demoProc ();
3649 /* 80D28A50 */ void calcObjPos ();
37- /* 80D28AE0 */ void checkTalkDistance ();
50+ /* 80D28AE0 */ bool checkTalkDistance ();
3851 /* 80D28B7C */ void calcMidnaWaitPos ();
3952 /* 80D28C10 */ void setBindEffect ();
4053 /* 80D28CDC */ void followBindEffect ();
@@ -44,11 +57,50 @@ class daObjWarpKBrg_c : public fopAc_ac_c {
4457 /* 80D290A8 */ void followDstEffect ();
4558 /* 80D29158 */ void endSrcEffect ();
4659 /* 80D291FC */ void endDstEffect ();
47- /* 80D292A0 */ void Draw ();
48- /* 80D29448 */ void Delete ();
4960
50- private:
51- /* 0x568 */ u8 field_0x568[0x69c - 0x568 ];
61+ /* 80D27300 */ virtual int CreateHeap ();
62+ /* 80D270C4 */ virtual int Create ();
63+ /* 80D2781C */ virtual int Execute (Mtx**);
64+ /* 80D292A0 */ virtual int Draw ();
65+ /* 80D29448 */ virtual int Delete ();
66+
67+ u8 getNameArg () { return fopAcM_GetParamBit (this , 31 , 2 ); }
68+ u8 getSwbit () { return fopAcM_GetParamBit (this , 0 , 8 ); }
69+ u8 getSwbit2 () { return fopAcM_GetParamBit (this , 8 , 8 ); }
70+ u8 getArg0 () { return fopAcM_GetParamBit (this , 16 , 8 ); }
71+
72+ void setAction (u8 i_action) { mAction = i_action; }
73+ u16 getMsgID () { return mMsgID ; }
74+
75+ /* 0x5A0 */ request_of_phase_process_class mPhase ;
76+ /* 0x5A8 */ request_of_phase_process_class mEvPhase ;
77+ /* 0x5B0 */ J3DModel* mpBridgeModel;
78+ /* 0x5B4 */ mDoExt_btkAnm * mpBridgeBtk;
79+ /* 0x5B8 */ mDoExt_bckAnm * mpBridgeBck;
80+ /* 0x5BC */ J3DModel* mpPortalModel;
81+ /* 0x5C0 */ mDoExt_btkAnm * mpPortalBtk;
82+ /* 0x5C4 */ mDoExt_brkAnm * mpPortalBrk;
83+ /* 0x5C8 */ u8 field_0x5c8;
84+ /* 0x5C9 */ u8 mTimer ;
85+ /* 0x5CA */ u8 mAction ;
86+ /* 0x5CB */ u8 mPrmInit ;
87+ /* 0x5CC */ u16 mMsgID ;
88+ /* 0x5CE */ s16 mEventId [2 ];
89+ /* 0x5D4 */ int mStaffId ;
90+ /* 0x5D8 */ u8 mEventType ;
91+ /* 0x5D9 */ u8 field_0x5d9;
92+ /* 0x5DC */ dMsgFlow_c mMsgFlow ;
93+ /* 0x628 */ cXyz mMidnaWaitPos ;
94+ /* 0x634 */ cXyz mObjPos ;
95+ /* 0x640 */ JPABaseEmitter* mStartEfEmitterID [3 ];
96+ /* 0x64C */ JPABaseEmitter* mDisappEfEmitterID [5 ];
97+ /* 0x660 */ JPABaseEmitter* mAppEfEmitterID [6 ];
98+ /* 0x678 */ JPABaseEmitter* mEndEfEmitterID [2 ];
99+ /* 0x680 */ u8 field_0x680[0x688 - 0x680 ];
100+ /* 0x688 */ JPABaseEmitter* mBindEfEmitterID [4 ];
101+ /* 0x698 */ u16 mEffJointNo ;
102+ /* 0x69A */ u8 field_0x69a;
103+ /* 0x69B */ u8 field_0x69b;
52104};
53105
54106STATIC_ASSERT (sizeof (daObjWarpKBrg_c) == 0x69c);
0 commit comments