DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
opening.hpp
1#pragma once
2
3#include "common.h"
4
5#include <libvu0.h>
6
7#include "dataalloc_fwd.hpp"
8
12// clang-format off
13enum OpeningScene {
14 OP_SCENE_NONE = -1,
15 OP_SCENE_DUNGEON_SQUARE = 0,
16 OP_SCENE_NORUNE = 1,
17 OP_SCENE_TOAN_HOUSE = 2,
18 OP_SCENE_NORUNE_NIGHT = 3,
19 OP_SCENE_DANCE = 4,
20 OP_SCENE_MAJIN = 5,
21 OP_SCENE_NORUNE_RUINED = 6,
22 OP_SCENE_NORUNE_BURNING = 7,
23 OP_SCENE_SEIREI_KING = 8,
24 OP_SCENE_MEADOW = 9,
25};
26
27// clang-format on
28
29class CCharacter;
30class CCamera;
31class CCameraFollow;
32struct MOTION_INFO;
33
42void OpeningInit();
43
52void LoadSceneBG();
53
62int OpeningLoop();
63
72void OpBgmPlay();
73
82void OpPlayVolPanSE(float *position, float near_dist, float far_dist, int group, int no, int voice);
83
92void OpSetVolPanSE(float *position, float near_dist, float far_dist, int group, int no, int voice);
93
102void OpPlayVolSE(int group, int no, int voice, float volume);
103
112int OpGetVolSQ(int no);
113
122void FadeCansel();
123
132void OPAnalyz(char *name);
133
142void OPMdsLoad();
143
147extern CCharacter Chara__3[];
148
152extern char CharaTex__2[23];
153
157extern CCharacter Cam__2[];
158
162extern int SceneNp__2;
163
167extern CDataAlloc2<1> CharaDataBuffer__2[];
168
172extern CDataAlloc2<1> WaterBuffer__2;
173
177extern CDataAlloc2<1> MapDataBuffer;
178
182extern CCameraFollow OP_MainCamera;
183
187extern int OpBgmSqPort;
188
192extern MOTION_INFO Op_MotionInfo;
193
197extern int Pause;
198
202extern u_char op_fogColor[3];
203
207extern sceVu0FVECTOR op_fogRate;