summaryrefslogtreecommitdiff
path: root/include/d/d_stage.h
blob: dfda316ec0e058306181ce2b911968c6bfa7b77e (plain)
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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
#ifndef D_D_STAGE_H
#define D_D_STAGE_H

#include "SSystem/SComponent/c_bg_s_poly_info.h"
#include "SSystem/SComponent/c_lib.h"
#include "SSystem/SComponent/c_sxyz.h"
#include "SSystem/SComponent/c_xyz.h"
#include "d/d_kankyo.h"
#include "JSystem/JUtility/JUTAssert.h"
#include "global.h"
#include "f_op/f_op_actor_mng.h"

void dStage_SetErrorRoom();
void dStage_SetErrorStage();

enum StageType {
    /* 0x00 */ dStageType_OUTDOORS_e,
    /* 0x01 */ dStageType_DUNGEON_e,
    /* 0x02 */ dStageType_MISC_e, // Mostly interior rooms but also some exceptions
    /* 0x03 */ dStageType_BOSS_e,
    /* 0x04 */ dStageType_SUBDUNGEON_e, // Name based on the debug map select entry サブダンジョン
    /* 0x05 */ dStageType_FF1_e,
    /* 0x06 */ dStageType_MINIBOSS_e,
    /* 0x07 */ dStageType_SEA_e,
    /* 0x08 */ dStageType_UNKNOWN_8_e,
};

// made up name
struct dStage_nodeHeader {
    /* 0x0 */ u32 m_tag;
    /* 0x4 */ int m_entryNum;
    /* 0x8 */ u32 m_offset;
};

// made up name
struct dStage_fileHeader {
    /* 0x0 */ int m_chunkCount;
    /* 0x4 */ dStage_nodeHeader m_nodes[];
};

// Virt
struct stage_vrbox_info_class {
    /* 0x00 */ u32 field_0x00;
    /* 0x04 */ u32 field_0x04;
    /* 0x08 */ u32 field_0x08;
    /* 0x0C */ u32 field_0x0c;
    /* 0x10 */ GXColor mKumoColor;
    /* 0x14 */ GXColor mKumoCenterColor;
    /* 0x18 */ color_RGB_class mSkyColor;
    /* 0x1B */ color_RGB_class mUsoUmiColor;
    /* 0x1E */ color_RGB_class mKasumiMaeColor;
};  // Size: 0x24

// TRES
struct stage_tresure_data_class {
    /* 0x00 */ char name[8];
    /* 0x08 */ fopAcM_prmBase_class base;
};  // Size: 0x20

struct stage_tresure_class {
    /* 0x00 */ int num;
    /* 0x04 */ stage_tresure_data_class* m_entries;
};

// STAG
struct stage_stag_info_class {
    /* 0x00 */ f32 mNearPlane;
    /* 0x04 */ f32 mFarPlane;
    /* 0x08 */ u8 mCameraMapToolID;
    /* 0x09 */ u8 mProp;
    /* 0x0A */ u16 mParticleSceneNo;
    /* 0x0C */ u32 mStageTypeAndSchbit;
    /* 0x10 */ u32 mSchbitEnableAndFarPlane; // High 16 bits are the schbit enable, low 16 bits are the far plane
    /* 0x14 */ u32 field_0x14;
    /* 0x18 */ u32 field_0x18;
    /* 0x1C */ u32 field_0x1c;
};  // Size: 0x20

// SCLS
struct stage_scls_info_class {
    /* 0x0 */ char mStage[8];
    /* 0x8 */ u8 mStart;
    /* 0x9 */ u8 mRoom;
    /* 0xA */ u8 mWipe;
    /* 0xB */ u8 field_0xb;
};  // Size: 0xC

struct stage_scls_info_dummy_class {
    /* 0x00 */ int num;
    /* 0x04 */ stage_scls_info_class* m_entries;
};

// LGTV
struct stage_lightvec_info_class {
    /* 0x00 */ Vec position;
    /* 0x0C */ f32 radius;
    /* 0x10 */ u8 field_0x10[0x18 - 0x10];
    /* 0x18 */ u8 field_0x18[0x1B - 0x18];
    /* 0x1B */ u8 fluctuation;
};  // Size: 0x1C

// COLO
struct stage_pselect_info_class {
    /* 0x0 */ u8 palette_id[8];
    /* 0x8 */ f32 change_rate;
};  // Size: 0xC

// LGHT
struct stage_plight_info_class {
    /* 0x00 */ Vec position;
    /* 0x0C */ f32 radius;
    /* 0x10 */ u8 field_0x10[0x18 - 0x10];
    /* 0x18 */ color_RGB_class color;
    /* 0x1B */ u8 fluctuation;
};  // Size: 0x1C

// Pale
struct stage_palet_info_class {
    /* 0x00 */ color_RGB_class mActor_C0;
    /* 0x03 */ color_RGB_class mActor_K0;
    /* 0x06 */ color_RGB_class mBG0_C0;
    /* 0x09 */ color_RGB_class mBG0_K0;
    /* 0x0C */ color_RGB_class mBG1_C0;
    /* 0x0F */ color_RGB_class mBG1_K0;
    /* 0x12 */ color_RGB_class mBG2_C0;
    /* 0x15 */ color_RGB_class mBG2_K0;
    /* 0x18 */ color_RGB_class mBG3_C0;
    /* 0x1B */ color_RGB_class mBG3_K0;
    /* 0x1E */ color_RGB_class mFog;
    /* 0x21 */ u8 mVirtIdx;
    /* 0x24 */ f32 mFogStartZ;
    /* 0x28 */ f32 mFogEndZ;
};  // Size: 0x2C

// 2Dma / 2DMA
struct stage_map_info_class {
    /* 0x00 */ f32 field_0x00;
    /* 0x04 */ f32 field_0x04;
    /* 0x08 */ f32 field_0x08;
    /* 0x0C */ f32 field_0x0C;
    /* 0x10 */ f32 field_0x10;
    /* 0x14 */ f32 field_0x14;
    /* 0x18 */ f32 field_0x18;
    /* 0x1C */ f32 field_0x1C;
    /* 0x20 */ f32 field_0x20;
    /* 0x24 */ f32 field_0x24;
    /* 0x28 */ f32 field_0x28;
    /* 0x2C */ f32 field_0x2c;
    /* 0x30 */ f32 field_0x30;
    /* 0x34 */ u8 field_0x34;
    /* 0x35 */ u8 field_0x35;
    /* 0x36 */ u8 mOceanXZ;
    /* 0x37 */ u8 field_0x37[0x38 - 0x37];
};  // Size: 0x38

struct stage_map_info_dummy_class {
    /* 0x0 */ int num;
    /* 0x4 */ stage_map_info_class* m_entries;
};

// EnvR
struct stage_envr_info_class {
    /* 0x0 */ u8 pselect_id[8];
};  // Size: 0x8

// CAMR / RCAM
struct stage_camera2_data_class {
    /* 0x00 */ char m_cam_type[16];
    /* 0x10 */ u8 m_arrow_idx;
    /* 0x11 */ u8 field_0x11;
    /* 0x12 */ u8 field_0x12;
    /* 0x13 */ u8 field_0x13;
};  // Size: 0x14

struct stage_camera_class {
    /* 0x0 */ int num;
    /* 0x4 */ stage_camera2_data_class* m_entries;
};

// AROB / RARO
struct stage_arrow_data_class {
    /* 0x00 */ cXyz position;
    /* 0x0C */ csXyz angle;
    /* 0x12 */ s16 field_0x12;
};  // Size: 0x14

