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
72
73
74
75
76
77
78
79
|
#ifndef D_A_OBJ_SCANNON_CRS_H
#define D_A_OBJ_SCANNON_CRS_H
#include "f_op/f_op_actor_mng.h"
#include "d/actor/d_a_midna.h"
/**
* @ingroup actors-objects
* @class daSCannonCrs_c
* @brief Sky Cannon (Broken)
*
* @details
*
*/
class daSCannonCrs_c : public fopAc_ac_c, public request_of_phase_process_class {
public:
enum daSCannonCrs_exeMode {
MODE_WAIT,
MODE_PRE_WAIT,
MODE_ORDER_EVT,
MODE_TALK_EVT,
MODE_WARP_EVT,
MODE_END,
};
daSCannonCrs_c();
virtual ~daSCannonCrs_c();
int create();
int Delete();
int draw();
int execute();
void middleExe(daMidna_c*);
void exeModeWait(daMidna_c*);
void exeModePreWait(daMidna_c*);
void exeModeOrderEvt(daMidna_c*);
void exeModeTalkEvt(daMidna_c*);
void exeModeWarpEvt(daMidna_c*);
void exeModeEnd(daMidna_c*);
void demoExe();
void init();
void setModelMtx();
int createHeap();
bool chkInTalkRange();
void initEmtRt(u16, int, u16 const*, JPABaseEmitter**);
void exeEmtRt(u16, int, JPABaseEmitter**);
void callMidnaBeamEmt();
int getTalkRange() { return fopAcM_GetParamBit(this, 0, 8); }
int getWarpId() { return fopAcM_GetParamBit(this, 8, 8); }
u16 getMsgId() { return home.angle.x; }
static void (daSCannonCrs_c::*s_exeProc[])(daMidna_c*);
private:
/* 0x574 */ cXyz mPortalWaitPos;
/* 0x580 */ dMsgFlow_c mMsgFlow;
/* 0x5CC */ mDoExt_bckAnm mBck;
/* 0x5E8 */ mDoExt_btkAnm mBtk;
/* 0x600 */ J3DModel* mpModel;
/* 0x604 */ dBgW* mpBgW;
/* 0x608 */ Mtx mBgMtx;
/* 0x638 */ f32 mTalkRangeSqDist;
/* 0x63C */ int mStaffId;
/* 0x640 */ int mWarpQuakeTimer;
/* 0x644 */ int mVoiceTimer;
/* 0x648 */ u16 mEffectJointNo;
/* 0x64A */ u16 mCenterJointNo;
/* 0x64C */ s16 mEvtIdx;
/* 0x64E */ u8 mMode;
/* 0x64F */ u8 field_0x64F[0x651 - 0x64F];
/* 0x651 */ u8 field_0x651;
/* 0x652 */ u8 field_0x652;
/* 0x654 */ JPABaseEmitter* mpDisapEmt[4];
/* 0x664 */ JPABaseEmitter* mpBeamEmt[4];
};
STATIC_ASSERT(sizeof(daSCannonCrs_c) == 0x674);
#endif /* D_A_OBJ_SCANNON_CRS_H */
|