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
|
//
// Generated by dtk
// Translation Unit: d_s_open.cpp
//
#include "d/dolzel.h" // IWYU pragma: keep
#include "d/d_s_open.h"
#include "f_op/f_op_scene.h"
#include "f_op/f_op_draw_iter.h"
#include "f_op/f_op_scene_mng.h"
#include "f_op/f_op_overlap_mng.h"
#include "d/d_com_inf_game.h"
#include "m_Do/m_Do_audio.h"
#include "m_Do/m_Do_controller_pad.h"
#include "m_Do/m_Do_graphic.h"
/* 80232A68-80232BC4 .text create__10dScnOpen_cFv */
cPhs_State dScnOpen_c::create() {
dComIfGp_offEnableNextStage();
mpProc = NULL;
cPhs_State rt = dComIfG_resLoad(&mPhs, "Opening");
if (rt == cPhs_COMPLEATE_e) {
solid_heap = mDoExt_createSolidHeapFromGameToCurrent(0x20000, 0);
JUT_ASSERT(0x3b, solid_heap != NULL);
mpProc = new dScnOpen_proc_c();
field_0x1d4 = NULL;
mDoExt_restoreCurrentHeap();
mDoExt_adjustSolidHeap(solid_heap);
mDoGph_gInf_c::setTickRate((OS_BUS_CLOCK / 4) / 30);
return cPhs_COMPLEATE_e;
} else if (rt == cPhs_ERROR_e) {
JUT_ASSERT(0x48, rt == cPhs_COMPLEATE_e);
return rt;
}
return rt;
}
/* 80232BC4-80232CAC .text execute__10dScnOpen_cFv */
BOOL dScnOpen_c::execute() {
#if VERSION > VERSION_JPN
if (mpProc->mState >= 5 && !fopOvlpM_IsPeek() && !dComIfG_resetToOpening(this)) {
#else
if (!fopOvlpM_IsPeek() && !dComIfG_resetToOpening(this)) {
#endif
if (fpcM_GetName(this) == fpcNm_OPEN2_SCENE_e && (CPad_CHECK_TRIG_A(0) || CPad_CHECK_TRIG_B(0) || CPad_CHECK_TRIG_START(0))) {
field_0x1d4 = 1;
mDoAud_bgmStop(20);
}
if (field_0x1d4 == 1 && !mDoAud_isUsedHeapForStreamBuffer())
dComIfG_changeOpeningScene(this, fpcNm_OPENING2_SCENE_e);
}
mpProc->proc_execute();
if (mpProc->mState == 44)
changeGameScene();
return TRUE;
}
/* 80232CAC-80232D38 .text draw__10dScnOpen_cFv */
BOOL dScnOpen_c::draw() {
dComIfGd_setWindow(dComIfGp_getWindow(0));
dComIfGd_setViewport(dComIfGp_getWindow(0)->getViewPort());
for (create_tag_class* pTag = fopDwIt_Begin(); pTag != NULL; pTag = fopDwIt_Next(pTag))
fpcM_Draw(pTag->mpTagData);
dComIfGd_set2DOpa(mpProc);
return TRUE;
}
/* 80232D38-80232DD8 .text __dt__10dScnOpen_cFv */
dScnOpen_c::~dScnOpen_c() {
#if VERSION > VERSION_DEMO
if (mpProc != NULL)
#endif
delete mpProc;
#if VERSION > VERSION_DEMO
if (solid_heap != NULL)
#endif
mDoExt_destroySolidHeap(solid_heap);
dComIfG_resDeleteDemo(&mPhs, "Opening");
dComIfGp_setWindowNum(0);
}
/* 80232DD8-80232E6C .text changeGameScene__10dScnOpen_cFv */
void dScnOpen_c::changeGameScene() {
if (fopOvlpM_IsPeek())
return;
if (fpcM_GetName(this) == fpcNm_OPEN2_SCENE_e) {
dComIfG_changeOpeningScene(this, fpcNm_OPENING2_SCENE_e);
} else {
if (fopScnM_ChangeReq(this, fpcNm_PLAY_SCENE_e, fpcNm_OVERLAP0_e, 5)) {
dComIfGs_setRestartRoomParam(0);
mDoAud_setSceneName(dComIfGp_getNextStageName(), dComIfGp_getNextStageRoomNo(), dComIfGp_getNextStageLayer());
}
}
}
/* 80232E6C-80232E8C .text dScnOpen_Draw__FP10dScnOpen_c */
static BOOL dScnOpen_Draw(dScnOpen_c* i_this) {
return i_this->draw();
}
/* 80232E8C-80232EAC .text dScnOpen_Execute__FP10dScnOpen_c */
static BOOL dScnOpen_Execute(dScnOpen_c* i_this) {
return i_this->execute();
}
/* 80232EAC-80232EB4 .text dScnOpen_IsDelete__FP10dScnOpen_c */
static BOOL dScnOpen_IsDelete(dScnOpen_c* i_this) {
return TRUE;
}
/* 80232EB4-80232EDC .text dScnOpen_Delete__FP10dScnOpen_c */
static BOOL dScnOpen_Delete(dScnOpen_c* i_this) {
i_this->~dScnOpen_c();
return TRUE;
}
/* 80232EDC-80232EFC .text dScnOpen_Create__FP11scene_class */
static cPhs_State dScnOpen_Create(scene_class* i_scn) {
dScnOpen_c* i_this = (dScnOpen_c*)i_scn;
return i_this->create();
}
static scene_method_class l_dScnOpen_Method = {
(process_method_func)dScnOpen_Create,
(process_method_func)dScnOpen_Delete,
(process_method_func)dScnOpen_Execute,
(process_method_func)dScnOpen_IsDelete,
(process_method_func)dScnOpen_Draw,
};
scene_process_profile_definition g_profile_OPEN_SCENE = {
/* Layer ID */ fpcLy_ROOT_e,
/* List ID */ 1,
/* List Prio */ fpcPi_CURRENT_e,
/* Proc Name */ fpcNm_OPEN_SCENE_e,
/* Proc SubMtd */ &g_fpcNd_Method.base,
/* Size */ sizeof(dScnOpen_c),
/* Size Other */ 0,
/* Parameters */ 0,
/* Node SubMtd */ &g_fopScn_Method.base,
/* Scene SubMtd */ &l_dScnOpen_Method,
};
scene_process_profile_definition g_profile_OPEN2_SCENE = {
/* Layer ID */ fpcLy_ROOT_e,
/* List ID */ 1,
/* List Prio */ fpcPi_CURRENT_e,
/* Proc Name */ fpcNm_OPEN2_SCENE_e,
/* Proc SubMtd */ &g_fpcNd_Method.base,
/* Size */ sizeof(dScnOpen_c),
/* Size Other */ 0,
/* Parameters */ 0,
/* Node SubMtd */ &g_fopScn_Method.base,
/* Scene SubMtd */ &l_dScnOpen_Method,
};
|