struct stage_arrow_class {
    /* 0x00 */ int num;
    /* 0x04 */ stage_arrow_data_class* m_entries;
};

// ACT
struct stage_actor_data_class {
    /* 0x00 */ char name[8];
    /* 0x08 */ fopAcM_prmBase_class base;
};  // Size: 0x20

struct stage_actor_class {
    /* 0x0 */ int num;
    /* 0x4 */ stage_actor_data_class* m_entries;
};

// TGSC / SCOB / DOOR / TGDR
struct stage_tgsc_data_class {
    /* 0x00 */ char name[8];
    /* 0x08 */ fopAcM_prmBase_class base;
    /* 0x20 */ fopAcM_prmScale_class scale;
};  // Size: 0x24

struct stage_tgsc_class {
    /* 0x00 */ int num;
    /* 0x04 */ stage_tgsc_data_class* m_entries;
};

// RTBL
struct roomRead_data_class {
    /* 0x0 */ u8 num;
    /* 0x1 */ u8 field_0x1;
    /* 0x2 */ u8 field_0x2;
    /* 0x4 */ u8* m_rooms;
};  // Size: 0x8

struct roomRead_class {
    /* 0x0 */ int num;
    /* 0x4 */ roomRead_data_class** m_entries;
};

// MEMA
struct dStage_MemoryMap_c {
    /* 0x0 */ int num;
    /* 0x4 */ u32* m_entries;
};

// MECO
struct dStage_MemoryConfig_data {
    /* 0x0 */ u8 m_roomNo;
    /* 0x1 */ u8 m_blockID;
};  // Size: 0x2

struct dStage_MemoryConfig_c {
    /* 0x0 */ int num;
    /* 0x4 */ dStage_MemoryConfig_data* m_entries;
};

// PATH / RPAT
struct dPath;
struct dStage_dPath_c {
    /* 0x0 */ int num;
    /* 0x4 */ dPath* m_path;
};

// PPNT / RPPN
struct dStage_dPnt_c {
    /* 0x0 */ int num;
    /* 0x4 */ u32 m_pnt_offset;
};  // Size: 0x8

// MULT
struct dStage_Mult_info {
    /* 0x0 */ f32 mTransX;
    /* 0x4 */ f32 mTransY;
    /* 0x8 */ s16 mAngle;
    /* 0xA */ u8 mRoomNo;
    /* 0xB */ u8 mWaveMax;
};  // Size: 0xC

struct dStage_Multi_c {
    /* 0x0 */ int num;
    /* 0x4 */ dStage_Mult_info* m_entries;
};

// SOND
struct stage_sound_data {
    /* 0x00 */ char field_0x0[8];
    /* 0x08 */ Vec field_0x8;
    /* 0x14 */ u8 field_0x14;
    /* 0x15 */ u8 field_0x15;
    /* 0x16 */ u8 field_0x16;
    /* 0x17 */ u8 field_0x17;
    /* 0x18 */ u8 field_0x18;
    /* 0x19 */ u8 field_0x19;
    /* 0x1A */ u8 field_0x1a;
};  // Size: 0x1C

struct dStage_SoundInfo_c {
    /* 0x0 */ int num;
    /* 0x4 */ stage_sound_data* m_entries;
};

// FILI
struct dStage_FileList_dt_c {
    /* 0x0 */ u32 mParam;
    /* 0x4 */ f32 mSeaLevel;
};  // Size: 0x8

// FLOR
struct dStage_FloorInfo_dt_c {
    /* 0x00 */ f32 field_0x00;
    /* 0x04 */ u8 floorNo;
    /* 0x05 */ s8 field_0x05[14];
}; // Size: 0x14

struct dStage_FloorInfo_c {
    /* 0x00 */ int num;
    /* 0x04 */ dStage_FloorInfo_dt_c* m_entries;
};


// LBNK
struct dStage_Lbnk_c {
    /* 0x00 */ int m_num;
    /* 0x04 */ u8* m_entries;
};

// DMAP
struct dStage_DMap_dt_c {
    /* 0x00 */ int field_0x00;
    /* 0x04 */ int field_0x04;
    /* 0x08 */ int field_0x08;
    /* 0x0C */ f32 offsetY;
};  // Size: 0x10

struct dStage_DMap_c {
    /* 0x00 */ int num;
    /* 0x04 */ dStage_DMap_dt_c* entries;
};

// EVNT
struct dStage_Event_dt_c {
    /* 0x00 */ u8 field_0x0;
    /* 0x04 */ char mName[15];
    /* 0x10 */ u8 field_0x10;
    /* 0x11 */ u8 field_0x11;
    /* 0x12 */ u8 field_0x12;
    /* 0x13 */ u8 mSpawnSwitchNo; // Keeps track of whether this event has been triggered by a player spawn.
    /* 0x14 */ u8 field_0x14;
    /* 0x15 */ u8 field_0x15;
    /* 0x16 */ u8 field_0x16;
    /* 0x17 */ u8 field_0x17;
}; // Size: 0x18

struct dStage_EventInfo_c {
    /* 0x00 */ s32 num;
    /* 0x04 */ dStage_Event_dt_c* events;
}; // Size: 0x08

// SHIP
struct dStage_Ship_dt_c {
    /* 0x0 */ cXyz m_pos;
    /* 0xC */ s16 m_angle;
    /* 0xE */ u8 field_0xe;
    /* 0xF */ u8 field_0xf;
};  // Size: 0x10

struct dStage_Ship_c {
    /* 0x0 */ int num;
    /* 0x4 */ dStage_Ship_dt_c* m_entries;
};

struct FuncTable;

class dStage_dt_c {
public:
    dStage_dt_c() {}
    ~dStage_dt_c() {}

