DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
fishing.hpp
1#pragma once
2
3#include "collision.hpp"
4
5template <int T>
6class CDataAlloc2;
7class CFish;
8class CCharacter;
9class CFrame;
10class CFrameVu1;
11
15extern int draw_under_water;
16
20extern float distp;
21
25extern float WaterLevel;
26
30extern float GroundLevel;
31
35extern float UkiGroundLevel;
36
40extern float HookGroundLevel;
41
45extern float LineGroundLevel;
46
50extern CFrameVu1 *EsaFrame;
51
55extern int esa_type;
56
60extern CFrame *HookFrame;
61
65extern CFrame *UkiFrame;
66
70extern int fishing_texb;
71
75extern int fish_texb;
76
80extern int esa_texb;
81
85extern CFish *Fish;
86
90extern CFish *AngleFish;
91
95extern CFish *BattleFish;
96
100extern int FishNum;
101
105extern CCPoly *cpoly;
106
110extern int cpoly_num;
111
115extern int set_hook_pos;
116
120extern int set_uki_pos;
121
125extern float pull_hook;
126
130extern CBoxVu0 fishing_rect;
131
135extern CBoxVu0 fish_rect;
136
140extern CFrameVu1 UkiFrameTop;
141
145extern CCharacter Rod;
146
150extern sceVu0FVECTOR point[24];
151
155extern sceVu0FVECTOR old_p[24];
156
160extern sceVu0FVECTOR velo[24];
161
165extern sceVu0FVECTOR hookp[3];
166
170extern sceVu0FVECTOR hookop[3];
171
175extern sceVu0FVECTOR hookv[3];
176
180extern float hook_dist[3];
181
185extern sceVu0FVECTOR ukip[4];
186
190extern sceVu0FVECTOR ukiop[4];
191
195extern sceVu0FVECTOR ukiv[4];
196
200extern float uki_dist[6];
201
205extern sceVu0FVECTOR rod_top;
206
210extern sceVu0FVECTOR fishhook;
211
215extern sceVu0FVECTOR uki;
216
224void FishingInit();
225
233void FishingSetWaterLevel(float water_level, float ground_level);
234
242void FishingSetGroundLevel(float uki_height, float hook_height);
243
251float FishingGetWaterLevel();
252
260void FishingDeleteEsa();
261
269void FishingBattleFish(int fish_no);
270
278CFish *FishingGetBattleFish();
279
287void FishingDeleteAngleFish();
288
296void FishPullHook(float tension);
297
305void FishingExit();
306
314void FishingLoad(CDataAlloc2<1> *alloc, int slot);
315
323void FishingLoadFish(int spot, CDataAlloc2<1> *alloc, int slot);
324
332void FishingLoadEsa(int item_no, CFrameVu1 *frame, int slot);
333
341int FishingGetEsaItemNo();
342
350void FishingSetCPoly(CCPoly *polys, int count);
351
359void FishingSetRect(CBoxVu0 bounds);
360
368int FishingPickUpPoly(CCPoly *polys);
369
377void FishingInitFish(CBoxVu0 bounds);
378
386int FishingFishStatus(int *fish_no);
387
395int FishingFishKind(int fish_no);
396
404void FishingBattleToAngleFish(u_int *pack, CDataAlloc2<1> *alloc);
405
413void FishLineStep(float *rod_position, float *unused);
414
422void FishingAngleFish(int fish_no);
423
431int FishingGetAngleFishSize(int *size, int *fp);
432
440void FishingInitFishStatus();
441
449void FishingStepFish();
450
458void FishingDrawFish();
459
467void FishLineInit(float *position);
468
476void FishLineSetUki(float *position, float rate);
477
485void FishLineSetHook(float *position, float rate);
486
494void FishLineGetUki(float *position);
495
503void FishLineGetHook(float *position);
504
512int FishingCheckUkiHook();
513
521void FishLineDraw(int above_water);
522
526extern char fishing_err_format[];
Definition fish.hpp:57
sceVu0FVECTOR position
Definition frame.hpp:76