yaze 0.2.2
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 <yaze.h>
5
6#include <cstdint>
7#include <string_view>
8#include <vector>
9
10#include "app/rom.h"
13
14namespace yaze {
15namespace zelda3 {
16
17// room_object_layout_pointer 0x882D
18// room_object_pointer 0x874C
19// 0x882D -> readlong() -> 2FEF04 (04EF2F -> toPC->026F2F) ->
20
21// 47EF04 ; layout00 ptr
22// AFEF04 ; layout01 ptr
23// F0EF04 ; layout02 ptr
24// 4CF004 ; layout03 ptr
25// A8F004 ; layout04 ptr
26// ECF004 ; layout05 ptr
27// 48F104 ; layout06 ptr
28// A4F104 ; layout07 ptr
29// also they are not exactly the same as rooms
30// the object array is terminated by a 0xFFFF there's no layers
31// in normal room when you encounter a 0xFFFF it goes to the next layer
32
33constexpr int room_object_layout_pointer = 0x882D;
34constexpr int room_object_pointer = 0x874C; // Long pointer
35
36constexpr int dungeons_main_bg_palette_pointers = 0xDEC4B; // JP Same
37constexpr int dungeons_palettes = 0xDD734;
38constexpr int room_items_pointers = 0xDB69; // JP 0xDB67
39constexpr int rooms_sprite_pointer = 0x4C298; // JP Same //2byte bank 09D62E
40constexpr int kRoomHeaderPointer = 0xB5DD; // LONG
41constexpr int kRoomHeaderPointerBank = 0xB5E7; // JP Same
42constexpr int gfx_groups_pointer = 0x6237;
43constexpr int chests_length_pointer = 0xEBF6;
44constexpr int chests_data_pointer1 = 0xEBFB;
45
46constexpr int messages_id_dungeon = 0x3F61D;
47
48constexpr int blocks_length = 0x8896; // Word value
49constexpr int blocks_pointer1 = 0x15AFA;
50constexpr int blocks_pointer2 = 0x15B01;
51constexpr int blocks_pointer3 = 0x15B08;
52constexpr int blocks_pointer4 = 0x15B0F;
53constexpr int torch_data = 0x2736A; // JP 0x2704A
54constexpr int torches_length_pointer = 0x88C1;
55constexpr int sprite_blockset_pointer = 0x5B57;
56
57constexpr int sprites_data = 0x4D8B0;
58constexpr int sprites_data_empty_room = 0x4D8AE;
59constexpr int sprites_end_data = 0x4EC9E;
60constexpr int pit_pointer = 0x394AB;
61constexpr int pit_count = 0x394A6;
62constexpr int doorPointers = 0xF83C0;
63
64// doors
65constexpr int door_gfx_up = 0x4D9E;
66constexpr int door_gfx_down = 0x4E06;
67constexpr int door_gfx_cavexit_down = 0x4E06;
68constexpr int door_gfx_left = 0x4E66;
69constexpr int door_gfx_right = 0x4EC6;
70constexpr int door_pos_up = 0x197E;
71constexpr int door_pos_down = 0x1996;
72constexpr int door_pos_left = 0x19AE;
73constexpr int door_pos_right = 0x19C6;
74
75constexpr int dungeon_spr_ptrs = 0x090000;
76
77constexpr int NumberOfRooms = 296;
78
79constexpr uint16_t stairsObjects[] = {0x139, 0x138, 0x13B, 0x12E, 0x12D};
80
81constexpr int tile_address = 0x001B52;
82constexpr int tile_address_floor = 0x001B5A;
83
85 uint8_t ID;
86 std::string Name;
90 LayerMergeType() = default;
91 LayerMergeType(uint8_t id, std::string name, bool see, bool top, bool trans) {
92 ID = id;
93 Name = name;
94 Layer2OnTop = top;
95 Layer2Translucent = trans;
96 Layer2Visible = see;
97 }
98};
99
100const static LayerMergeType LayerMerge00{0x00, "Off", true, false, false};
101const static LayerMergeType LayerMerge01{0x01, "Parallax", true, false, false};
102const static LayerMergeType LayerMerge02{0x02, "Dark", true, true, true};
103const static LayerMergeType LayerMerge03{0x03, "On top", true, true, false};
104const static LayerMergeType LayerMerge04{0x04, "Translucent", true, true, true};
105const static LayerMergeType LayerMerge05{0x05, "Addition", true, true, true};
106const static LayerMergeType LayerMerge06{0x06, "Normal", true, false, false};
107const static LayerMergeType LayerMerge07{0x07, "Transparent", true, true, true};
108const static LayerMergeType LayerMerge08{0x08, "Dark room", true, true, true};
109
110const static LayerMergeType kLayerMergeTypeList[] = {
111 LayerMerge00, LayerMerge01, LayerMerge02, LayerMerge03, LayerMerge04,
112 LayerMerge05, LayerMerge06, LayerMerge07, LayerMerge08};
113
121
132
133enum TagKey {
198};
199
200class Room {
201 public:
202 Room() = default;
203 Room(int room_id, Rom *rom) : room_id_(room_id), rom_(rom) {}
204
205 void LoadRoomGraphics(uint8_t entrance_blockset = 0xFF);
207 void RenderRoomGraphics();
209 void LoadObjects();
210 void LoadSprites();
211 void LoadChests();
212
213 auto blocks() const { return blocks_; }
214 auto &mutable_blocks() { return blocks_; }
215 auto rom() { return rom_; }
216 auto mutable_rom() { return rom_; }
217
219
220 uint8_t blockset = 0;
221 uint8_t spriteset = 0;
222 uint8_t palette = 0;
223 uint8_t layout = 0;
224 uint8_t holewarp = 0;
225 uint8_t floor1 = 0;
226 uint8_t floor2 = 0;
227 uint16_t message_id_ = 0;
228
229 std::array<uint8_t, 0x4000> current_gfx16_;
230
234 bool is_floor_ = true;
235
238
241
245 uint8_t palette_;
249
250 std::array<uint8_t, 16> blocks_;
251 std::array<chest, 16> chest_list_;
252
253 std::vector<RoomObject> tile_objects_;
254 std::vector<zelda3::Sprite> sprites_;
255 std::vector<staircase> z3_staircases_;
256 std::vector<chest_data> chests_in_room_;
257
263
270};
271
272// Loads a room from the ROM.
273Room LoadRoomFromRom(Rom *rom, int room_id);
274
275struct RoomSize {
277 int64_t room_size;
278};
279
280// Calculates the size of a room in the ROM.
281RoomSize CalculateRoomSize(Rom *rom, int room_id);
282
283static const std::string RoomEffect[] = {"Nothing",
284 "Nothing",
285 "Moving Floor",
286 "Moving Water",
287 "Trinexx Shell",
288 "Red Flashes",
289 "Light Torch to See Floor",
290 "Ganon's Darkness"};
291
292constexpr std::string_view kRoomNames[] = {
293 "Ganon",
294 "Hyrule Castle (North Corridor)",
295 "Behind Sanctuary (Switch)",
296 "Houlihan",
297 "Turtle Rock (Crysta-Roller)",
298 "Empty",
299 "Swamp Palace (Arrghus[Boss])",
300 "Tower of Hera (Moldorm[Boss])",
301 "Cave (Healing Fairy)",
302 "Palace of Darkness",
303 "Palace of Darkness (Stalfos Trap)",
304 "Palace of Darkness (Turtle)",
305 "Ganon's Tower (Entrance)",
306 "Ganon's Tower (Agahnim2[Boss])",
307 "Ice Palace (Entrance )",
308 "Empty Clone ",
309 "Ganon Evacuation Route",
310 "Hyrule Castle (Bombable Stock )",
311 "Sanctuary",
312 "Turtle Rock (Hokku-Bokku Key 2)",
313 "Turtle Rock (Big Key )",
314 "Turtle Rock",
315 "Swamp Palace (Swimming Treadmill)",
316 "Tower of Hera (Moldorm Fall )",
317 "Cave",
318 "Palace of Darkness (Dark Maze)",
319 "Palace of Darkness (Big Chest )",
320 "Palace of Darkness (Mimics / Moving Wall )",
321 "Ganon's Tower (Ice Armos)",
322 "Ganon's Tower (Final Hallway)",
323 "Ice Palace (Bomb Floor / Bari )",
324 "Ice Palace (Pengator / Big Key )",
325 "Agahnim's Tower (Agahnim[Boss])",
326 "Hyrule Castle (Key-rat )",
327 "Hyrule Castle (Sewer Text Trigger )",
328 "Turtle Rock (West Exit to Balcony)",
329 "Turtle Rock (Double Hokku-Bokku / Big chest )",
330 "Empty Clone ",
331 "Swamp Palace (Statue )",
332 "Tower of Hera (Big Chest)",
333 "Swamp Palace (Entrance )",
334 "Skull Woods (Mothula[Boss])",
335 "Palace of Darkness (Big Hub )",
336 "Palace of Darkness (Map Chest / Fairy )",
337 "Cave",
338 "Empty Clone ",
339 "Ice Palace (Compass )",
340 "Cave (Kakariko Well HP)",
341 "Agahnim's Tower (Maiden Sacrifice Chamber)",
342 "Tower of Hera (Hardhat Beetles )",
343 "Hyrule Castle (Sewer Key Chest )",
344 "Desert Palace (Lanmolas[Boss])",
345 "Swamp Palace (Push Block Puzzle / Pre-Big Key )",
346 "Swamp Palace (Big Key / BS )",
347 "Swamp Palace (Big Chest )",
348 "Swamp Palace (Map Chest / Water Fill )",
349 "Swamp Palace (Key Pot )",
350 "Skull Woods (Gibdo Key / Mothula Hole )",
351 "Palace of Darkness (Bombable Floor )",
352 "Palace of Darkness (Spike Block / Conveyor )",
353 "Cave",
354 "Ganon's Tower (Torch 2)",
355 "Ice Palace (Stalfos Knights / Conveyor Hellway)",
356 "Ice Palace (Map Chest )",
357 "Agahnim's Tower (Final Bridge )",
358 "Hyrule Castle (First Dark )",
359 "Hyrule Castle (6 Ropes )",
360 "Desert Palace (Torch Puzzle / Moving Wall )",
361 "Thieves Town (Big Chest )",
362 "Thieves Town (Jail Cells )",
363 "Swamp Palace (Compass Chest )",
364 "Empty Clone ",
365 "Empty Clone ",
366 "Skull Woods (Gibdo Torch Puzzle )",
367 "Palace of Darkness (Entrance )",
368 "Palace of Darkness (Warps / South Mimics )",
369 "Ganon's Tower (Mini-Helmasaur Conveyor )",
370 "Ganon's Tower (Moldorm )",
371 "Ice Palace (Bomb-Jump )",
372 "Ice Palace Clone (Fairy )",
373 "Hyrule Castle (West Corridor)",
374 "Hyrule Castle (Throne )",
375 "Hyrule Castle (East Corridor)",
376 "Desert Palace (Popos 2 / Beamos Hellway )",
377 "Swamp Palace (Upstairs Pits )",
378 "Castle Secret Entrance / Uncle Death ",
379 "Skull Woods (Key Pot / Trap )",
380 "Skull Woods (Big Key )",
381 "Skull Woods (Big Chest )",
382 "Skull Woods (Final Section Entrance )",
383 "Palace of Darkness (Helmasaur King[Boss])",
384 "Ganon's Tower (Spike Pit )",
385 "Ganon's Tower (Ganon-Ball Z)",
386 "Ganon's Tower (Gauntlet 1/2/3)",
387 "Ice Palace (Lonely Firebar)",
388 "Ice Palace (Hidden Chest / Spike Floor )",
389 "Hyrule Castle (West Entrance )",
390 "Hyrule Castle (Main Entrance )",
391 "Hyrule Castle (East Entrance )",
392 "Desert Palace (Final Section Entrance )",
393 "Thieves Town (West Attic )",
394 "Thieves Town (East Attic )",
395 "Swamp Palace (Hidden Chest / Hidden Door )",
396 "Skull Woods (Compass Chest )",
397 "Skull Woods (Key Chest / Trap )",
398 "Empty Clone ",
399 "Palace of Darkness (Rupee )",
400 "Ganon's Tower (Mimics s)",
401 "Ganon's Tower (Lanmolas )",
402 "Ganon's Tower (Gauntlet 4/5)",
403 "Ice Palace (Pengators )",
404 "Empty Clone ",
405 "Hyrule Castle (Small Corridor to Jail Cells)",
406 "Hyrule Castle (Boomerang Chest )",
407 "Hyrule Castle (Map Chest )",
408 "Desert Palace (Big Chest )",
409 "Desert Palace (Map Chest )",
410 "Desert Palace (Big Key Chest )",
411 "Swamp Palace (Water Drain )",
412 "Tower of Hera (Entrance )",
413 "Empty Clone ",
414 "Empty Clone ",
415 "Empty Clone ",
416 "Ganon's Tower",
417 "Ganon's Tower (East Side Collapsing Bridge / Exploding Wall )",
418 "Ganon's Tower (Winder / Warp Maze )",
419 "Ice Palace (Hidden Chest / Bombable Floor )",
420 "Ice Palace ( Big Spike Traps )",
421 "Hyrule Castle (Jail Cell )",
422 "Hyrule Castle",
423 "Hyrule Castle (Basement Chasm )",
424 "Desert Palace (West Entrance )",
425 "Desert Palace (Main Entrance )",
426 "Desert Palace (East Entrance )",
427 "Empty Clone ",
428 "Tower of Hera (Tile )",
429 "Empty Clone ",
430 "Eastern Palace (Fairy )",
431 "Empty Clone ",
432 "Ganon's Tower (Block Puzzle / Spike Skip / Map Chest )",
433 "Ganon's Tower (East and West Downstairs / Big Chest )",
434 "Ganon's Tower (Tile / Torch Puzzle )",
435 "Ice Palace",
436 "Empty Clone ",
437 "Misery Mire (Vitreous[Boss])",
438 "Misery Mire (Final Switch )",
439 "Misery Mire (Dark Bomb Wall / Switches )",
440 "Misery Mire (Dark Cane Floor Switch Puzzle )",
441 "Empty Clone ",
442 "Ganon's Tower (Final Collapsing Bridge )",
443 "Ganon's Tower (Torches 1 )",
444 "Misery Mire (Torch Puzzle / Moving Wall )",
445 "Misery Mire (Entrance )",
446 "Eastern Palace (Eyegore Key )",
447 "Empty Clone ",
448 "Ganon's Tower (Many Spikes / Warp Maze )",
449 "Ganon's Tower (Invisible Floor Maze )",
450 "Ganon's Tower (Compass Chest / Invisible Floor )",
451 "Ice Palace (Big Chest )",
452 "Ice Palace",
453 "Misery Mire (Pre-Vitreous )",
454 "Misery Mire (Fish )",
455 "Misery Mire (Bridge Key Chest )",
456 "Misery Mire",
457 "Turtle Rock (Trinexx[Boss])",
458 "Ganon's Tower (Wizzrobes s)",
459 "Ganon's Tower (Moldorm Fall )",
460 "Tower of Hera (Fairy )",
461 "Eastern Palace (Stalfos Spawn )",
462 "Eastern Palace (Big Chest )",
463 "Eastern Palace (Map Chest )",
464 "Thieves Town (Moving Spikes / Key Pot )",
465 "Thieves Town (Blind The Thief[Boss])",
466 "Empty Clone ",
467 "Ice Palace",
468 "Ice Palace (Ice Bridge )",
469 "Agahnim's Tower (Circle of Pots)",
470 "Misery Mire (Hourglass )",
471 "Misery Mire (Slug )",
472 "Misery Mire (Spike Key Chest )",
473 "Turtle Rock (Pre-Trinexx )",
474 "Turtle Rock (Dark Maze)",
475 "Turtle Rock (Chain Chomps )",
476 "Turtle Rock (Map Chest / Key Chest / Roller )",
477 "Eastern Palace (Big Key )",
478 "Eastern Palace (Lobby Cannonballs )",
479 "Eastern Palace (Dark Antifairy / Key Pot )",
480 "Thieves Town (Hellway)",
481 "Thieves Town (Conveyor Toilet)",
482 "Empty Clone ",
483 "Ice Palace (Block Puzzle )",
484 "Ice Palace Clone (Switch )",
485 "Agahnim's Tower (Dark Bridge )",
486 "Misery Mire (Compass Chest / Tile )",
487 "Misery Mire (Big Hub )",
488 "Misery Mire (Big Chest )",
489 "Turtle Rock (Final Crystal Switch Puzzle )",
490 "Turtle Rock (Laser Bridge)",
491 "Turtle Rock",
492 "Turtle Rock (Torch Puzzle)",
493 "Eastern Palace (Armos Knights[Boss])",
494 "Eastern Palace (Entrance )",
495 "??",
496 "Thieves Town (North West Entrance )",
497 "Thieves Town (North East Entrance )",
498 "Empty Clone ",
499 "Ice Palace (Hole to Kholdstare )",
500 "Empty Clone ",
501 "Agahnim's Tower (Dark Maze)",
502 "Misery Mire (Conveyor Slug / Big Key )",
503 "Misery Mire (Mire02 / Wizzrobes )",
504 "Empty Clone ",
505 "Empty Clone ",
506 "Turtle Rock (Laser Key )",
507 "Turtle Rock (Entrance )",
508 "Empty Clone ",
509 "Eastern Palace (Zeldagamer / Pre-Armos Knights )",
510 "Eastern Palace (Canonball ",
511 "Eastern Palace",
512 "Thieves Town (Main (South West) Entrance )",
513 "Thieves Town (South East Entrance )",
514 "Empty Clone ",
515 "Ice Palace (Kholdstare[Boss])",
516 "Cave",
517 "Agahnim's Tower (Entrance )",
518 "Cave (Lost Woods HP)",
519 "Cave (Lumberjack's Tree HP)",
520 "Cave (1/2 Magic)",
521 "Cave (Lost Old Man Final Cave)",
522 "Cave (Lost Old Man Final Cave)",
523 "Cave",
524 "Cave",
525 "Cave",
526 "Empty Clone ",
527 "Cave (Spectacle Rock HP)",
528 "Cave",
529 "Empty Clone ",
530 "Cave",
531 "Cave (Spiral Cave)",
532 "Cave (Crystal Switch / 5 Chests )",
533 "Cave (Lost Old Man Starting Cave)",
534 "Cave (Lost Old Man Starting Cave)",
535 "House",
536 "House (Old Woman (Sahasrahla's Wife?))",
537 "House (Angry Brothers)",
538 "House (Angry Brothers)",
539 "Empty Clone ",
540 "Empty Clone ",
541 "Cave",
542 "Cave",
543 "Cave",
544 "Cave",
545 "Empty Clone ",
546 "Cave",
547 "Cave",
548 "Cave",
549
550 "Chest Minigame",
551 "Houses",
552 "Sick Boy house",
553 "Tavern",
554 "Link's House",
555 "Sarashrala Hut",
556 "Chest Minigame",
557 "Library",
558 "Chicken House",
559 "Witch Shop",
560 "A Aginah's Cave",
561 "Dam",
562 "Mimic Cave",
563 "Mire Shed",
564 "Cave",
565 "Shop",
566 "Shop",
567 "Archery Minigame",
568 "DW Church/Shop",
569 "Grave Cave",
570 "Fairy Fountain",
571 "Fairy Upgrade",
572 "Pyramid Fairy",
573 "Spike Cave",
574 "Chest Minigame",
575 "Blind Hut",
576 "Bonzai Cave",
577 "Circle of bush Cave",
578 "Big Bomb Shop, C-House",
579 "Blind Hut 2",
580 "Hype Cave",
581 "Shop",
582 "Ice Cave",
583 "Smith",
584 "Fortune Teller",
585 "MiniMoldorm Cave",
586 "Under Rock Caves",
587 "Smith",
588 "Cave",
589 "Mazeblock Cave",
590 "Smith Peg Cave"};
591
592static const std::string RoomTag[] = {"Nothing",
593 "NW Kill Enemy to Open",
594 "NE Kill Enemy to Open",
595 "SW Kill Enemy to Open",
596 "SE Kill Enemy to Open",
597 "W Kill Enemy to Open",
598 "E Kill Enemy to Open",
599 "N Kill Enemy to Open",
600 "S Kill Enemy to Open",
601 "Clear Quadrant to Open",
602 "Clear Full Tile to Open",
603
604 "NW Push Block to Open",
605 "NE Push Block to Open",
606 "SW Push Block to Open",
607 "SE Push Block to Open",
608 "W Push Block to Open",
609 "E Push Block to Open",
610 "N Push Block to Open",
611 "S Push Block to Open",
612 "Push Block to Open",
613 "Pull Lever to Open",
614 "Collect Prize to Open",
615
616 "Hold Switch Open Door",
617 "Toggle Switch to Open Door",
618 "Turn off Water",
619 "Turn on Water",
620 "Water Gate",
621 "Water Twin",
622 "Moving Wall Right",
623 "Moving Wall Left",
624 "Crash",
625 "Crash",
626 "Push Switch Exploding Wall",
627 "Holes 0",
628 "Open Chest (Holes 0)",
629 "Holes 1",
630 "Holes 2",
631 "Defeat Boss for Dungeon Prize",
632
633 "SE Kill Enemy to Push Block",
634 "Trigger Switch Chest",
635 "Pull Lever Exploding Wall",
636 "NW Kill Enemy for Chest",
637 "NE Kill Enemy for Chest",
638 "SW Kill Enemy for Chest",
639 "SE Kill Enemy for Chest",
640 "W Kill Enemy for Chest",
641 "E Kill Enemy for Chest",
642 "N Kill Enemy for Chest",
643 "S Kill Enemy for Chest",
644 "Clear Quadrant for Chest",
645 "Clear Full Tile for Chest",
646
647 "Light Torches to Open",
648 "Holes 3",
649 "Holes 4",
650 "Holes 5",
651 "Holes 6",
652 "Agahnim Room",
653 "Holes 7",
654 "Holes 8",
655 "Open Chest for Holes 8",
656 "Push Block for Chest",
657 "Clear Room for Triforce Door",
658 "Light Torches for Chest",
659 "Kill Boss Again"};
660
661} // namespace zelda3
662} // namespace yaze
663
664#endif
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:58
Room(int room_id, Rom *rom)
Definition room.h:203
destination pits_
Definition room.h:265
std::vector< RoomObject > tile_objects_
Definition room.h:253
EffectKey effect_
Definition room.h:260
uint8_t palette_
Definition room.h:245
uint8_t staircase_plane_[4]
Definition room.h:239
void LoadChests()
Definition room.cc:486
std::vector< zelda3::Sprite > sprites_
Definition room.h:254
auto mutable_rom()
Definition room.h:216
std::array< uint8_t, 0x4000 > current_gfx16_
Definition room.h:229
void CopyRoomGraphicsToBuffer()
Definition room.cc:226
destination stair2_
Definition room.h:267
uint8_t floor1
Definition room.h:225
void LoadRoomGraphics(uint8_t entrance_blockset=0xFF)
Definition room.cc:193
uint8_t layer2_behavior_
Definition room.h:244
uint8_t layer2_mode_
Definition room.h:248
auto & mutable_blocks()
Definition room.h:214
uint8_t holewarp
Definition room.h:224
destination stair4_
Definition room.h:269
int animated_frame_
Definition room.h:237
uint8_t blockset
Definition room.h:220
uint8_t layout
Definition room.h:223
void RenderRoomGraphics()
Definition room.cc:250
uint8_t sprite_tileset_
Definition room.h:243
uint16_t message_id_
Definition room.h:227
uint8_t staircase_rooms_[4]
Definition room.h:240
std::array< uint8_t, 16 > blocks_
Definition room.h:250
uint8_t floor2_graphics_
Definition room.h:247
background2 bg2_
Definition room.h:264
std::array< chest, 16 > chest_list_
Definition room.h:251
uint8_t floor1_graphics_
Definition room.h:246
auto blocks() const
Definition room.h:213
void LoadObjects()
Definition room.cc:298
uint8_t spriteset
Definition room.h:221
destination stair3_
Definition room.h:268
uint8_t palette
Definition room.h:222
void LoadAnimatedGraphics()
Definition room.cc:278
std::vector< chest_data > chests_in_room_
Definition room.h:256
LayerMergeType layer_merging_
Definition room.h:258
std::vector< staircase > z3_staircases_
Definition room.h:255
void LoadSprites()
Definition room.cc:439
destination stair1_
Definition room.h:266
uint8_t background_tileset_
Definition room.h:242
uint8_t floor2
Definition room.h:226
CollisionKey collision_
Definition room.h:259
Zelda 3 specific classes and functions.
constexpr int room_object_layout_pointer
Definition room.h:33
constexpr int chests_length_pointer
Definition room.h:43
constexpr int door_pos_down
Definition room.h:71
constexpr int door_gfx_up
Definition room.h:65
constexpr int chests_data_pointer1
Definition room.h:44
constexpr int pit_count
Definition room.h:61
constexpr int blocks_pointer3
Definition room.h:51
constexpr int door_gfx_left
Definition room.h:68
constexpr int dungeons_palettes
Definition room.h:37
constexpr int blocks_pointer4
Definition room.h:52
@ Ganon_Room
Definition room.h:130
@ Moving_Floor
Definition room.h:125
@ Effect_Nothing
Definition room.h:123
@ Red_Flashes
Definition room.h:128
@ Moving_Water
Definition room.h:126
@ Torch_Show_Floor
Definition room.h:129
constexpr int sprites_data_empty_room
Definition room.h:58
constexpr int door_pos_left
Definition room.h:72
constexpr int NumberOfRooms
Definition room.h:77
constexpr int rooms_sprite_pointer
Definition room.h:39
RoomSize CalculateRoomSize(Rom *rom, int room_id)
Definition room.cc:20
@ Kill_boss_Again
Definition room.h:197
@ Secret_Wall_Right
Definition room.h:162
@ Kill_Enemy_to_clear_level
Definition room.h:171
@ NE_Kill_Enemy_to_Open
Definition room.h:136
@ S_Kill_Enemy_for_Chest
Definition room.h:182
@ N_Push_Block_to_Open
Definition room.h:151
@ E_Kill_Enemy_to_Open
Definition room.h:140
@ Light_Torches_to_Open
Definition room.h:185
@ N_Kill_Enemy_to_Open
Definition room.h:141
@ W_Kill_Enemy_for_Chest
Definition room.h:179
@ Water_Twin
Definition room.h:161
@ N_Kill_Enemy_for_Chest
Definition room.h:181
@ Clear_Level_to_Open
Definition room.h:155
@ Push_Block_to_Open
Definition room.h:153
@ E_Kill_Enemy_for_Chest
Definition room.h:180
@ Secret_Wall_Left
Definition room.h:163
@ NE_Push_Block_to_Open
Definition room.h:146
@ Open_Chest_for_Holes_8
Definition room.h:193
@ S_Kill_Enemy_to_Open
Definition room.h:142
@ S_Push_Block_to_Open
Definition room.h:152
@ Trigger_activated_Chest
Definition room.h:173
@ SW_Kill_Enemy_for_Chest
Definition room.h:177
@ SE_Kill_Enemy_for_Chest
Definition room.h:178
@ Pull_lever_to_Bomb_Wall
Definition room.h:174
@ Pull_Switch_to_bomb_Wall
Definition room.h:166
@ Agahnim_Room
Definition room.h:190
@ Water_Gate
Definition room.h:160
@ SE_Kill_Enemy_to_Move_Block
Definition room.h:172
@ NE_Kill_Enemy_for_Chest
Definition room.h:176
@ SE_Push_Block_to_Open
Definition room.h:148
@ Pull_Lever_to_Open
Definition room.h:154
@ W_Push_Block_to_Open
Definition room.h:149
@ E_Push_Block_to_Open
Definition room.h:150
@ Kill_to_open_Ganon_Door
Definition room.h:195
@ SW_Push_Block_to_Open
Definition room.h:147
@ Turn_on_Water
Definition room.h:159
@ W_Kill_Enemy_to_Open
Definition room.h:139
@ Open_Chest_Activate_Holes_0
Definition room.h:168
@ Clear_Room_for_Chest
Definition room.h:184
@ Clear_Room_to_Open
Definition room.h:144
@ NW_Push_Block_to_Open
Definition room.h:145
@ Switch_Open_Door_Toggle
Definition room.h:157
@ SW_Kill_Enemy_to_Open
Definition room.h:137
@ Clear_Quadrant_for_Chest
Definition room.h:183
@ NW_Kill_Enemy_to_Open
Definition room.h:135
@ Switch_Open_Door_Hold
Definition room.h:156
@ SE_Kill_Enemy_to_Open
Definition room.h:138
@ Turn_off_Water
Definition room.h:158
@ Clear_Quadrant_to_Open
Definition room.h:143
@ Push_Block_for_Chest
Definition room.h:194
@ NW_Kill_Enemy_for_Chest
Definition room.h:175
@ Light_Torches_to_get_Chest
Definition room.h:196
constexpr std::string_view kRoomNames[]
Definition room.h:292
constexpr int messages_id_dungeon
Definition room.h:46
constexpr int room_items_pointers
Definition room.h:38
constexpr int blocks_length
Definition room.h:48
constexpr int sprites_data
Definition room.h:57
constexpr int sprite_blockset_pointer
Definition room.h:55
constexpr int tile_address_floor
Definition room.h:82
constexpr int blocks_pointer2
Definition room.h:50
constexpr int dungeons_main_bg_palette_pointers
Definition room.h:36
constexpr int door_gfx_down
Definition room.h:66
constexpr uint16_t stairsObjects[]
Definition room.h:79
Room LoadRoomFromRom(Rom *rom, int room_id)
Definition room.cc:80
constexpr int gfx_groups_pointer
Definition room.h:42
constexpr int blocks_pointer1
Definition room.h:49
constexpr int torches_length_pointer
Definition room.h:54
constexpr int doorPointers
Definition room.h:62
constexpr int door_gfx_cavexit_down
Definition room.h:67
constexpr int kRoomHeaderPointer
Definition room.h:40
constexpr int torch_data
Definition room.h:53
constexpr int kRoomHeaderPointerBank
Definition room.h:41
constexpr int door_gfx_right
Definition room.h:69
constexpr int room_object_pointer
Definition room.h:34
constexpr int door_pos_up
Definition room.h:70
constexpr int door_pos_right
Definition room.h:73
constexpr int tile_address
Definition room.h:81
constexpr int sprites_end_data
Definition room.h:59
constexpr int pit_pointer
Definition room.h:60
@ Moving_Water_Collision
Definition room.h:119
@ One_Collision
Definition room.h:115
@ Moving_Floor_Collision
Definition room.h:118
@ Both_With_Scroll
Definition room.h:117
constexpr int dungeon_spr_ptrs
Definition room.h:75
Main namespace for the application.
Definition controller.cc:18
LayerMergeType(uint8_t id, std::string name, bool see, bool top, bool trans)
Definition room.h:91
int64_t room_size_pointer
Definition room.h:276
background2
Definition zelda.h:130