    /* vt[ 2] */ virtual void init() = 0;
    /* vt[ 3] */ virtual int getRoomNo() const = 0;
    /* vt[ 4] */ virtual void setCamera(stage_camera_class*) = 0;
    /* vt[ 5] */ virtual stage_camera_class* getCamera() const = 0;
    /* vt[ 6] */ virtual void setArrow(stage_arrow_class*) = 0;
    /* vt[ 7] */ virtual stage_arrow_class* getArrow() const = 0;
    /* vt[ 8] */ virtual void setPlayer(stage_actor_class*) = 0;
    /* vt[ 9] */ virtual stage_actor_class* getPlayer() const = 0;
    /* vt[10] */ virtual void setPlayerNum(u16) = 0;
    /* vt[11] */ virtual u16 getPlayerNum() const = 0;
    /* vt[12] */ virtual void setRoom(roomRead_class*) = 0;
    /* vt[13] */ virtual roomRead_class* getRoom() const = 0;
    /* vt[14] */ virtual void setMapInfo(stage_map_info_class*) = 0;
    /* vt[15] */ virtual stage_map_info_class* getMapInfo() const = 0;
    /* vt[16] */ virtual stage_map_info_class* getMapInfo2(int) const = 0;
    /* vt[17] */ virtual void setMapInfoBase(stage_map_info_dummy_class*) = 0;
    /* vt[18] */ virtual stage_map_info_dummy_class* getMapInfoBase() const = 0;
    /* vt[19] */ virtual void setPaletInfo(stage_palet_info_class*) = 0;
    /* vt[20] */ virtual stage_palet_info_class* getPaletInfo() const = 0;
    /* vt[21] */ virtual void setPselectInfo(stage_pselect_info_class*) = 0;
    /* vt[22] */ virtual stage_pselect_info_class* getPselectInfo() const = 0;
    /* vt[23] */ virtual void setEnvrInfo(stage_envr_info_class*) = 0;
    /* vt[24] */ virtual stage_envr_info_class* getEnvrInfo() const = 0;
    /* vt[25] */ virtual void setVrboxInfo(stage_vrbox_info_class*) = 0;
    /* vt[26] */ virtual stage_vrbox_info_class* getVrboxInfo() const = 0;
    /* vt[27] */ virtual void setPlightInfo(stage_plight_info_class*) = 0;
    /* vt[28] */ virtual stage_plight_info_class* getPlightInfo() const = 0;
    /* vt[29] */ virtual void setPaletNumInfo(int) = 0;
    /* vt[30] */ virtual int getPaletNumInfo() const = 0;
    /* vt[31] */ virtual void setPselectNumInfo(int) = 0;
    /* vt[32] */ virtual int getPselectNumInfo() const = 0;
    /* vt[33] */ virtual void setEnvrNumInfo(int) = 0;
    /* vt[34] */ virtual int getEnvrNumInfo() const = 0;
    /* vt[35] */ virtual void setVrboxNumInfo(int) = 0;
    /* vt[36] */ virtual int getVrboxNumInfo() const = 0;
    /* vt[37] */ virtual void setPlightNumInfo(int) = 0;
    /* vt[38] */ virtual int getPlightNumInfo() const = 0;
    /* vt[39] */ virtual void setLightVecInfo(stage_lightvec_info_class*) = 0;
    /* vt[40] */ virtual stage_lightvec_info_class* getLightVecInfo() const = 0;
    /* vt[41] */ virtual void setLightVecInfoNum(int) = 0;
    /* vt[42] */ virtual int getLightVecInfoNum() const = 0;
    /* vt[43] */ virtual void setStagInfo(stage_stag_info_class*) = 0;
    /* vt[44] */ virtual stage_stag_info_class* getStagInfo() const = 0;
    /* vt[45] */ virtual void setSclsInfo(stage_scls_info_dummy_class*) = 0;
    /* vt[46] */ virtual stage_scls_info_dummy_class* getSclsInfo() const = 0;
    /* vt[47] */ virtual void setPntInfo(dStage_dPnt_c*) = 0;
    /* vt[48] */ virtual dStage_dPnt_c* getPntInf() const = 0;
    /* vt[49] */ virtual void setPathInfo(dStage_dPath_c*) = 0;
    /* vt[50] */ virtual dStage_dPath_c* getPathInf() const = 0;
    /* vt[51] */ virtual void setPnt2Info(dStage_dPnt_c*) = 0;
    /* vt[52] */ virtual dStage_dPnt_c* getPnt2Inf() const = 0;
    /* vt[53] */ virtual void setPath2Info(dStage_dPath_c*) = 0;
    /* vt[54] */ virtual dStage_dPath_c* getPath2Inf() const = 0;
    /* vt[55] */ virtual void setSoundInfo(dStage_SoundInfo_c*) = 0;
    /* vt[56] */ virtual dStage_SoundInfo_c* getSoundInf() const = 0;
    /* vt[57] */ virtual void setEventInfo(dStage_EventInfo_c*) = 0;
    /* vt[58] */ virtual dStage_EventInfo_c* getEventInfo() const = 0;
    /* vt[59] */ virtual void setFileListInfo(dStage_FileList_dt_c*) = 0;
    /* vt[60] */ virtual dStage_FileList_dt_c* getFileListInfo() const = 0;
    /* vt[61] */ virtual void setFloorInfo(dStage_FloorInfo_c*) = 0;
    /* vt[62] */ virtual dStage_FloorInfo_c* getFloorInfo() const = 0;
    /* vt[63] */ virtual void setMemoryConfig(dStage_MemoryConfig_c*) = 0;
    /* vt[64] */ virtual dStage_MemoryConfig_c* getMemoryConfig() const = 0;
    /* vt[65] */ virtual void setMemoryMap(dStage_MemoryMap_c*) = 0;
    /* vt[66] */ virtual dStage_MemoryMap_c* getMemoryMap() const = 0;
    /* vt[67] */ virtual void setShip(dStage_Ship_c*) = 0;
    /* vt[68] */ virtual dStage_Ship_c* getShip() const = 0;
    /* vt[69] */ virtual void setMulti(dStage_Multi_c*) = 0;
    /* vt[70] */ virtual dStage_Multi_c* getMulti() const = 0;
    /* vt[71] */ virtual void setLbnk(dStage_Lbnk_c*) = 0;
    /* vt[72] */ virtual dStage_Lbnk_c* getLbnk() const = 0;
    /* vt[73] */ virtual void setTresure(stage_tresure_class*) = 0;
    /* vt[74] */ virtual stage_tresure_class* getTresure() const = 0;
    /* vt[75] */ virtual void setDMap(dStage_DMap_c*) = 0;
    /* vt[76] */ virtual dStage_DMap_c* getDMap() const = 0;
    /* vt[77] */ virtual void setDrTg(stage_tgsc_class*) = 0;
    /* vt[78] */ virtual stage_tgsc_class* getDrTg() const = 0;
};

class dStage_stageDt_c : public dStage_dt_c {
public:
    dStage_stageDt_c() {}

