yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
room.h
Go to the documentation of this file.
1#ifndef YAZE_APP_ZELDA3_DUNGEON_ROOM_H
2#define YAZE_APP_ZELDA3_DUNGEON_ROOM_H
3
4#include <dungeon.h>
5
6#include <cstdint>
7#include <fstream>
8#include <string>
9#include <string_view>
10#include <vector>
11
12#include "app/core/constants.h"
13#include "app/gfx/bitmap.h"
15#include "app/gfx/snes_tile.h"
16#include "app/gui/canvas.h"
17#include "app/rom.h"
20
21namespace yaze {
22namespace app {
23namespace zelda3 {
24namespace dungeon {
25
26// room_object_layout_pointer 0x882D
27// room_object_pointer 0x874C
28// 0x882D -> readlong() -> 2FEF04 (04EF2F -> toPC->026F2F) ->
29
30// 47EF04 ; layout00 ptr
31// AFEF04 ; layout01 ptr
32// F0EF04 ; layout02 ptr
33// 4CF004 ; layout03 ptr
34// A8F004 ; layout04 ptr
35// ECF004 ; layout05 ptr
36// 48F104 ; layout06 ptr
37// A4F104 ; layout07 ptr
38// also they are not exactly the same as rooms
39// the object array is terminated by a 0xFFFF there's no layers
40// in normal room when you encounter a 0xFFFF it goes to the next layer
41
42constexpr int room_object_layout_pointer = 0x882D;
43constexpr int room_object_pointer = 0x874C; // Long pointer
44
45constexpr int dungeons_main_bg_palette_pointers = 0xDEC4B; // JP Same
46constexpr int dungeons_palettes = 0xDD734;
47constexpr int room_items_pointers = 0xDB69; // JP 0xDB67
48constexpr int rooms_sprite_pointer = 0x4C298; // JP Same //2byte bank 09D62E
49constexpr int kRoomHeaderPointer = 0xB5DD; // LONG
50constexpr int kRoomHeaderPointerBank = 0xB5E7; // JP Same
51constexpr int gfx_groups_pointer = 0x6237;
52constexpr int chests_length_pointer = 0xEBF6;
53constexpr int chests_data_pointer1 = 0xEBFB;
54
55constexpr int messages_id_dungeon = 0x3F61D;
56
57constexpr int blocks_length = 0x8896; // Word value
58constexpr int blocks_pointer1 = 0x15AFA;
59constexpr int blocks_pointer2 = 0x15B01;
60constexpr int blocks_pointer3 = 0x15B08;
61constexpr int blocks_pointer4 = 0x15B0F;
62constexpr int torch_data = 0x2736A; // JP 0x2704A
63constexpr int torches_length_pointer = 0x88C1;
64constexpr int sprite_blockset_pointer = 0x5B57;
65
66constexpr int sprites_data = 0x4D8B0;
67constexpr int sprites_data_empty_room = 0x4D8AE;
68constexpr int sprites_end_data = 0x4EC9E;
69constexpr int pit_pointer = 0x394AB;
70constexpr int pit_count = 0x394A6;
71constexpr int doorPointers = 0xF83C0;
72
73// doors
74constexpr int door_gfx_up = 0x4D9E;
75constexpr int door_gfx_down = 0x4E06;
76constexpr int door_gfx_cavexit_down = 0x4E06;
77constexpr int door_gfx_left = 0x4E66;
78constexpr int door_gfx_right = 0x4EC6;
79constexpr int door_pos_up = 0x197E;
80constexpr int door_pos_down = 0x1996;
81constexpr int door_pos_left = 0x19AE;
82constexpr int door_pos_right = 0x19C6;
83
84constexpr int dungeon_spr_ptrs = 0x090000;
85
86constexpr int NumberOfRooms = 296;
87
88constexpr ushort stairsObjects[] = {0x139, 0x138, 0x13B, 0x12E, 0x12D};
89
90class Room : public SharedRom {
91 public:
92 Room() = default;
93 Room(int room_id) : room_id_(room_id) {}
94 ~Room() = default;
95
96 void LoadHeader();
97 void LoadRoomFromROM();
98
99 void LoadRoomGraphics(uchar entrance_blockset = 0xFF);
102
103 void LoadObjects();
104 void LoadSprites();
105 void LoadChests();
106
107 auto blocks() const { return blocks_; }
108 auto &mutable_blocks() { return blocks_; }
109 auto layer1() const { return background_bmps_[0]; }
110 auto layer2() const { return background_bmps_[1]; }
111 auto layer3() const { return background_bmps_[2]; }
112 auto room_size() const { return room_size_; }
113 auto room_size_ptr() const { return room_size_pointer_; }
114 auto set_room_size(uint64_t size) { room_size_ = size; }
115
116 RoomObject AddObject(short oid, uint8_t x, uint8_t y, uint8_t size,
117 uint8_t layer) {
118 return RoomObject(oid, x, y, size, layer);
119 }
120
121 uint8_t blockset = 0;
122 uint8_t spriteset = 0;
123 uint8_t palette = 0;
124 uint8_t layout = 0;
125 uint8_t holewarp = 0;
126 uint8_t floor1 = 0;
127 uint8_t floor2 = 0;
128
129 uint16_t message_id_ = 0;
130
132 std::vector<uint8_t> bg1_buffer_;
133 std::vector<uint8_t> bg2_buffer_;
134 std::vector<uint8_t> current_gfx16_;
135
136 private:
141
144
147
150
154 uint8_t palette_;
158
159 uint64_t room_size_;
161
162 std::array<uint8_t, 16> blocks_;
163 std::array<uchar, 16> chest_list_;
164
165 std::array<gfx::Bitmap, 3> background_bmps_;
166 std::vector<RoomObject> tile_objects_;
167 std::vector<zelda3::Sprite> sprites_;
168 std::vector<z3_staircase> z3_staircases_;
169 std::vector<z3_chest_data> chests_in_room_;
170
177};
178
179constexpr std::string_view kRoomNames[] = {
180 "Ganon",
181 "Hyrule Castle (North Corridor)",
182 "Behind Sanctuary (Switch)",
183 "Houlihan",
184 "Turtle Rock (Crysta-Roller)",
185 "Empty",
186 "Swamp Palace (Arrghus[Boss])",
187 "Tower of Hera (Moldorm[Boss])",
188 "Cave (Healing Fairy)",
189 "Palace of Darkness",
190 "Palace of Darkness (Stalfos Trap)",
191 "Palace of Darkness (Turtle)",
192 "Ganon's Tower (Entrance)",
193 "Ganon's Tower (Agahnim2[Boss])",
194 "Ice Palace (Entrance )",
195 "Empty Clone ",
196 "Ganon Evacuation Route",
197 "Hyrule Castle (Bombable Stock )",
198 "Sanctuary",
199 "Turtle Rock (Hokku-Bokku Key 2)",
200 "Turtle Rock (Big Key )",
201 "Turtle Rock",
202 "Swamp Palace (Swimming Treadmill)",
203 "Tower of Hera (Moldorm Fall )",
204 "Cave",
205 "Palace of Darkness (Dark Maze)",
206 "Palace of Darkness (Big Chest )",
207 "Palace of Darkness (Mimics / Moving Wall )",
208 "Ganon's Tower (Ice Armos)",
209 "Ganon's Tower (Final Hallway)",
210 "Ice Palace (Bomb Floor / Bari )",
211 "Ice Palace (Pengator / Big Key )",
212 "Agahnim's Tower (Agahnim[Boss])",
213 "Hyrule Castle (Key-rat )",
214 "Hyrule Castle (Sewer Text Trigger )",
215 "Turtle Rock (West Exit to Balcony)",
216 "Turtle Rock (Double Hokku-Bokku / Big chest )",
217 "Empty Clone ",
218 "Swamp Palace (Statue )",
219 "Tower of Hera (Big Chest)",
220 "Swamp Palace (Entrance )",
221 "Skull Woods (Mothula[Boss])",
222 "Palace of Darkness (Big Hub )",
223 "Palace of Darkness (Map Chest / Fairy )",
224 "Cave",
225 "Empty Clone ",
226 "Ice Palace (Compass )",
227 "Cave (Kakariko Well HP)",
228 "Agahnim's Tower (Maiden Sacrifice Chamber)",
229 "Tower of Hera (Hardhat Beetles )",
230 "Hyrule Castle (Sewer Key Chest )",
231 "Desert Palace (Lanmolas[Boss])",
232 "Swamp Palace (Push Block Puzzle / Pre-Big Key )",
233 "Swamp Palace (Big Key / BS )",
234 "Swamp Palace (Big Chest )",
235 "Swamp Palace (Map Chest / Water Fill )",
236 "Swamp Palace (Key Pot )",
237 "Skull Woods (Gibdo Key / Mothula Hole )",
238 "Palace of Darkness (Bombable Floor )",
239 "Palace of Darkness (Spike Block / Conveyor )",
240 "Cave",
241 "Ganon's Tower (Torch 2)",
242 "Ice Palace (Stalfos Knights / Conveyor Hellway)",
243 "Ice Palace (Map Chest )",
244 "Agahnim's Tower (Final Bridge )",
245 "Hyrule Castle (First Dark )",
246 "Hyrule Castle (6 Ropes )",
247 "Desert Palace (Torch Puzzle / Moving Wall )",
248 "Thieves Town (Big Chest )",
249 "Thieves Town (Jail Cells )",
250 "Swamp Palace (Compass Chest )",
251 "Empty Clone ",
252 "Empty Clone ",
253 "Skull Woods (Gibdo Torch Puzzle )",
254 "Palace of Darkness (Entrance )",
255 "Palace of Darkness (Warps / South Mimics )",
256 "Ganon's Tower (Mini-Helmasaur Conveyor )",
257 "Ganon's Tower (Moldorm )",
258 "Ice Palace (Bomb-Jump )",
259 "Ice Palace Clone (Fairy )",
260 "Hyrule Castle (West Corridor)",
261 "Hyrule Castle (Throne )",
262 "Hyrule Castle (East Corridor)",
263 "Desert Palace (Popos 2 / Beamos Hellway )",
264 "Swamp Palace (Upstairs Pits )",
265 "Castle Secret Entrance / Uncle Death ",
266 "Skull Woods (Key Pot / Trap )",
267 "Skull Woods (Big Key )",
268 "Skull Woods (Big Chest )",
269 "Skull Woods (Final Section Entrance )",
270 "Palace of Darkness (Helmasaur King[Boss])",
271 "Ganon's Tower (Spike Pit )",
272 "Ganon's Tower (Ganon-Ball Z)",
273 "Ganon's Tower (Gauntlet 1/2/3)",
274 "Ice Palace (Lonely Firebar)",
275 "Ice Palace (Hidden Chest / Spike Floor )",
276 "Hyrule Castle (West Entrance )",
277 "Hyrule Castle (Main Entrance )",
278 "Hyrule Castle (East Entrance )",
279 "Desert Palace (Final Section Entrance )",
280 "Thieves Town (West Attic )",
281 "Thieves Town (East Attic )",
282 "Swamp Palace (Hidden Chest / Hidden Door )",
283 "Skull Woods (Compass Chest )",
284 "Skull Woods (Key Chest / Trap )",
285 "Empty Clone ",
286 "Palace of Darkness (Rupee )",
287 "Ganon's Tower (Mimics s)",
288 "Ganon's Tower (Lanmolas )",
289 "Ganon's Tower (Gauntlet 4/5)",
290 "Ice Palace (Pengators )",
291 "Empty Clone ",
292 "Hyrule Castle (Small Corridor to Jail Cells)",
293 "Hyrule Castle (Boomerang Chest )",
294 "Hyrule Castle (Map Chest )",
295 "Desert Palace (Big Chest )",
296 "Desert Palace (Map Chest )",
297 "Desert Palace (Big Key Chest )",
298 "Swamp Palace (Water Drain )",
299 "Tower of Hera (Entrance )",
300 "Empty Clone ",
301 "Empty Clone ",
302 "Empty Clone ",
303 "Ganon's Tower",
304 "Ganon's Tower (East Side Collapsing Bridge / Exploding Wall )",
305 "Ganon's Tower (Winder / Warp Maze )",
306 "Ice Palace (Hidden Chest / Bombable Floor )",
307 "Ice Palace ( Big Spike Traps )",
308 "Hyrule Castle (Jail Cell )",
309 "Hyrule Castle",
310 "Hyrule Castle (Basement Chasm )",
311 "Desert Palace (West Entrance )",
312 "Desert Palace (Main Entrance )",
313 "Desert Palace (East Entrance )",
314 "Empty Clone ",
315 "Tower of Hera (Tile )",
316 "Empty Clone ",
317 "Eastern Palace (Fairy )",
318 "Empty Clone ",
319 "Ganon's Tower (Block Puzzle / Spike Skip / Map Chest )",
320 "Ganon's Tower (East and West Downstairs / Big Chest )",
321 "Ganon's Tower (Tile / Torch Puzzle )",
322 "Ice Palace",
323 "Empty Clone ",
324 "Misery Mire (Vitreous[Boss])",
325 "Misery Mire (Final Switch )",
326 "Misery Mire (Dark Bomb Wall / Switches )",
327 "Misery Mire (Dark Cane Floor Switch Puzzle )",
328 "Empty Clone ",
329 "Ganon's Tower (Final Collapsing Bridge )",
330 "Ganon's Tower (Torches 1 )",
331 "Misery Mire (Torch Puzzle / Moving Wall )",
332 "Misery Mire (Entrance )",
333 "Eastern Palace (Eyegore Key )",
334 "Empty Clone ",
335 "Ganon's Tower (Many Spikes / Warp Maze )",
336 "Ganon's Tower (Invisible Floor Maze )",
337 "Ganon's Tower (Compass Chest / Invisible Floor )",
338 "Ice Palace (Big Chest )",
339 "Ice Palace",
340 "Misery Mire (Pre-Vitreous )",
341 "Misery Mire (Fish )",
342 "Misery Mire (Bridge Key Chest )",
343 "Misery Mire",
344 "Turtle Rock (Trinexx[Boss])",
345 "Ganon's Tower (Wizzrobes s)",
346 "Ganon's Tower (Moldorm Fall )",
347 "Tower of Hera (Fairy )",
348 "Eastern Palace (Stalfos Spawn )",
349 "Eastern Palace (Big Chest )",
350 "Eastern Palace (Map Chest )",
351 "Thieves Town (Moving Spikes / Key Pot )",
352 "Thieves Town (Blind The Thief[Boss])",
353 "Empty Clone ",
354 "Ice Palace",
355 "Ice Palace (Ice Bridge )",
356 "Agahnim's Tower (Circle of Pots)",
357 "Misery Mire (Hourglass )",
358 "Misery Mire (Slug )",
359 "Misery Mire (Spike Key Chest )",
360 "Turtle Rock (Pre-Trinexx )",
361 "Turtle Rock (Dark Maze)",
362 "Turtle Rock (Chain Chomps )",
363 "Turtle Rock (Map Chest / Key Chest / Roller )",
364 "Eastern Palace (Big Key )",
365 "Eastern Palace (Lobby Cannonballs )",
366 "Eastern Palace (Dark Antifairy / Key Pot )",
367 "Thieves Town (Hellway)",
368 "Thieves Town (Conveyor Toilet)",
369 "Empty Clone ",
370 "Ice Palace (Block Puzzle )",
371 "Ice Palace Clone (Switch )",
372 "Agahnim's Tower (Dark Bridge )",
373 "Misery Mire (Compass Chest / Tile )",
374 "Misery Mire (Big Hub )",
375 "Misery Mire (Big Chest )",
376 "Turtle Rock (Final Crystal Switch Puzzle )",
377 "Turtle Rock (Laser Bridge)",
378 "Turtle Rock",
379 "Turtle Rock (Torch Puzzle)",
380 "Eastern Palace (Armos Knights[Boss])",
381 "Eastern Palace (Entrance )",
382 "??",
383 "Thieves Town (North West Entrance )",
384 "Thieves Town (North East Entrance )",
385 "Empty Clone ",
386 "Ice Palace (Hole to Kholdstare )",
387 "Empty Clone ",
388 "Agahnim's Tower (Dark Maze)",
389 "Misery Mire (Conveyor Slug / Big Key )",
390 "Misery Mire (Mire02 / Wizzrobes )",
391 "Empty Clone ",
392 "Empty Clone ",
393 "Turtle Rock (Laser Key )",
394 "Turtle Rock (Entrance )",
395 "Empty Clone ",
396 "Eastern Palace (Zeldagamer / Pre-Armos Knights )",
397 "Eastern Palace (Canonball ",
398 "Eastern Palace",
399 "Thieves Town (Main (South West) Entrance )",
400 "Thieves Town (South East Entrance )",
401 "Empty Clone ",
402 "Ice Palace (Kholdstare[Boss])",
403 "Cave",
404 "Agahnim's Tower (Entrance )",
405 "Cave (Lost Woods HP)",
406 "Cave (Lumberjack's Tree HP)",
407 "Cave (1/2 Magic)",
408 "Cave (Lost Old Man Final Cave)",
409 "Cave (Lost Old Man Final Cave)",
410 "Cave",
411 "Cave",
412 "Cave",
413 "Empty Clone ",
414 "Cave (Spectacle Rock HP)",
415 "Cave",
416 "Empty Clone ",
417 "Cave",
418 "Cave (Spiral Cave)",
419 "Cave (Crystal Switch / 5 Chests )",
420 "Cave (Lost Old Man Starting Cave)",
421 "Cave (Lost Old Man Starting Cave)",
422 "House",
423 "House (Old Woman (Sahasrahla's Wife?))",
424 "House (Angry Brothers)",
425 "House (Angry Brothers)",
426 "Empty Clone ",
427 "Empty Clone ",
428 "Cave",
429 "Cave",
430 "Cave",
431 "Cave",
432 "Empty Clone ",
433 "Cave",
434 "Cave",
435 "Cave",
436
437 "Chest Minigame",
438 "Houses",
439 "Sick Boy house",
440 "Tavern",
441 "Link's House",
442 "Sarashrala Hut",
443 "Chest Minigame",
444 "Library",
445 "Chicken House",
446 "Witch Shop",
447 "A Aginah's Cave",
448 "Dam",
449 "Mimic Cave",
450 "Mire Shed",
451 "Cave",
452 "Shop",
453 "Shop",
454 "Archery Minigame",
455 "DW Church/Shop",
456 "Grave Cave",
457 "Fairy Fountain",
458 "Fairy Upgrade",
459 "Pyramid Fairy",
460 "Spike Cave",
461 "Chest Minigame",
462 "Blind Hut",
463 "Bonzai Cave",
464 "Circle of bush Cave",
465 "Big Bomb Shop, C-House",
466 "Blind Hut 2",
467 "Hype Cave",
468 "Shop",
469 "Ice Cave",
470 "Smith",
471 "Fortune Teller",
472 "MiniMoldorm Cave",
473 "Under Rock Caves",
474 "Smith",
475 "Cave",
476 "Mazeblock Cave",
477 "Smith Peg Cave"};
478
479constexpr std::string_view kEntranceNames[] = {
480 "Link's House Intro",
481 "Link's House Post-intro",
482 "Sanctuary",
483 "Hyrule Castle West",
484 "Hyrule Castle Central",
485 "Hyrule Castle East",
486 "Death Mountain Express (Lower)",
487 "Death Mountain Express (Upper)",
488 "Eastern Palace",
489 "Desert Palace Central",
490 "Desert Palace East",
491 "Desert Palace West",
492 "Desert Palace Boss Lair",
493 "Kakariko Elder's House West",
494 "Kakariko Elder's House East",
495 "Kakariko Angry Bros West",
496 "Kakariko Angry Bros East",
497 "Mad Batter Lair",
498 "Under Lumberjacks' Weird Tree",
499 "Death Mountain Maze 0000",
500 "Death Mountain Maze 0001",
501 "Turtle Rock Mountainface 1",
502 "Death Mountain Cape Heart Piece Cave (Lower)",
503 "Death Mountain Cape Heart Piece Cave (Upper)",
504 "Turtle Rock Mountainface 2",
505 "Turtle Rock Mountainface 3",
506 "Death Mountain Maze 0002",
507 "Death Mountain Maze 0003",
508 "Death Mountain Maze 0004",
509 "Death Mountain Maze 0005",
510 "Death Mountain Maze 0006",
511 "Death Mountain Maze 0007",
512 "Death Mountain Maze 0008",
513 "Spectacle Rock Maze 1",
514 "Spectacle Rock Maze 2",
515 "Spectacle Rock Maze 3",
516 "Hyrule Castle Tower",
517 "Swamp Palace",
518 "Palace of Darkness",
519 "Misery Mire",
520 "Skull Woods 1",
521 "Skull Woods 2",
522 "Skull Woods Big Chest",
523 "Skull Woods Boss Lair",
524 "Lost Woods Thieves' Lair",
525 "Ice Palace",
526 "Death Mountain Escape West",
527 "Death Mountain Escape East",
528 "Death Mountain Elder's Cave (Lower)",
529 "Death Mountain Elder's Cave (Upper)",
530 "Hyrule Castle Secret Cellar",
531 "Tower of Hera",
532 "Thieves's Town",
533 "Turtle Rock Main",
534 "Ganon's Pyramid Sanctum (Lower)",
535 "Ganon's Tower",
536 "Fairy Cave 1",
537 "Kakariko Western Well",
538 "Death Mountain Maze 0009",
539 "Death Mountain Maze 0010",
540 "Treasure Shell Game 1",
541 "Storyteller Cave 1",
542 "Snitch House 1",
543 "Snitch House 2",
544 "SickBoy House",
545 "Byrna Gauntlet",
546 "Kakariko Pub South",
547 "Kakariko Pub North",
548 "Kakariko Inn",
549 "Sahasrahlah's Disco Infernum",
550 "Kakariko's Lame Shop",
551 "Village of Outcasts Chest Game",
552 "Village of Outcasts Orphanage",
553 "Kakariko Library",
554 "Kakariko Storage Shed",
555 "Kakariko Sweeper Lady's House",
556 "Potion Shop",
557 "Aginah's Desert Cottage",
558 "Watergate",
559 "Death Mountain Maze 0011",
560 "Fairy Cave 2",
561 "Refill Cave 0001",
562 "Refill Cave 0002",
563 "The Bomb \"Shop\"",
564 "Village of Outcasts Retirement Center",
565 "Fairy Cave 3",
566 "Good Bee Cave",
567 "General Store 1",
568 "General Store 2",
569 "Archery Game",
570 "Storyteller Cave 2",
571 "Hall of the Invisibility Cape",
572 "Pond of Wishing",
573 "Pond of Happiness",
574 "Fairy Cave 4",
575 "Swamp of Evil Heart Piece Hall",
576 "General Store 3",
577 "Blind's Old Hideout",
578 "Storyteller Cave 3",
579 "Warped Pond of Wishing",
580 "Chez Smithies",
581 "Fortune Teller 1",
582 "Fortune Teller 2",
583 "Chest Shell Game 2",
584 "Storyteller Cave 4",
585 "Storyteller Cave 5",
586 "Storyteller Cave 6",
587 "Village House 1",
588 "Thief Hideout 1",
589 "Thief Hideout 2",
590 "Heart Piece Cave 1",
591 "Thief Hideout 3",
592 "Refill Cave 3",
593 "Fairy Cave 5",
594 "Heart Piece Cave 2",
595 "Hyrule Castle Prison",
596 "Hyrule Castle Throne Room",
597 "Hyrule Tower Agahnim's Sanctum",
598 "Skull Woods 3 (Drop In)",
599 "Skull Woods 4 (Drop In)",
600 "Skull Woods 5 (Drop In)",
601 "Skull Woods 6 (Drop In)",
602 "Lost Woods Thieves' Hideout (Drop In)",
603 "Ganon's Pyramid Sanctum (Upper)",
604 "Fairy Cave 6 (Drop In)",
605 "Hyrule Castle Secret Cellar (Drop In)",
606 "Mad Batter Lair (Drop In)",
607 "Under Lumberjacks' Weird Tree (Drop In)",
608 "Kakariko Western Well (Drop In)",
609 "Hyrule Sewers Goodies Room (Drop In)",
610 "Chris Houlihan Room (Drop In)",
611 "Heart Piece Cave 3 (Drop In)",
612 "Ice Rod Cave"};
613
614} // namespace dungeon
615} // namespace zelda3
616} // namespace app
617} // namespace yaze
618
619#endif
A class to hold a shared pointer to a Rom object.
Definition rom.h:576
Represents a bitmap image.
Definition bitmap.h:67
std::array< gfx::Bitmap, 3 > background_bmps_
Definition room.h:165
std::vector< uint8_t > bg1_buffer_
Definition room.h:132
std::vector< uint8_t > bg2_buffer_
Definition room.h:133
RoomObject AddObject(short oid, uint8_t x, uint8_t y, uint8_t size, uint8_t layer)
Definition room.h:116
void LoadRoomGraphics(uchar entrance_blockset=0xFF)
Definition room.cc:199
std::vector< RoomObject > tile_objects_
Definition room.h:166
auto set_room_size(uint64_t size)
Definition room.h:114
std::array< uchar, 16 > chest_list_
Definition room.h:163
std::array< uint8_t, 16 > blocks_
Definition room.h:162
z3_dungeon_destination stair2_
Definition room.h:174
z3_dungeon_background2 bg2_
Definition room.h:171
std::vector< z3_staircase > z3_staircases_
Definition room.h:168
z3_dungeon_destination stair1_
Definition room.h:173
std::vector< z3_chest_data > chests_in_room_
Definition room.h:169
std::vector< uint8_t > current_gfx16_
Definition room.h:134
z3_dungeon_destination stair4_
Definition room.h:176
z3_dungeon_destination stair3_
Definition room.h:175
std::vector< zelda3::Sprite > sprites_
Definition room.h:167
z3_dungeon_destination pits_
Definition room.h:172
unsigned char uchar
Definition constants.h:114
unsigned short ushort
Definition constants.h:112
z3_dungeon_background2
Definition dungeon.h:45
constexpr int pit_pointer
Definition room.h:69
constexpr int door_pos_up
Definition room.h:79
constexpr int kRoomHeaderPointerBank
Definition room.h:50
constexpr int rooms_sprite_pointer
Definition room.h:48
constexpr int blocks_length
Definition room.h:57
constexpr int sprites_data_empty_room
Definition room.h:67
constexpr int door_gfx_cavexit_down
Definition room.h:76
constexpr int door_gfx_right
Definition room.h:78
constexpr int blocks_pointer4
Definition room.h:61
constexpr int chests_length_pointer
Definition room.h:52
constexpr int door_gfx_down
Definition room.h:75
constexpr int chests_data_pointer1
Definition room.h:53
constexpr int doorPointers
Definition room.h:71
constexpr int dungeons_main_bg_palette_pointers
Definition room.h:45
constexpr int torches_length_pointer
Definition room.h:63
constexpr int door_gfx_left
Definition room.h:77
constexpr ushort stairsObjects[]
Definition room.h:88
constexpr int door_pos_left
Definition room.h:81
constexpr int room_items_pointers
Definition room.h:47
constexpr int door_gfx_up
Definition room.h:74
constexpr int dungeons_palettes
Definition room.h:46
constexpr int NumberOfRooms
Definition room.h:86
constexpr int torch_data
Definition room.h:62
constexpr int kRoomHeaderPointer
Definition room.h:49
constexpr int pit_count
Definition room.h:70
constexpr std::string_view kEntranceNames[]
Definition room.h:479
constexpr int blocks_pointer2
Definition room.h:59
constexpr int blocks_pointer3
Definition room.h:60
constexpr int blocks_pointer1
Definition room.h:58
constexpr int room_object_pointer
Definition room.h:43
constexpr int sprite_blockset_pointer
Definition room.h:64
constexpr std::string_view kRoomNames[]
Definition room.h:179
constexpr int messages_id_dungeon
Definition room.h:55
constexpr int door_pos_down
Definition room.h:80
constexpr int gfx_groups_pointer
Definition room.h:51
constexpr int sprites_end_data
Definition room.h:68
constexpr int door_pos_right
Definition room.h:82
constexpr int room_object_layout_pointer
Definition room.h:42
constexpr int sprites_data
Definition room.h:66
constexpr int dungeon_spr_ptrs
Definition room.h:84
Definition common.cc:22