Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_ni.h
Go to the documentation of this file.
1#ifndef D_A_NI_H
2#define D_A_NI_H
3
5#include "d/d_cc_d.h"
6#include "d/d_cc_uty.h"
7#include "d/d_bg_s_acch.h"
8
9#define BCK_FALL 5
10#define BCK_FLY 6
11#define BCK_IKAKU 7
12#define BCK_MIWATASI 8
13#define BCK_MOGAKU 9
14#define BCK_NAKU 10
15#define BCK_WAIT1 11
16#define BCK_WALK_A 12
17#define BCK_WALK_B 13
18
19#define JNT_WAIST 0
20#define JNT_LEGL 1
21#define JNT_FOOTL 2
22#define JNT_LEGR 3
23#define JNT_FOOTR 4
24#define JNT_NECK 5
25#define JNT_HEAD 6
26#define JNT_WINGL 7
27#define JNT_WINGR 8
28
36
51
60class ni_class : public fopEn_enemy_c {
61public:
62 bool checkGold() { return mColor == COLOR_GOLD; }
63
65 /* 0x5B4 */ u8 field_0x5b4;
66 /* 0x5B5 */ u8 mType;
67 /* 0x5B6 */ u8 field_0x5b6[0x5C0 - 0x5B6];
68 /* 0x5C0 */ cXyz field_0x5c0;
69 /* 0x5CC */ cXyz mDemoInitPos;
70 /* 0x5D8 */ f32 field_0x5d8;
71 /* 0x5DC */ s16 mMoveAngle;
72 /* 0x5E0 */ f32 mDistToPlayer;
73 /* 0x5E4 */ s16 mAngleToPlayer;
74 /* 0x5E8 */ mDoExt_McaMorf* mpMorf;
75 /* 0x5EC */ mDoExt_btkAnm* mpBtk;
76 /* 0x5F0 */ s8 mColor;
77 /* 0x5F4 */ int mAnmID;
78 /* 0x5F8 */ s16 mCounter;
79 /* 0x5FA */ s16 mAction;
80 /* 0x5FC */ s16 mMode;
81 /* 0x5FE */ s16 field_0x5fe;
82 /* 0x600 */ u32 mShadowKey;
83 /* 0x604 */ s16 mTimers[4];
84 /* 0x60C */ s16 field_0x60c;
85 /* 0x60E */ s16 field_0x60e;
86 /* 0x610 */ f32 field_0x610;
87 /* 0x614 */ s16 field_0x614;
88 /* 0x616 */ s16 field_0x616;
89 /* 0x618 */ s16 field_0x618;
90 /* 0x61A */ s16 field_0x61a;
91 /* 0x61C */ s16 field_0x61c;
92 /* 0x61E */ s16 field_0x61e;
93 /* 0x620 */ s16 field_0x620;
94 /* 0x622 */ s16 field_0x622;
95 /* 0x624 */ s16 field_0x624;
96 /* 0x626 */ s16 field_0x626;
97 /* 0x628 */ s16 field_0x628;
98 /* 0x62A */ s16 field_0x62a;
99 /* 0x62C */ int mTargetActorID;
101 /* 0x670 */ dBgS_ObjAcch mAcch;
102 /* 0x848 */ s8 field_0x848;
103 /* 0x84C */ dCcD_Stts mCcStts;
104 /* 0x888 */ dCcD_Sph mCcSph;
105 /* 0x9C0 */ dCcU_AtInfo mAtInfo;
106 /* 0x9E4 */ s8 field_0x9e4;
107 /* 0x9E6 */ s16 field_0x9e6;
108 /* 0x9E8 */ f32 field_0x9e8;
109 /* 0x9EC */ s16 field_0x9ec;
110 /* 0x9EE */ s16 field_0x9ee[4];
111 /* 0x9F8 */ f32 mSplGroundH;
113 /* 0xA00 */ f32 field_0xa00;
114 /* 0xA04 */ s16 field_0xa04;
115 /* 0xA06 */ s8 field_0xa06;
116 /* 0xA08 */ u32 field_0xa08[4];
117 /* 0xA18 */ u32 mHamonEmtrID;
118 /* 0xA1C */ u8 field_0xA1C[0xA20 - 0xA1C];
119 /* 0xA20 */ u32 mEnoEmtrIDs[2];
121 /* 0xA48 */ s8 field_0xa48;
122 /* 0xA4C */ u32 mHaneEmitterID;
123 /* 0xA50 */ s8 field_0xa50;
124 /* 0xA52 */ s16 field_0xa52;
125 /* 0xA54 */ s16 mFlowNo;
126 /* 0xA58 */ dMsgFlow_c mMsgFlow;
127 /* 0xAA4 */ f32 mPadMainStickX;
128 /* 0xAA8 */ f32 mPadMainStickY;
129 /* 0xAAC */ f32 mPadSubStickX;
130 /* 0xAB0 */ f32 mPadSubStickY;
131 /* 0xAB4 */ f32 mPadAnalogL;
132 /* 0xAB8 */ u32 mPadHoldL;
133 /* 0xABC */ f32 field_0xabc;
134 /* 0xAC0 */ f32 mPlayAnmSpeed;
135 /* 0xAC4 */ s16 mPlayCamMode;
137 /* 0xAC8 */ cXyz field_0xac8;
138 /* 0xAD4 */ cXyz field_0xad4;
139 /* 0xAE0 */ u8 field_0xAE0[0xAEC - 0xAE0];
140 /* 0xAEC */ f32 field_0xaec;
141 /* 0xAF0 */ f32 field_0xaf0;
142 /* 0xAF4 */ s16 field_0xaf4;
143 /* 0xAF8 */ f32 field_0xaf8;
144 /* 0xAFC */ f32 field_0xafc;
145 /* 0xB00 */ f32 field_0xb00;
146 /* 0xB04 */ f32 field_0xb04;
147 /* 0xB08 */ u8 field_0xb08;
148 /* 0xB09 */ u8 mInitHIO;
149};
150
151STATIC_ASSERT(sizeof(ni_class) == 0xb0c);
152
154public:
155 /* 8094BC2C */ daNi_HIO_c();
156 /* 80951118 */ virtual ~daNi_HIO_c() {}
157
158 /* 0x04 */ s8 field_0x04;
159 /* 0x08 */ f32 mBaseSize;
160 /* 0x0C */ f32 mMoveSpeed;
161 /* 0x10 */ f32 mMotionSpeed;
162 /* 0x14 */ u8 mRecognizeLink;
164 /* 0x1C */ f32 mFleeWalkSpeed;
165 /* 0x20 */ f32 mFleeFlySpeed;
166 /* 0x24 */ f32 mFleeJumpPower;
168 /* 0x2C */ f32 mThrowSpeed;
170 /* 0x34 */ f32 field_0x34;
172 /* 0x39 */ u8 field_0x39;
173};
174
175
176#endif /* D_A_NI_H */
Definition Z2SoundObject.h:34
Definition d_cc_d.h:432
Definition d_a_ni.h:153
f32 mFleeJumpPower
Definition d_a_ni.h:166
f32 mBaseSize
Definition d_a_ni.h:159
u8 mRecognizeLink
Definition d_a_ni.h:162
f32 mRecognizeRange
Definition d_a_ni.h:163
daNi_HIO_c()
Definition d_a_ni.cpp:226
u8 mMogakuModelShake
Definition d_a_ni.h:171
f32 mThrowJumpPower
Definition d_a_ni.h:169
u8 field_0x39
Definition d_a_ni.h:172
f32 mFleeJumpGravity
Definition d_a_ni.h:167
f32 mFleeFlySpeed
Definition d_a_ni.h:165
f32 field_0x34
Definition d_a_ni.h:170
virtual ~daNi_HIO_c()
Definition d_a_ni.h:156
s8 field_0x04
Definition d_a_ni.h:158
f32 mFleeWalkSpeed
Definition d_a_ni.h:164
f32 mMoveSpeed
Definition d_a_ni.h:160
f32 mThrowSpeed
Definition d_a_ni.h:168
f32 mMotionSpeed
Definition d_a_ni.h:161
Definition f_op_actor.h:249
Definition m_Do_ext.h:344
Cucco.
Definition d_a_ni.h:60
s16 field_0x616
Definition d_a_ni.h:88
s16 mPlayCamModeTimer
Definition d_a_ni.h:136
s16 mMode
Definition d_a_ni.h:80
cXyz mDemoInitPos
Definition d_a_ni.h:69
Z2SoundObjSimple mSound
Definition d_a_ni.h:120
dCcU_AtInfo mAtInfo
Definition d_a_ni.h:105
f32 mPadSubStickY
Definition d_a_ni.h:130
u32 mHaneEmitterID
Definition d_a_ni.h:122
s16 field_0x61e
Definition d_a_ni.h:92
s16 field_0xa52
Definition d_a_ni.h:124
s16 field_0x614
Definition d_a_ni.h:87
f32 field_0xb00
Definition d_a_ni.h:145
s16 mCounter
Definition d_a_ni.h:78
s16 field_0x60e
Definition d_a_ni.h:85
s8 field_0xa48
Definition d_a_ni.h:121
f32 mSplGroundH
Definition d_a_ni.h:111
int mTargetActorID
Definition d_a_ni.h:99
f32 field_0x9e8
Definition d_a_ni.h:108
cXyz field_0xad4
Definition d_a_ni.h:138
f32 field_0x5d8
Definition d_a_ni.h:70
f32 field_0xabc
Definition d_a_ni.h:133
f32 mPadMainStickX
Definition d_a_ni.h:127
s16 field_0x622
Definition d_a_ni.h:94
mDoExt_McaMorf * mpMorf
Definition d_a_ni.h:74
f32 field_0x610
Definition d_a_ni.h:86
dBgS_AcchCir mAcchCir
Definition d_a_ni.h:100
u8 field_0x5b4
Definition d_a_ni.h:65
u8 field_0xA1C[0xA20 - 0xA1C]
Definition d_a_ni.h:118
u8 field_0xb08
Definition d_a_ni.h:147
s16 field_0x9ec
Definition d_a_ni.h:109
s16 field_0xaf4
Definition d_a_ni.h:142
dCcD_Sph mCcSph
Definition d_a_ni.h:104
u8 mType
Definition d_a_ni.h:66
u32 mShadowKey
Definition d_a_ni.h:82
f32 mPadSubStickX
Definition d_a_ni.h:129
u32 field_0xa08[4]
Definition d_a_ni.h:116
bool checkGold()
Definition d_a_ni.h:62
s16 field_0x620
Definition d_a_ni.h:93
f32 field_0xaf0
Definition d_a_ni.h:141
s8 field_0x9e4
Definition d_a_ni.h:106
u32 mHamonEmtrID
Definition d_a_ni.h:117
dCcD_Stts mCcStts
Definition d_a_ni.h:103
f32 mPadAnalogL
Definition d_a_ni.h:131
f32 field_0xa00
Definition d_a_ni.h:113
cXyz field_0x5c0
Definition d_a_ni.h:68
s16 field_0x61a
Definition d_a_ni.h:90
s16 field_0xa04
Definition d_a_ni.h:114
int mAnmID
Definition d_a_ni.h:77
f32 mDistToPlayer
Definition d_a_ni.h:72
s16 field_0x618
Definition d_a_ni.h:89
u32 mPadHoldL
Definition d_a_ni.h:132
s8 field_0xa50
Definition d_a_ni.h:123
s16 mTimers[4]
Definition d_a_ni.h:83
s8 mColor
Definition d_a_ni.h:76
u8 field_0x5b6[0x5C0 - 0x5B6]
Definition d_a_ni.h:67
s16 field_0x626
Definition d_a_ni.h:96
s16 field_0x9e6
Definition d_a_ni.h:107
f32 field_0xafc
Definition d_a_ni.h:144
s16 mMoveAngle
Definition d_a_ni.h:71
cXyz field_0xac8
Definition d_a_ni.h:137
f32 field_0xaec
Definition d_a_ni.h:140
s16 field_0x628
Definition d_a_ni.h:97
f32 field_0xaf8
Definition d_a_ni.h:143
s8 field_0x848
Definition d_a_ni.h:102
s16 field_0x62a
Definition d_a_ni.h:98
s16 mFlowNo
Definition d_a_ni.h:125
s16 field_0x60c
Definition d_a_ni.h:84
s16 field_0x624
Definition d_a_ni.h:95
mDoExt_btkAnm * mpBtk
Definition d_a_ni.h:75
s16 field_0x5fe
Definition d_a_ni.h:81
f32 mBoomerangMoveMaxStep
Definition d_a_ni.h:112
f32 field_0xb04
Definition d_a_ni.h:146
u32 mEnoEmtrIDs[2]
Definition d_a_ni.h:119
f32 mPadMainStickY
Definition d_a_ni.h:128
s16 mPlayCamMode
Definition d_a_ni.h:135
s16 field_0x9ee[4]
Definition d_a_ni.h:110
request_of_phase_process_class mPhase
Definition d_a_ni.h:64
u8 field_0xAE0[0xAEC - 0xAE0]
Definition d_a_ni.h:139
s16 field_0x61c
Definition d_a_ni.h:91
u8 mInitHIO
Definition d_a_ni.h:148
dBgS_ObjAcch mAcch
Definition d_a_ni.h:101
dMsgFlow_c mMsgFlow
Definition d_a_ni.h:126
s16 mAngleToPlayer
Definition d_a_ni.h:73
s16 mAction
Definition d_a_ni.h:79
f32 mPlayAnmSpeed
Definition d_a_ni.h:134
s8 field_0xa06
Definition d_a_ni.h:115
daNi_color
Definition d_a_ni.h:29
@ COLOR_BLACK
Definition d_a_ni.h:31
@ COLOR_RANDOM
Definition d_a_ni.h:34
@ COLOR_BROWN
Definition d_a_ni.h:32
@ COLOR_GOLD
Definition d_a_ni.h:33
@ COLOR_WHITE
Definition d_a_ni.h:30
STATIC_ASSERT(sizeof(ni_class)==0xb0c)
daNi_action
Definition d_a_ni.h:37
@ ACTION_PLAY_e
Definition d_a_ni.h:49
@ ACTION_CARRY_e
Definition d_a_ni.h:41
@ ACTION_MESSAGE_e
Definition d_a_ni.h:45
@ ACTION_AWAY_e
Definition d_a_ni.h:39
@ ACTION_WINDSPIN_e
Definition d_a_ni.h:47
@ ACTION_DEMO0_e
Definition d_a_ni.h:48
@ ACTION_RETURN_e
Definition d_a_ni.h:44
@ ACTION_NORMAL_e
Definition d_a_ni.h:38
@ ACTION_DAMAGE_e
Definition d_a_ni.h:46
@ ACTION_SWIM_e
Definition d_a_ni.h:40
@ ACTION_FLY_e
Definition d_a_ni.h:42
@ ACTION_DROP_e
Definition d_a_ni.h:43
Definition d_a_hozelda.cpp:20
Definition d_a_npc_fguard.cpp:98
Definition d_a_npc_fguard.cpp:94
Definition d_a_npc_fguard.cpp:70
Definition d_a_ep.cpp:99
Definition d_a_obj_sekizoa.cpp:318
Definition d_a_hozelda.cpp:47
Definition d_a_hozelda.cpp:14
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned char u8
Definition types.h:8