    /* vt[ 2] */ virtual void init();
    /* vt[ 3] */ virtual int getRoomNo() const { return -1; }
    /* vt[ 4] */ virtual void setCamera(stage_camera_class* i_camera) { mpCamera = i_camera; }
    /* vt[ 5] */ virtual stage_camera_class* getCamera() const { return mpCamera; }
    /* vt[ 6] */ virtual void setArrow(stage_arrow_class* i_arrow) { mpArrow = i_arrow; }
    /* vt[ 7] */ virtual stage_arrow_class* getArrow() const { return mpArrow; }
    /* vt[ 8] */ virtual void setPlayer(stage_actor_class* i_player) { mpPlayer = i_player; }
    /* vt[ 9] */ virtual stage_actor_class* getPlayer() const { return mpPlayer; }
    /* vt[10] */ virtual void setPlayerNum(u16 i_playerNum) { mPlayerNum = i_playerNum; }
    /* vt[11] */ virtual u16 getPlayerNum() const { return mPlayerNum; }
    /* vt[12] */ virtual void setRoom(roomRead_class* i_room) { mpRoomReads = i_room; }
    /* vt[13] */ virtual roomRead_class* getRoom() const { return mpRoomReads; }
    /* vt[14] */ virtual void setMapInfo(stage_map_info_class* i_mapInfo) { mpMapInfo = i_mapInfo; }
    /* vt[15] */ virtual stage_map_info_class* getMapInfo() const { return mpMapInfo; }
    /* vt[16] */ virtual stage_map_info_class* getMapInfo2(int) const;
    /* vt[17] */ virtual void setMapInfoBase(stage_map_info_dummy_class* i_mapInfoBase) { mpMapInfoBase = i_mapInfoBase; }
    /* vt[18] */ virtual stage_map_info_dummy_class* getMapInfoBase() const;
    /* vt[19] */ virtual void setPaletInfo(stage_palet_info_class* i_paletInfo) { mpPaletInfo = i_paletInfo; }
    /* vt[20] */ virtual stage_palet_info_class* getPaletInfo() const { return mpPaletInfo; }
    /* vt[21] */ virtual void setPselectInfo(stage_pselect_info_class* i_pselectInfo) { mpPselectInfo = i_pselectInfo; }
    /* vt[22] */ virtual stage_pselect_info_class* getPselectInfo() const { return mpPselectInfo; }
    /* vt[23] */ virtual void setEnvrInfo(stage_envr_info_class* i_envrInfo) { mpEnvrInfo = i_envrInfo; }
    /* vt[24] */ virtual stage_envr_info_class* getEnvrInfo() const { return mpEnvrInfo; }
    /* vt[25] */ virtual void setVrboxInfo(stage_vrbox_info_class* i_vrboxInfo) { mpVrboxInfo = i_vrboxInfo; }
    /* vt[26] */ virtual stage_vrbox_info_class* getVrboxInfo() const { return mpVrboxInfo; }
    /* vt[27] */ virtual void setPlightInfo(stage_plight_info_class* i_plightInfo) { mpPlightInfo = i_plightInfo; }
    /* vt[28] */ virtual stage_plight_info_class* getPlightInfo() const { return mpPlightInfo; }
    /* vt[29] */ virtual void setPaletNumInfo(int i_paletNum) { mPaletInfoNum = i_paletNum; }
    /* vt[30] */ virtual int getPaletNumInfo() const { return mPaletInfoNum; }
    /* vt[31] */ virtual void setPselectNumInfo(int i_pselectNum) { mPselectInfoNum = i_pselectNum; }
    /* vt[32] */ virtual int getPselectNumInfo() const { return mPselectInfoNum; }
    /* vt[33] */ virtual void setEnvrNumInfo(int i_envrNum) { mEnvrInfoNum = i_envrNum; }
    /* vt[34] */ virtual int getEnvrNumInfo() const { return mEnvrInfoNum; }
    /* vt[35] */ virtual void setVrboxNumInfo(int i_vrboxNum) { mVrboxInfoNum = i_vrboxNum; }
    /* vt[36] */ virtual int getVrboxNumInfo() const { return mVrboxInfoNum; }
    /* vt[39] */ virtual void setLightVecInfo(stage_lightvec_info_class*) {
        dStage_SetErrorStage();
        OSReport("stage non LightVec data !!\n");
        JUT_ASSERT(2380, FALSE);
    }
    /* vt[40] */ virtual stage_lightvec_info_class* getLightVecInfo() const {
        OSReport("stage non LightVec data !!\n");
        JUT_ASSERT(2384, FALSE);
        return NULL;
    }
    /* vt[41] */ virtual void setLightVecInfoNum(int) {
        dStage_SetErrorStage();
        OSReport("stage non LightVecNum data !!\n");
        JUT_ASSERT(2391, FALSE);
    }
    /* vt[42] */ virtual int getLightVecInfoNum() const {
        OSReport("stage non LightVecNum data !!\n");
        JUT_ASSERT(2395, FALSE);
        return 0;
    }
    /* vt[37] */ virtual void setPlightNumInfo(int i_plightNum) { mPlightInfoNum = i_plightNum; }
    /* vt[38] */ virtual int getPlightNumInfo() const { return mPlightInfoNum; }
    /* vt[43] */ virtual void setStagInfo(stage_stag_info_class* i_stag) { mpStagInfo = i_stag; }
    /* vt[44] */ virtual stage_stag_info_class* getStagInfo() const { return mpStagInfo; }
    /* vt[45] */ virtual void setSclsInfo(stage_scls_info_dummy_class* i_scls) { mpScls = i_scls; }
    /* vt[46] */ virtual stage_scls_info_dummy_class* getSclsInfo() const { return mpScls; }
    /* vt[47] */ virtual void setPntInfo(dStage_dPnt_c* i_pnt) { mpPnt = i_pnt; }
    /* vt[48] */ virtual dStage_dPnt_c* getPntInf() const { return mpPnt; }
    /* vt[49] */ virtual void setPathInfo(dStage_dPath_c* i_path) { mpPath = i_path; }
    /* vt[50] */ virtual dStage_dPath_c* getPathInf() const { return mpPath; }
    /* vt[51] */ virtual void setPnt2Info(dStage_dPnt_c* i_pnt) { mpPnt2 = i_pnt; }
    /* vt[52] */ virtual dStage_dPnt_c* getPnt2Inf() const { return mpPnt2; }
    /* vt[53] */ virtual void setPath2Info(dStage_dPath_c* i_path) { mpPath2 = i_path; }
    /* vt[54] */ virtual dStage_dPath_c* getPath2Inf() const { return mpPath2; }
    /* vt[55] */ virtual void setSoundInfo(dStage_SoundInfo_c* i_soundInfo) { mpSoundInfo = i_soundInfo; }
    /* vt[56] */ virtual dStage_SoundInfo_c* getSoundInf() const { return mpSoundInfo; }
    /* vt[57] */ virtual void setEventInfo(dStage_EventInfo_c* i_eventInfo) { mpEventInfo = i_eventInfo; }
    /* vt[58] */ virtual dStage_EventInfo_c* getEventInfo() const { return mpEventInfo; }
    /* vt[59] */ virtual void setFileListInfo(dStage_FileList_dt_c*) {
        dStage_SetErrorStage();
        OSReport("stage non filelist data!\n");
        JUT_ASSERT(2490, FALSE);
    }
    /* vt[60] */ virtual dStage_FileList_dt_c* getFileListInfo() const {
        OSReport("stage non filelist data!\n");
        JUT_ASSERT(2494, FALSE);
        return NULL;
    }
    /* vt[61] */ virtual void setFloorInfo(dStage_FloorInfo_c* i_floorInfo) { mpFloorInfo = i_floorInfo; }
    /* vt[62] */ virtual dStage_FloorInfo_c* getFloorInfo() const { return mpFloorInfo; }
    /* vt[63] */ virtual void setMemoryConfig(dStage_MemoryConfig_c* i_config) { mpMemoryConfig = i_config; }
    /* vt[64] */ virtual dStage_MemoryConfig_c* getMemoryConfig() const { return mpMemoryConfig; }
    /* vt[65] */ virtual void setMemoryMap(dStage_MemoryMap_c* i_map) { mpMemoryMap = i_map; }
    /* vt[66] */ virtual dStage_MemoryMap_c* getMemoryMap() const { return mpMemoryMap; }
    /* vt[67] */ virtual void setShip(dStage_Ship_c*) {
        dStage_SetErrorStage();
        OSReport("stage non SHIP data!\n");
        JUT_ASSERT(2561, FALSE);
    }
    /* vt[68] */ virtual dStage_Ship_c* getShip() const {
        OSReport("stage non SHIP data!\n");
        JUT_ASSERT(2565, FALSE);
        return NULL;
    }
    /* vt[69] */ virtual void setMulti(dStage_Multi_c* i_multi) { mpMulti = i_multi; }
    /* vt[70] */ virtual dStage_Multi_c* getMulti() const { return mpMulti; }
    /* vt[71] */ virtual void setLbnk(dStage_Lbnk_c*) {
        dStage_SetErrorStage();
        OSReport("stage non Lbnk data!\n");
        JUT_ASSERT(2590, FALSE);
    }
    /* vt[72] */ virtual dStage_Lbnk_c* getLbnk() const {
        OSReport("stage non Lbnk data!\n");
        JUT_ASSERT(2597, FALSE);
        return NULL;
    }
    /* vt[73] */ virtual void setTresure(stage_tresure_class* i_tresure) { mpTresure = i_tresure; }
    /* vt[74] */ virtual stage_tresure_class* getTresure() const { return mpTresure; }
    /* vt[75] */ virtual void setDMap(dStage_DMap_c* i_dmap) { mpDMap = i_dmap; }
    /* vt[76] */ virtual dStage_DMap_c* getDMap() const { return mpDMap; }
    /* vt[77] */ virtual void setDrTg(stage_tgsc_class* i_drtg) { mpDrTg = i_drtg; }
    /* vt[78] */ virtual stage_tgsc_class* getDrTg() const { return mpDrTg; }

public:
    /* 0x04 */ stage_camera_class* mpCamera;
    /* 0x08 */ stage_arrow_class* mpArrow;
    /* 0x0C */ stage_actor_class* mpPlayer;
    /* 0x10 */ roomRead_class* mpRoomReads;
    /* 0x14 */ stage_map_info_class* mpMapInfo;
    /* 0x18 */ stage_map_info_dummy_class* mpMapInfoBase;
    /* 0x1C */ stage_palet_info_class* mpPaletInfo;
    /* 0x20 */ stage_pselect_info_class* mpPselectInfo;
    /* 0x24 */ stage_envr_info_class* mpEnvrInfo;
    /* 0x28 */ stage_vrbox_info_class* mpVrboxInfo;
    /* 0x2C */ stage_plight_info_class* mpPlightInfo;
    /* 0x30 */ int mPaletInfoNum;
    /* 0x34 */ int mPselectInfoNum;
    /* 0x38 */ int mEnvrInfoNum;
    /* 0x3C */ int mVrboxInfoNum;
    /* 0x40 */ int mPlightInfoNum;
    /* 0x44 */ u16 mPlayerNum;
    /* 0x48 */ stage_stag_info_class* mpStagInfo;
    /* 0x4C */ stage_scls_info_dummy_class* mpScls;
    /* 0x50 */ dStage_dPnt_c* mpPnt;
    /* 0x54 */ dStage_dPath_c* mpPath;
    /* 0x58 */ dStage_dPnt_c* mpPnt2;
    /* 0x5C */ dStage_dPath_c* mpPath2;
    /* 0x60 */ dStage_SoundInfo_c* mpSoundInfo;
    /* 0x64 */ dStage_EventInfo_c* mpEventInfo;
    /* 0x68 */ dStage_FloorInfo_c* mpFloorInfo;
    /* 0x6C */ dStage_MemoryConfig_c* mpMemoryConfig;
    /* 0x70 */ dStage_MemoryMap_c* mpMemoryMap;
    /* 0x74 */ dStage_Multi_c* mpMulti;
    /* 0x78 */ stage_tresure_class* mpTresure;
    /* 0x7C */ dStage_DMap_c* mpDMap;
    /* 0x80 */ stage_tgsc_class* mpDrTg;
};

