yaze
0.2.0
Link to the Past ROM Editor
Loading...
Searching...
No Matches
title_screen.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_ZELDA3_SCREEN_H
2
#define YAZE_APP_ZELDA3_SCREEN_H
3
4
#include <cstdint>
5
6
7
#include "
app/gfx/bitmap.h
"
8
#include "
app/gfx/snes_tile.h
"
9
#include "
app/rom.h
"
10
11
namespace
yaze
{
12
namespace
app {
13
namespace
zelda3 {
14
namespace
screen {
15
16
class
TitleScreen
{
17
public
:
18
void
Create
();
19
20
private
:
21
void
BuildTileset
();
22
void
LoadTitleScreen
();
23
24
int
sword_x_
= 0;
25
int
mx_click_
= 0;
26
int
my_click_
= 0;
27
int
mx_dist_
= 0;
28
int
my_dist_
= 0;
29
int
last_x_
= 0;
30
int
last_y_
= 0;
31
int
x_in_
= 0;
32
int
y_in_
= 0;
33
int
dungmap_selected_tile_
= 0;
34
int
dungmap_selected_
= 0;
35
int
selected_palette_
= 0;
36
int
total_floors_
= 0;
37
int
current_floor_
= 0;
38
int
num_basement_
= 0;
39
int
num_floor_
= 0;
40
int
selected_map_tile
= 0;
41
int
current_floor_rooms
;
// [1][];
42
int
current_floor_gfx
;
// [1][];
43
int
copied_data_rooms
;
// 25
44
int
copied_data_gfx
;
// 25
45
int
pal_selected_
;
46
int
addresses
[7] = {0x53de4, 0x53e2c, 0x53e08, 0x53e50,
47
0x53e74, 0x53e98, 0x53ebc};
48
int
addressesgfx
[7] = {0x53ee0, 0x53f04, 0x53ef2, 0x53f16,
49
0x53f28, 0x53f3a, 0x53f4c};
50
51
ushort
bossRoom
= 0x000F;
52
ushort
selected_tile
= 0;
53
ushort
tilesBG1Buffer
[0x1000];
// 0x1000
54
ushort
tilesBG2Buffer
[0x1000];
// 0x1000
55
uchar
mapdata
;
// 64 * 64
56
uchar
dwmapdata
;
// 64 * 64
57
58
bool
mDown
=
false
;
59
bool
swordSelected
=
false
;
60
bool
darkWorld
=
false
;
61
bool
currentDungeonChanged
=
false
;
62
bool
editedFromEditor
=
false
;
63
bool
mouseDown
=
false
;
64
bool
mdown
=
false
;
65
66
Rom
rom_
;
67
68
gfx::OamTile
oam_data
[10];
69
gfx::OamTile
selected_oam_tile
;
70
gfx::OamTile
last_selected_oam_tile
;
71
72
gfx::Bitmap
tilesBG1Bitmap
;
// 0x80000
73
gfx::Bitmap
tilesBG2Bitmap
;
// 0x80000
74
gfx::Bitmap
oamBGBitmap
;
// 0x80000
75
gfx::Bitmap
tiles8Bitmap
;
// 0x20000
76
};
77
78
}
// namespace screen
79
}
// namespace zelda3
80
}
// namespace app
81
}
// namespace yaze
82
83
#endif
// YAZE_APP_ZELDA3_SCREEN_H
bitmap.h
yaze::app::Rom
The Rom class is used to load, save, and modify Rom data.
Definition
rom.h:136
yaze::app::gfx::Bitmap
Represents a bitmap image.
Definition
bitmap.h:67
yaze::app::gfx::OamTile
Object Attribute Memory tile abstraction container.
Definition
snes_tile.h:158
yaze::app::zelda3::screen::TitleScreen
Definition
title_screen.h:16
yaze::app::zelda3::screen::TitleScreen::mouseDown
bool mouseDown
Definition
title_screen.h:63
yaze::app::zelda3::screen::TitleScreen::bossRoom
ushort bossRoom
Definition
title_screen.h:51
yaze::app::zelda3::screen::TitleScreen::num_basement_
int num_basement_
Definition
title_screen.h:38
yaze::app::zelda3::screen::TitleScreen::rom_
Rom rom_
Definition
title_screen.h:66
yaze::app::zelda3::screen::TitleScreen::oam_data
gfx::OamTile oam_data[10]
Definition
title_screen.h:68
yaze::app::zelda3::screen::TitleScreen::oamBGBitmap
gfx::Bitmap oamBGBitmap
Definition
title_screen.h:74
yaze::app::zelda3::screen::TitleScreen::mapdata
uchar mapdata
Definition
title_screen.h:55
yaze::app::zelda3::screen::TitleScreen::sword_x_
int sword_x_
Definition
title_screen.h:24
yaze::app::zelda3::screen::TitleScreen::selected_map_tile
int selected_map_tile
Definition
title_screen.h:40
yaze::app::zelda3::screen::TitleScreen::tilesBG1Buffer
ushort tilesBG1Buffer[0x1000]
Definition
title_screen.h:53
yaze::app::zelda3::screen::TitleScreen::last_x_
int last_x_
Definition
title_screen.h:29
yaze::app::zelda3::screen::TitleScreen::mdown
bool mdown
Definition
title_screen.h:64
yaze::app::zelda3::screen::TitleScreen::dungmap_selected_tile_
int dungmap_selected_tile_
Definition
title_screen.h:33
yaze::app::zelda3::screen::TitleScreen::num_floor_
int num_floor_
Definition
title_screen.h:39
yaze::app::zelda3::screen::TitleScreen::dwmapdata
uchar dwmapdata
Definition
title_screen.h:56
yaze::app::zelda3::screen::TitleScreen::tilesBG1Bitmap
gfx::Bitmap tilesBG1Bitmap
Definition
title_screen.h:72
yaze::app::zelda3::screen::TitleScreen::my_click_
int my_click_
Definition
title_screen.h:26
yaze::app::zelda3::screen::TitleScreen::addresses
int addresses[7]
Definition
title_screen.h:46
yaze::app::zelda3::screen::TitleScreen::mx_click_
int mx_click_
Definition
title_screen.h:25
yaze::app::zelda3::screen::TitleScreen::copied_data_rooms
int copied_data_rooms
Definition
title_screen.h:43
yaze::app::zelda3::screen::TitleScreen::tilesBG2Bitmap
gfx::Bitmap tilesBG2Bitmap
Definition
title_screen.h:73
yaze::app::zelda3::screen::TitleScreen::copied_data_gfx
int copied_data_gfx
Definition
title_screen.h:44
yaze::app::zelda3::screen::TitleScreen::y_in_
int y_in_
Definition
title_screen.h:32
yaze::app::zelda3::screen::TitleScreen::addressesgfx
int addressesgfx[7]
Definition
title_screen.h:48
yaze::app::zelda3::screen::TitleScreen::current_floor_rooms
int current_floor_rooms
Definition
title_screen.h:41
yaze::app::zelda3::screen::TitleScreen::selected_tile
ushort selected_tile
Definition
title_screen.h:52
yaze::app::zelda3::screen::TitleScreen::tilesBG2Buffer
ushort tilesBG2Buffer[0x1000]
Definition
title_screen.h:54
yaze::app::zelda3::screen::TitleScreen::tiles8Bitmap
gfx::Bitmap tiles8Bitmap
Definition
title_screen.h:75
yaze::app::zelda3::screen::TitleScreen::current_floor_
int current_floor_
Definition
title_screen.h:37
yaze::app::zelda3::screen::TitleScreen::currentDungeonChanged
bool currentDungeonChanged
Definition
title_screen.h:61
yaze::app::zelda3::screen::TitleScreen::LoadTitleScreen
void LoadTitleScreen()
Definition
title_screen.cc:64
yaze::app::zelda3::screen::TitleScreen::current_floor_gfx
int current_floor_gfx
Definition
title_screen.h:42
yaze::app::zelda3::screen::TitleScreen::pal_selected_
int pal_selected_
Definition
title_screen.h:45
yaze::app::zelda3::screen::TitleScreen::mDown
bool mDown
Definition
title_screen.h:58
yaze::app::zelda3::screen::TitleScreen::mx_dist_
int mx_dist_
Definition
title_screen.h:27
yaze::app::zelda3::screen::TitleScreen::my_dist_
int my_dist_
Definition
title_screen.h:28
yaze::app::zelda3::screen::TitleScreen::last_selected_oam_tile
gfx::OamTile last_selected_oam_tile
Definition
title_screen.h:70
yaze::app::zelda3::screen::TitleScreen::selected_oam_tile
gfx::OamTile selected_oam_tile
Definition
title_screen.h:69
yaze::app::zelda3::screen::TitleScreen::selected_palette_
int selected_palette_
Definition
title_screen.h:35
yaze::app::zelda3::screen::TitleScreen::Create
void Create()
Definition
title_screen.cc:14
yaze::app::zelda3::screen::TitleScreen::total_floors_
int total_floors_
Definition
title_screen.h:36
yaze::app::zelda3::screen::TitleScreen::editedFromEditor
bool editedFromEditor
Definition
title_screen.h:62
yaze::app::zelda3::screen::TitleScreen::last_y_
int last_y_
Definition
title_screen.h:30
yaze::app::zelda3::screen::TitleScreen::darkWorld
bool darkWorld
Definition
title_screen.h:60
yaze::app::zelda3::screen::TitleScreen::x_in_
int x_in_
Definition
title_screen.h:31
yaze::app::zelda3::screen::TitleScreen::swordSelected
bool swordSelected
Definition
title_screen.h:59
yaze::app::zelda3::screen::TitleScreen::BuildTileset
void BuildTileset()
Definition
title_screen.cc:23
yaze::app::zelda3::screen::TitleScreen::dungmap_selected_
int dungmap_selected_
Definition
title_screen.h:34
uchar
unsigned char uchar
Definition
constants.h:114
ushort
unsigned short ushort
Definition
constants.h:112
yaze
Definition
common.cc:22
rom.h
snes_tile.h
src
app
zelda3
screen
title_screen.h
Generated by
1.12.0