forked from zeldaret/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathd_a_npc_gwolf.h
More file actions
139 lines (122 loc) · 4.11 KB
/
d_a_npc_gwolf.h
File metadata and controls
139 lines (122 loc) · 4.11 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#ifndef D_A_NPC_GWOLF_H
#define D_A_NPC_GWOLF_H
#include "d/actor/d_a_npc4.h"
struct daNpc_GWolf_HIOParam {
/* 0x00 */ daNpcF_HIOParam common;
/* 0x6C */ f32 attack_spd_horizontal; // 攻撃速度横 - Attack Speed Horizontal
/* 0x70 */ f32 attack_spd_vertical; // 攻撃速度縦 - Attack Speed Vertical
/* 0x74 */ f32 attack_spd_horizontal_horse; // 攻撃速度横(馬) - Attack Speed Horizontal (Horse)
/* 0x78 */ f32 attack_spd_vertical_horse; // 攻撃速度縦(馬) - Attack Speed Vertical (Horse)
/* 0x7C */ f32 demo_start_dist; // デモ開始距離 - Demo Start Distance
/* 0x80 */ f32 blur_scale; // ブラーのスケール - Blur Scale
/* 0x84 */ f32 blur_opacity; // ブラーの透明度 - Blur Opacity
/* 0x88 */ f32 warp_start_dist; // ワープ開始距離 - Warp Start Distance
};
class daNpc_GWolf_Param_c {
public:
virtual ~daNpc_GWolf_Param_c() {}
static daNpc_GWolf_HIOParam const m;
};
#if DEBUG
class daNpc_GWolf_HIO_c : public mDoHIO_entry_c {
public:
daNpc_GWolf_HIO_c();
void listenPropertyEvent(const JORPropertyEvent*);
void genMessage(JORMContext*);
/* 0x8 */ daNpc_GWolf_HIOParam m;
};
#define NPC_GWOLF_HIO_CLASS daNpc_GWolf_HIO_c
#else
#define NPC_GWOLF_HIO_CLASS daNpc_GWolf_Param_c
#endif
/**
* @ingroup actors-npcs
* @class daNpc_GWolf_c
* @brief Golden Wolf
*
* @details
*
*/
class daNpc_GWolf_c : public daNpcF_c {
public:
typedef BOOL (daNpc_GWolf_c::*actionFunc)(void*);
typedef BOOL (daNpc_GWolf_c::*cutFunc)(int);
daNpc_GWolf_c();
cPhs_Step create();
int CreateHeap();
int Delete();
int Execute();
int Draw();
int draw(int, int, f32, GXColorS10*, int);
int ctrlJoint(J3DJoint*, J3DModel*);
static int createHeapCallBack(fopAc_ac_c*);
static int ctrlJointCallBack(J3DJoint*, int);
u8 getTypeFromParam();
int getModeFromParam();
BOOL isDelete();
void reset();
void playMotion();
BOOL chkAction(actionFunc);
BOOL setAction(actionFunc);
BOOL selectAction();
void doNormalAction(int);
BOOL doEvent();
void setLookMode(int);
void lookat();
BOOL ECut_attackWarp(int);
BOOL ECut_attackWarpHorse(int);
BOOL ECut_howlingSessionA(int);
void meetGWolfSkip();
BOOL ECut_meetGWolf(int);
BOOL wait(void*);
BOOL waitHowling(void*);
BOOL waitBrave(void*);
BOOL talk(void*);
BOOL test(void*);
s16 getGroundSlope(dBgS_ObjAcch&, s16);
virtual ~daNpc_GWolf_c();
virtual void setParam();
virtual BOOL main();
virtual BOOL ctrlBtk();
virtual void adjustShapeAngle();
virtual void setAttnPos();
virtual bool setExpressionAnm(int, bool);
virtual void setExpression(int, f32);
virtual void setMotionAnm(int, f32);
virtual void setMotion(int, f32, int);
virtual BOOL drawDbgInfo();
virtual void drawOtherMdls();
int getSwBitFromParam() { return (fopAcM_GetParam(this) & 0xFF0000) >> 16; }
u16 getSaveTableFromParam() { return home.angle.z & 0xFF; }
void setHowlingEndFlag() { field_0xe1c = 2; }
void setHowlingFlag() { field_0xe1c = 1; }
static char* mEvtCutNameList[5];
static cutFunc mEvtCutList[5];
private:
/* 0xB48 */ Z2Creature mSound;
/* 0xBD8 */ daNpcF_MatAnm_c* mpMatAnm;
/* 0xBDC */ daNpcF_Lookat_c mLookat;
/* 0xC78 */ daNpcF_ActorMngr_c mActorMngrs[2];
/* 0xC88 */ NPC_GWOLF_HIO_CLASS* mpHIO;
/* 0xC8C */ dCcD_Cyl mCyl;
/* 0xDC8 */ actionFunc mNextAction;
/* 0xDD4 */ actionFunc mAction;
/* 0xDE0 */ request_of_phase_process_class mPhases[3];
/* 0xDF8 */ int field_0xdf8;
/* 0xDFC */ int field_0xdfc;
/* 0xE00 */ int field_0xe00;
/* 0xE04 */ int field_0xe04;
/* 0xE08 */ int mFlowID;
/* 0xE0C */ s16 mLookMode;
/* 0xE0E */ u16 mMode;
/* 0xE10 */ u8 mType;
/* 0xE11 */ s8 mParamMode;
/* 0xE14 */ int mExitId;
/* 0xE18 */ int mAnm;
/* 0xE1C */ u8 field_0xe1c;
/* 0xE1D */ u8 field_0xe1d;
/* 0xE1E */ u8 swBit;
/* 0xE1F */ u8 mSaveTable;
};
STATIC_ASSERT(sizeof(daNpc_GWolf_c) == 0xe20);
#endif /* D_A_NPC_GWOLF_H */