class dStage_roomDt_c : public dStage_dt_c {
public:
    void setRoomNo(int roomNo) { mRoomNo = roomNo; }
    /* vt[ 2] */ virtual void init();
    /* vt[ 3] */ virtual int getRoomNo() const { return mRoomNo; }
    /* vt[ 4] */ virtual void setCamera(stage_camera_class* i_camera) { mpCamera = i_camera; }
    /* vt[ 5] */ virtual stage_camera_class* getCamera() const { return mpCamera; }
    /* vt[ 6] */ virtual void setArrow(stage_arrow_class* i_arrow) { mpArrow = i_arrow; }
    /* vt[ 7] */ virtual stage_arrow_class* getArrow() const { return mpArrow; }
    /* vt[ 8] */ virtual void setPlayer(stage_actor_class* i_player) { mpPlayer = i_player; }
    /* vt[ 9] */ virtual stage_actor_class* getPlayer() const { return mpPlayer; }
    /* vt[10] */ virtual void setPlayerNum(u16 i_playerNum) { mPlayerNum = i_playerNum; }
    /* vt[11] */ virtual u16 getPlayerNum() const { return mPlayerNum; }
    /* vt[12] */ virtual void setRoom(roomRead_class*) {
        dStage_SetErrorRoom();
        OSReport("Room non room data !!\n");
        JUT_ASSERT(1613, FALSE);
    }
    /* vt[13] */ virtual roomRead_class* getRoom() const {
        OSReport("Room non room data !!\n");
        JUT_ASSERT(1618, FALSE);
        return NULL;
    }
    /* vt[14] */ virtual void setMapInfo(stage_map_info_class* i_mapInfo) { mpMapInfo = i_mapInfo; }
    /* vt[15] */ virtual stage_map_info_class* getMapInfo() const { return mpMapInfo; }
    /* vt[16] */ virtual stage_map_info_class* getMapInfo2(int) const;
    /* vt[17] */ virtual void setMapInfoBase(stage_map_info_dummy_class* i_mapInfoBase) { mpMapInfoBase = i_mapInfoBase; }
    /* vt[18] */ virtual stage_map_info_dummy_class* getMapInfoBase() const;
    /* vt[19] */ virtual void setPaletInfo(stage_palet_info_class*) {
        dStage_SetErrorRoom();
        OSReport("Room non palet data !!\n");
        JUT_ASSERT(1644, FALSE);
    }
    /* vt[20] */ virtual stage_palet_info_class* getPaletInfo() const {
        OSReport("Room non palet data !!\n");
        JUT_ASSERT(1648, FALSE);
        return NULL;
    }
    /* vt[21] */ virtual void setPselectInfo(stage_pselect_info_class*) {
        dStage_SetErrorRoom();
        OSReport("Room non pselect data !!\n");
        JUT_ASSERT(1655, FALSE);
    }
    /* vt[22] */ virtual stage_pselect_info_class* getPselectInfo() const {
        OSReport("Room non pselect data !!\n");
        JUT_ASSERT(1659, FALSE);
        return NULL;
    }
    /* vt[23] */ virtual void setEnvrInfo(stage_envr_info_class*) {
        dStage_SetErrorRoom();
        OSReport("Room non envr data !!\n");
        JUT_ASSERT(1666, FALSE);
    }
    /* vt[24] */ virtual stage_envr_info_class* getEnvrInfo() const {
        OSReport("Room non envr data !!\n");
        JUT_ASSERT(1670, FALSE);
        return NULL;
    }
    /* vt[25] */ virtual void setVrboxInfo(stage_vrbox_info_class* i_vrbox) { mpVrbox = i_vrbox; }
    /* vt[26] */ virtual stage_vrbox_info_class* getVrboxInfo() const { return mpVrbox; }
    /* vt[27] */ virtual void setPlightInfo(stage_plight_info_class*) {
        dStage_SetErrorRoom();
        OSReport("Room non plight data !!\n");
        JUT_ASSERT(1686, FALSE);
    }
    /* vt[28] */ virtual stage_plight_info_class* getPlightInfo() const {
        OSReport("Room non plight data !!\n");
        JUT_ASSERT(1690, FALSE);
        return NULL;
    }
    /* vt[29] */ virtual void setPaletNumInfo(int) {
        dStage_SetErrorRoom();
        OSReport("Room non palet num data !!\n");
        JUT_ASSERT(1700, FALSE);
    }
    /* vt[30] */ virtual int getPaletNumInfo() const {
        OSReport("Room non palet num data !!\n");
        JUT_ASSERT(1704, FALSE);
        return 0;
    }
    /* vt[31] */ virtual void setPselectNumInfo(int) {
        dStage_SetErrorRoom();
        OSReport("Room non pselect num data !!\n");
        JUT_ASSERT(1711, FALSE);
    }
    /* vt[32] */ virtual int getPselectNumInfo() const {
        OSReport("Room non pselect num data !!\n");
        JUT_ASSERT(1715, FALSE);
        return 0;
    }
    /* vt[33] */ virtual void setEnvrNumInfo(int) {
        dStage_SetErrorRoom();
        OSReport("Room non envr num data !!\n");
        JUT_ASSERT(1722, FALSE);
    }
    /* vt[34] */ virtual int getEnvrNumInfo() const {
        OSReport("Room non envr num data !!\n");
        JUT_ASSERT(1726, FALSE);
        return 0;
    }
    /* vt[35] */ virtual void setVrboxNumInfo(int i_vrboxNum) { mVrboxNum = i_vrboxNum; }
    /* vt[36] */ virtual int getVrboxNumInfo() const { return mVrboxNum; }
    /* vt[37] */ virtual void setPlightNumInfo(int) {
        dStage_SetErrorRoom();
        OSReport("Room non plight num data !!\n");
        JUT_ASSERT(1735, FALSE);
    }
    /* vt[38] */ virtual int getPlightNumInfo() const {
        OSReport("Room non plight num data !!\n");
        JUT_ASSERT(1740, FALSE);
        return 0;
    }
    /* vt[39] */ virtual void setLightVecInfo(stage_lightvec_info_class* i_lightvecInfo) { mpLightVecInfo = i_lightvecInfo; }
    /* vt[40] */ virtual stage_lightvec_info_class* getLightVecInfo() const { return mpLightVecInfo; }
    /* vt[41] */ virtual void setLightVecInfoNum(int i_num) { mLightVecInfoNum = i_num; }
    /* vt[42] */ virtual int getLightVecInfoNum() const { return mLightVecInfoNum; }
    /* vt[43] */ virtual void setStagInfo(stage_stag_info_class*) {
        dStage_SetErrorRoom();
        OSReport("Room non stag data !!\n");
        JUT_ASSERT(1769, FALSE);
    }
    /* vt[44] */ virtual stage_stag_info_class* getStagInfo() const {
        OSReport("Room non stag data !!\n");
        JUT_ASSERT(1773, FALSE);
        return NULL;
    }
    /* vt[45] */ virtual void setSclsInfo(stage_scls_info_dummy_class* i_scls) { mpScls = i_scls; }
    /* vt[46] */ virtual stage_scls_info_dummy_class* getSclsInfo() const { return mpScls; }
    /* vt[47] */ virtual void setPntInfo(dStage_dPnt_c*) {
        dStage_SetErrorRoom();
        OSReport("Room non Pnt data !\n");
        JUT_ASSERT(1794, FALSE);
    }
    /* vt[48] */ virtual dStage_dPnt_c* getPntInf() const {
        OSReport("Room non Pnts data !\n");
        JUT_ASSERT(1798, FALSE);
        return NULL;
    }
    /* vt[49] */ virtual void setPathInfo(dStage_dPath_c*) {
        dStage_SetErrorRoom();
        OSReport("Room non Path data !\n");
        JUT_ASSERT(1805, FALSE);
    }
    /* vt[50] */ virtual dStage_dPath_c* getPathInf() const {
        OSReport("Room non Path data !\n");
        JUT_ASSERT(1809, FALSE);
        return NULL;
    }
    /* vt[51] */ virtual void setPnt2Info(dStage_dPnt_c* i_pnt) { mpPoint2 = i_pnt; }
    /* vt[52] */ virtual dStage_dPnt_c* getPnt2Inf() const { return mpPoint2; }
    /* vt[53] */ virtual void setPath2Info(dStage_dPath_c* i_path) { mpPath2 = i_path; }
    /* vt[54] */ virtual dStage_dPath_c* getPath2Inf() const { return mpPath2; }
    /* vt[55] */ virtual void setSoundInfo(dStage_SoundInfo_c* i_sound) { mpSound = i_sound; }
    /* vt[56] */ virtual dStage_SoundInfo_c* getSoundInf() const { return mpSound; }
    /* vt[57] */ virtual void setEventInfo(dStage_EventInfo_c*) {
        dStage_SetErrorRoom();
        OSReport("Room non event data!\n");
        JUT_ASSERT(1850, FALSE);
    }
    /* vt[58] */ virtual dStage_EventInfo_c* getEventInfo() const {
        OSReport("Room non event data!\n");
        JUT_ASSERT(1854, FALSE);
        return NULL;
    }
    /* vt[59] */ virtual void setFileListInfo(dStage_FileList_dt_c* i_filelist) { mpFileList = i_filelist; }
    /* vt[60] */ virtual dStage_FileList_dt_c* getFileListInfo() const { return mpFileList; }
    /* vt[61] */ virtual void setFloorInfo(dStage_FloorInfo_c* i_floor) { mpFloor = i_floor; }
    /* vt[62] */ virtual dStage_FloorInfo_c* getFloorInfo() const { return mpFloor; }
    /* vt[63] */ virtual void setMemoryConfig(dStage_MemoryConfig_c*) {
        OSReport("Room non memory config data!\n");
        JUT_ASSERT(1900, FALSE);
    }
    /* vt[64] */ virtual dStage_MemoryConfig_c* getMemoryConfig() const {
        OSReport("Room non memory config data!\n");
        JUT_ASSERT(1909, FALSE);
        return NULL;
    }
    /* vt[65] */ virtual void setMemoryMap(dStage_MemoryMap_c*) {
        OSReport("Room non memory map data!\n");
        JUT_ASSERT(1919, FALSE);
    }
    /* vt[66] */ virtual dStage_MemoryMap_c* getMemoryMap() const {
        OSReport("Room non memory map data!\n");
        JUT_ASSERT(1928, FALSE);
        return NULL;
    }
    /* vt[67] */ virtual void setShip(dStage_Ship_c* i_ship) { mpShip = i_ship; }
    /* vt[68] */ virtual dStage_Ship_c* getShip() const { return mpShip; }
    /* vt[69] */ virtual void setMulti(dStage_Multi_c*) {
        OSReport("Room non multi data!\n");
        JUT_ASSERT(1961, FALSE);
    }
    /* vt[70] */ virtual dStage_Multi_c* getMulti() const {
        OSReport("Room non multi data!\n");
        JUT_ASSERT(1966, FALSE);
        return NULL;
    }
    /* vt[71] */ virtual void setLbnk(dStage_Lbnk_c* i_lbnk) { mpLbnk = i_lbnk; }
    /* vt[72] */ virtual dStage_Lbnk_c* getLbnk() const { return mpLbnk; }
    /* vt[73] */ virtual void setTresure(stage_tresure_class* i_tresure) { mpTresure = i_tresure; }
    /* vt[74] */ virtual stage_tresure_class* getTresure() const { return mpTresure; }
    /* vt[75] */ virtual void setDMap(dStage_DMap_c*) { JUT_ASSERT(2002, FALSE); }
    /* vt[76] */ virtual dStage_DMap_c* getDMap() const {
        JUT_ASSERT(2007, FALSE);
        return NULL;
    }
    /* vt[77] */ virtual void setDrTg(stage_tgsc_class* i_drtg) { mpDrTg = i_drtg; }
    /* vt[78] */ virtual stage_tgsc_class* getDrTg() const { return mpDrTg; }

public:
    /* 0x04 */ stage_lightvec_info_class* mpLightVecInfo;
    /* 0x08 */ int mLightVecInfoNum;
    /* 0x0C */ stage_map_info_class* mpMapInfo;
    /* 0x10 */ stage_map_info_dummy_class* mpMapInfoBase;
    /* 0x14 */ stage_vrbox_info_class* mpVrbox;
    /* 0x18 */ dStage_FileList_dt_c* mpFileList;
    /* 0x1C */ dStage_Ship_c* mpShip;
    /* 0x20 */ stage_actor_class* mpPlayer;
    /* 0x24 */ dStage_dPnt_c* mpPoint2;
    /* 0x28 */ dStage_dPath_c* mpPath2;
    /* 0x2C */ stage_camera_class* mpCamera;
    /* 0x30 */ stage_arrow_class* mpArrow;
    /* 0x34 */ dStage_SoundInfo_c* mpSound;
    /* 0x38 */ stage_scls_info_dummy_class* mpScls;
    /* 0x3C */ dStage_Lbnk_c* mpLbnk;
    /* 0x40 */ stage_tresure_class* mpTresure;
    /* 0x44 */ stage_tgsc_class* mpDrTg;
    /* 0x48 */ dStage_FloorInfo_c* mpFloor;
    /* 0x4C */ s8 mRoomNo;
    /* 0x4D */ u8 field_0x4D[0x4E - 0x4D];
    /* 0x4E */ u16 mPlayerNum;
    /* 0x50 */ int mVrboxNum;
};

