-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathd_snap.h
More file actions
343 lines (326 loc) · 9.95 KB
/
d_snap.h
File metadata and controls
343 lines (326 loc) · 9.95 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
#ifndef D_SNAP_H
#define D_SNAP_H
#include "JSystem/J3DGraphBase/J3DPacket.h"
#include "f_op/f_op_actor.h"
enum {
/* 0x00 */ DSNAP_TYPE_UNK00,
/* 0x01 */ DSNAP_TYPE_UNK01,
/* 0x02 */ DSNAP_TYPE_UNK02,
/* 0x03 */ DSNAP_TYPE_UNK03,
/* 0x04 */ DSNAP_TYPE_UNK04,
/* 0x05 */ DSNAP_TYPE_UNK05,
/*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UNK53,
/* 0x54 */ DSNAP_TYPE_UNK54,
/* 0x55 */ DSNAP_TYPE_KAMOME,
/* 0x56 */ DSNAP_TYPE_UNK56,
/* 0x57 */ DSNAP_TYPE_UNK57,
/* 0x58 */ DSNAP_TYPE_KM1,
/* 0x59 */ DSNAP_TYPE_UNK59,
/* 0x5A */ DSNAP_TYPE_UNK5A,
/* 0x5B */ DSNAP_TYPE_UNK5B,
/* 0x5C */ DSNAP_TYPE_UNK5C,
/* 0x5D */ DSNAP_TYPE_UNK5D,
/* 0x5E */ DSNAP_TYPE_NPC_PHOTO,
/* 0x5F */ DSNAP_TYPE_UNK5F,
/* 0x60 */ DSNAP_TYPE_UNK60,
/* 0x61 */ DSNAP_TYPE_UNK61,
/* 0x62 */ DSNAP_TYPE_UNK62,
/* 0x63 */ DSNAP_TYPE_UNK63,
/* 0x64 */ DSNAP_TYPE_UNK64,
/* 0x65 */ DSNAP_TYPE_UNK65,
/* 0x66 */ DSNAP_TYPE_UNK66,
/* 0x67 */ DSNAP_TYPE_UNK67,
/* 0x68 */ DSNAP_TYPE_UNK68,
/* 0x69 */ DSNAP_TYPE_UNK69,
/* 0x6A */ DSNAP_TYPE_UNK6A,
/* 0x6B */ DSNAP_TYPE_UNK6B,
/* 0x6C */ DSNAP_TYPE_UNK6C,
/* 0x6D */ DSNAP_TYPE_UNK6D,
/* 0x6E */ DSNAP_TYPE_UNK6E,
/* 0x6F */ DSNAP_TYPE_UNK6F,
/* 0x70 */ DSNAP_TYPE_UNK70,
/* 0x71 */ DSNAP_TYPE_UNK71,
/* 0x72 */ DSNAP_TYPE_UNK72,
/* 0x73 */ DSNAP_TYPE_UNK73,
/* 0x74 */ DSNAP_TYPE_UNK74,
/* 0x75 */ DSNAP_TYPE_UNK75,
/* 0x76 */ DSNAP_TYPE_UNK76,
/* 0x77 */ DSNAP_TYPE_UNK77,
/* 0x78 */ DSNAP_TYPE_UNK78,
/* 0x79 */ DSNAP_TYPE_UNK79,
/* 0x7A */ DSNAP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*/ DSNAP_TYPE_BTD,
/* 0xC8 */ DSNAP_TYPE_BMD,
/* 0xC9 */ DSNAP_TYPE_BST,
/* 0xCA */ DSNAP_TYPE_BDK,
/* 0xCB */ DSNAP_TYPE_UNKCB,
/* 0xCC */ DSNAP_TYPE_BWD,
/* 0xCD */ DSNAP_TYPE_UNKCD,
/* 0xCE */ DSNAP_TYPE_UNKCE,
/* 0xCF */ DSNAP_TYPE_UNKCF,
/* 0xD0 */ DSNAP_TYPE_LAST_INDEX,
};
class dSnap_Obj {
public:
/* 0x00 */ cXyz mCenter;
/* 0x0C */ f32 mRadius;
/* 0x10 */ f32 mHeight;
/* 0x14 */ fpc_ProcID mActorPID;
/* 0x18 */ u8 mPhoto;
/* 0x19 */ u8 field_0x19;
/* 0x1A */ u8 field_0x1a;
/* 0x1B */ u8 field_0x1b;
/* 0x1C */ s16 mCullAngle;
/* 0x1E */ s16 mAngleY;
/* 0x20 */ s32 mCapturedPixels;
/* 0x24 */ f32 mCapturedRatio;
/* 0x28 */ s16 mMinX;
/* 0x2A */ s16 mMinY;
/* 0x2C */ s16 mMaxX;
/* 0x2E */ s16 mMaxY;
/* 0x30 */ /* vtable */
public:
dSnap_Obj();
virtual ~dSnap_Obj() {}
void DebugArea2D() {}
void GetActor() const {}
void GetArg() const {}
void GetDRRatio() {}
void GetLen(Vec&) const {}
s16 GetMinX() { return mMinX; }
s16 GetMinY() { return mMinY; }
s16 GetMaxX() { return mMaxX; }
s16 GetMaxY() { return mMaxY; }
int GetPhoto() const { return mPhoto; }
void GetPoint() {}
void SetDRRatio(f32) {}
void SetPoint(s32) {}
void drawCamRange() {}
f32 CalcArea2D();
void draw();
void SetGeo(const Vec& center, f32 radius, f32 height, s16 r5);
void SetGeoSph(const Vec& center, f32 radius);
void SetInf(u8, const fopAc_ac_c*, u8, u8, s16);
void SetAreaClear();
void SetArea(s16, s16);
bool ChkPhoto(int);
bool ChkSuccess(s32, f32);
bool ChkCamCull() const;
};
STATIC_ASSERT(sizeof(dSnap_Obj) == 0x34);
class dSnap_RegistObjElm {
public:
/* 0x00 */ dSnap_Obj m_obj;
/* 0x34 */ f32 field_0x34;
/* 0x38 */ /* vtable */
public:
dSnap_RegistObjElm() {}
virtual ~dSnap_RegistObjElm() {}
void Init();
void Regist(const dSnap_Obj&);
}; // Size: 0x3C
class dSnap_packet : public J3DPacket {
public:
virtual ~dSnap_packet() {}
void DebugDraw() {}
int GetResult() { return mResult; }
u8 GetResultDetail() { return mResultDetail; }
void Create();
void ReleaseShutter();
u32 ChkReleaseShutter();
void Execute();
int Regist(const dSnap_Obj&);
virtual void draw();
void ClearAlphaBuffer();
void Judge();
int FindPhoto(int, int);
int JudgePost();
int JudgeBikutsuki();
int JudgeCoupleLook();
int JudgeGF();
int JudgeGenzo();
int JudgeObasan4();
int JudgeTestM();
int JudgeGene();
int JudgeFigure(int);
void SetResult();
/* 0x010 */ int field_0x10;
/* 0x014 */ int field_0x14;
/* 0x018 */ dSnap_RegistObjElm m_tbl[0x3F];
/* 0xEDC */ int mFlag;
/* 0xEE0 */ int mResult;
/* 0xEE4 */ u8 mResultDetail;
static int (dSnap_packet::*m_judge_tbl[])();
};
int dSnap_PhotoIndex2TableIndex(int);
int dSnap_GetFigRoomId(int);
void dSnap_MatDl();
void dSnap_AlphaClearDL();
void dSnap_Create();
void dSnap_ReleaseShutter();
void dSnap_Execute();
int dSnap_GetResult();
u8 dSnap_GetResultDetail();
void dSnap_RegistSnapObj(dSnap_Obj&);
void dSnap_RegistFig(u8, fopAc_ac_c*, f32, f32, f32);
void dSnap_RegistFig(u8, fopAc_ac_c*, const Vec&, s16, f32, f32, f32);
void dSnap_DebugDraw();
void dSnap_Delete();
inline void dSnap_AlphaClearDebug() {}
inline void dSnap_FigChkSizeNone(int) {}
inline void dSnap_MatDLDebug() {}
inline void dSnap_project(Vec*, Vec*) {}
#endif /* D_SNAP_H */