class dStage_darkStatus_c {
public:
    /* 0x00 */ u8 mEnvAlpha;
    /* 0x01 */ u8 mNonAlpha[2];
    /* 0x04 */ f32 mNonScale[2];
    /* 0x0C */ u8 mBokoAlpha[4];
    /* 0x10 */ f32 mBokoScale[2];
    /* 0x18 */ f32 field_0x18[2];

    u8 getEnvAlpha() const { return mEnvAlpha; }
    u8 getNonAlpha(int i) const { return mNonAlpha[i]; }
    f32 getNonScale(int i) const { return mNonScale[i]; }
    u8 getBokoAlpha(int i) const { return mBokoAlpha[i]; }
    f32 getBokoScale(int i) const { return mBokoScale[i]; }
}; // size = 0x20

class dBgW;

class dStage_roomStatus_c {
public:
    /* 0x000 */ dStage_roomDt_c mRoomDt;
    /* 0x054 */ dKy_tevstr_c mTevStr;
    /* 0x104 */ u8 mFlags;
    /* 0x105 */ bool mDraw;
    /* 0x106 */ s8 mZoneCount;
    /* 0x107 */ s8 mZoneNo;
    /* 0x108 */ s8 mMemBlockID;
    /* 0x10C */ int mProcID;
    /* 0x110 */ dBgW* mpBgW;

    ~dStage_roomStatus_c() {}
    dStage_roomStatus_c() {}
};  // Size: 0x114

STATIC_ASSERT(sizeof(dStage_roomStatus_c) == 0x114);

class JKRExpHeap;

class dStage_roomControl_c {
public:
    dStage_roomControl_c() {}

    void init();
    dStage_roomDt_c* getStatusRoomDt(int);
    BOOL checkRoomDisp(int) const;
    int loadRoom(int, u8*);
    void zoneCountCheck(int) const;
    void checkDrawArea() const;
    static dStage_darkStatus_c* getDarkStatus();
    static s32 getDarkMode();

    dKy_tevstr_c* getTevStr(int i_roomNo) { return &mStatus[i_roomNo].mTevStr; }
    BOOL checkStatusFlag(int i_roomNo, u8 flag) const { return cLib_checkBit(mStatus[i_roomNo].mFlags, flag); }
    void offStatusFlag(int i_roomNo, u8 flag) { cLib_offBit(mStatus[i_roomNo].mFlags, flag); }
    void onStatusFlag(int i_roomNo, u8 flag) { cLib_onBit(mStatus[i_roomNo].mFlags, flag); }
    void setStatusFlag(int i_roomNo, u8 flag) { mStatus[i_roomNo].mFlags = flag; }

    static JKRExpHeap* createMemoryBlock(int, u32);
    static void destroyMemoryBlock();
    static void SetTimePass(int);
    static JKRExpHeap* getMemoryBlock(int);
    static void setStayNo(int);
    static s32 GetTimePass();
    static void setZoneNo(int i_roomNo, int i_zoneNo) { mStatus[i_roomNo].mZoneNo = i_zoneNo; }
    static int getZoneNo(int i_roomNo) { return mStatus[i_roomNo].mZoneNo; }
    static void setZoneCount(int i_roomNo, int count) { mStatus[i_roomNo].mZoneCount = count; }

    static int getStayNo() { return mStayNo; }
    static s8 getMemoryBlockID(int i_roomNo) { return mStatus[i_roomNo].mMemBlockID; }
    static void onStatusDraw(int i_roomNo) { mStatus[i_roomNo].mDraw = true; }
    static void setProcID(fpc_ProcID id) { mProcID = id; }
    static fpc_ProcID getProcID() { return mProcID; }
    static void setStatusProcID(int i_roomNo, fpc_ProcID i_id) { mStatus[i_roomNo].mProcID = i_id; }
    static fpc_ProcID getStatusProcID(int i_roomNo) { return mStatus[i_roomNo].mProcID; }
    static dStage_darkStatus_c& getDarkStatus(int i_idx) { return mDarkStatus[i_idx]; }
    static char* getDemoArcName() { return mDemoArcName; }
    static u8 getDarkRatio() { return mDarkRatio; }
    static u8* getDarkRatio_p() { return &mDarkRatio; }

    static void setMemoryBlockID(int i_roomNo, int i_blockID) {
        mStatus[i_roomNo].mMemBlockID = i_blockID;
    }

    static dBgW* getBgW(int i_roomNo) { return mStatus[i_roomNo].mpBgW; }
    static void setBgW(int i_roomNo, dBgW* i_bgw) { mStatus[i_roomNo].mpBgW = i_bgw; }

    static const int MEMORY_BLOCK_MAX = 16;

    static JKRExpHeap* mMemoryBlock[MEMORY_BLOCK_MAX];
    static dStage_roomStatus_c mStatus[64];
    static dStage_darkStatus_c mDarkStatus[8];
    static u8 mDarkRatio;
    static fpc_ProcID mProcID;
    static s8 mStayNo;
    static s8 mOldStayNo;
    static s8 m_time_pass;
    static char mDemoArcName[8];

private:
    /* 0x0 */ u8 field_0x0[4];
};

class dStage_startStage_c {
public:
    void set(const char*, s8, s16, s8);
    const char* getName() const { return mName; }
    s16 getPoint() const { return mPoint; }
    s8 getRoomNo() const { return mRoomNo; }
    s8 getLayer() const { return mLayer; }
    void setLayer(s8 layer) { mLayer = layer; }

private:
    /* 0x0 */ char mName[8];
    /* 0x8 */ s16 mPoint;
    /* 0xA */ s8 mRoomNo;
    /* 0xB */ s8 mLayer;
};

class dStage_nextStage_c : public dStage_startStage_c {
public:
    dStage_nextStage_c() {
        mEnable = 0;  // TODO: maybe wrong
    }
    void set(const char*, s8, s16, s8, s8);
    void offEnable() { mEnable = 0; }
    s8 isEnable() const { return mEnable; }
    s8 getWipe() const { return mWipe; }

private:
    /* 0xC */ s8 mEnable;
    /* 0xD */ s8 mWipe;
};  // Size: 0xE

class dStage_KeepTresureInfo {
public:
    /* 0x00 */ int num;
    /* 0x04 */ stage_tresure_data_class mTresureData[0x20];

    dStage_KeepTresureInfo() {}
    ~dStage_KeepTresureInfo() {}
};

class dStage_KeepDoorInfo {
public:
    /* 0x00 */ int num;
    /* 0x04 */ stage_tgsc_data_class mDrTgData[0x40];

    dStage_KeepDoorInfo() {}
    ~dStage_KeepDoorInfo() {}
};

// unknown name
struct dStage_objectNameInf {
    char name[8];
    s16 procname;
    s8 argument;
    s8 gbaName;
};  // Size: 0xC

typedef int (*dStage_Func)(dStage_dt_c*, void*, int, void*);
struct FuncTable {
    char identifier[5];
    dStage_Func function;
};

s8 dStage_roomRead_dt_c_GetReverbStage(roomRead_class&, int);
int dStage_mapInfo_GetOceanZ(stage_map_info_class*);
int dStage_mapInfo_GetOceanX(stage_map_info_class*);
void dStage_infoCreate();
void dStage_escapeRestart();
void dStage_dt_c_roomLoader(void* i_data, dStage_dt_c* i_stage);
void dStage_dt_c_roomReLoader(void* i_data, dStage_dt_c* i_stage, int i_roomNo);

dStage_objectNameInf* dStage_searchName(const char*);
const char* dStage_getName(s16 i_procName, s8 i_argument);
const char* dStage_getName2(s16 i_procName, s8 i_argument);


inline u8 dStage_stagInfo_DefaultCameraType(stage_stag_info_class* p_info) {
    return p_info->mCameraMapToolID;
}

inline s32 dStage_stagInfo_ChkKeyDisp(stage_stag_info_class* i_stagInfo) {
    return i_stagInfo->mProp & 1;
}

inline s32 dStage_stagInfo_GetSaveTbl(stage_stag_info_class* i_stagInfo) {
    return (i_stagInfo->mProp >> 1) & 0x7F;
}

inline u32 dStage_stagInfo_GetSTType(stage_stag_info_class* i_stagInfo) {
    return (i_stagInfo->mStageTypeAndSchbit >> 16) & 7;
}

inline s8 dStage_stagInfo_GetUpButton(stage_stag_info_class* i_stagInfo) {
    return i_stagInfo->mParticleSceneNo & 3;
}

inline u8 dStage_stagInfo_GetParticleNo(stage_stag_info_class* i_stagInfo) {
    return (i_stagInfo->mParticleSceneNo >> 0x3) & 0xFF;
}

inline s8 dStage_stagInfo_GetTimeH(stage_stag_info_class* p_info) {
    return (p_info->mStageTypeAndSchbit >> 8) & 0xFF;
}

inline u16 dStage_stagInfo_GetCullPoint(stage_stag_info_class* p_info) {
    return p_info->mSchbitEnableAndFarPlane & 0xFFFF;
}

inline u8 dStage_stagInfo_getStartSch(stage_stag_info_class* p_info) {
    return (p_info->mSchbitEnableAndFarPlane >> 0x10) & 0xFF;
}

inline u8 dStage_stagInfo_GetSchSec(stage_stag_info_class* p_info) {
    return p_info->mStageTypeAndSchbit & 0xFF;
}

// TODO:
// dStage_stagInfo_GetAgbCon__FP21stage_stag_info_class

inline u8 dStage_roomRead_dt_c_GetLoadRoomIndex(u8 param_0) {
    return param_0 & 0x3F;
}

inline u8 dStage_roomRead_dt_c_ChkBg(u8 param_0) {
    return param_0 & 0x80;
}

inline u32 dStage_roomRead_dt_c_GetReverb(roomRead_data_class& room) {
    return room.field_0x1 & 0x7F;
}

inline s32 dStage_roomRead_dt_c_GetTimePass(roomRead_data_class& data) {
    return data.field_0x2 & 0x03;
}

inline s32 dStage_sclsInfo_getWipe(stage_scls_info_class* p_info) {
    return p_info->mWipe & 0xF;
}

inline s32 dStage_FileList_dt_CheckDarkOn(dStage_FileList_dt_c* i_fili) {
    return i_fili->mParam & 0x00000001;
}

inline u8 dStage_FileList_dt_CheckAgbCom(dStage_FileList_dt_c* i_fili) {
    return i_fili->mParam & 0x00000002;
}

inline u8 dStage_FileList_dt_CheckAgbHover(dStage_FileList_dt_c* i_fili) {
    return i_fili->mParam & 0x00000004;
}

inline u8 dStage_FileList_dt_DarkNo(dStage_FileList_dt_c* i_fili) {
    return (i_fili->mParam & 0x00000078) >> 3;
}

inline u8 dStage_FileList_dt_PhotoDepth(dStage_FileList_dt_c* i_fili) {
    return (i_fili->mParam & 0x00007F80) >> 7;
}

inline int dStage_FileList_dt_GlobalWindLevel(dStage_FileList_dt_c* i_fili) {
    return (i_fili->mParam & 0x000C0000) >> 18;
}

inline int dStage_FileList_dt_ChkPathWindEffect(dStage_FileList_dt_c* i_fili) {
    return i_fili->mParam & 0x00100000;
}

inline u32 dStage_FileList_dt_GetParticleNo(dStage_FileList_dt_c* i_fili) {
    return (i_fili->mParam & 0x1FE00000) >> 21;
}

inline u32 dStage_FileList_dt_GetSongOk(dStage_FileList_dt_c* i_fili) {
    return i_fili->mParam & 0x40000000;
}

inline u8 dStage_FileList_dt_GetToonsw(dStage_FileList_dt_c* i_fili) {
    return i_fili->mParam & 0; // TODO.
    // Seems unused in the final game.
    // It could be one of the following bits which have no known inline: 0xA0038000
    // Of those, these three are the most likely, as there are rooms with these set: 0x20028000
}

inline f32 dStage_FileList_dt_SeaLevel(dStage_FileList_dt_c* i_fili) {
    return i_fili->mSeaLevel;
}

bool dStage_chkPlayerId(int playerId, int room_no);
int dStage_changeSceneExitId(cBgS_PolyInfo& i_poly, f32 i_speed, u32 i_mode, s8 i_roomNo);
int dStage_changeScene(int i_exitId, f32 speed, u32 mode, s8 room_no);
void dStage_restartRoom(u32 roomParam, u32 mode);
void dStage_turnRestart();
bool dStage_setShipPos(int param_0, int i_roomNo);
BOOL dStage_checkRestart();
void dStage_Create();
void dStage_Delete();

class cBgS_GndChk;
int dStage_RoomCheck(cBgS_GndChk* i_gndChk);

static inline u8 IkadaGetRoomNoArg0(fopAc_ac_c* i_actor) {
    return (fopAcM_GetParam(i_actor) >> 4) & 0x3F;
}

static inline u8 IkadaGetLinkIdArg1(fopAc_ac_c* i_actor) {
    return (fopAcM_GetParam(i_actor) >> 10) & 0xFF;
}

static inline u8 IkadaGetIkadaIdArg2(fopAc_ac_c* i_actor) {
    return (fopAcM_GetParam(i_actor) >> 0x12) & 0xFF;
}

inline int IkadaGetIkadaIdArgPrm(u32 param) {
    return (param >> 0x12) & 0xFF;
}

#endif /* D_D_STAGE_H */