1#ifndef YAZE_APP_ZELDA3_DUNGEON_ROOM_H
2#define YAZE_APP_ZELDA3_DUNGEON_ROOM_H
82constexpr uint16_t
stairsObjects[] = {0x139, 0x138, 0x13B, 0x12E, 0x12D};
91 LayerMergeType(uint8_t
id, std::string name,
bool see,
bool top,
bool trans) {
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};
111 LayerMerge00, LayerMerge01, LayerMerge02, LayerMerge03, LayerMerge04,
112 LayerMerge05, LayerMerge06, LayerMerge07, LayerMerge08};
204 "Hyrule Castle (North Corridor)",
205 "Behind Sanctuary (Switch)",
207 "Turtle Rock (Crysta-Roller)",
209 "Swamp Palace (Arrghus[Boss])",
210 "Tower of Hera (Moldorm[Boss])",
211 "Cave (Healing Fairy)",
212 "Palace of Darkness",
213 "Palace of Darkness (Stalfos Trap)",
214 "Palace of Darkness (Turtle)",
215 "Ganon's Tower (Entrance)",
216 "Ganon's Tower (Agahnim2[Boss])",
217 "Ice Palace (Entrance )",
219 "Ganon Evacuation Route",
220 "Hyrule Castle (Bombable Stock )",
222 "Turtle Rock (Hokku-Bokku Key 2)",
223 "Turtle Rock (Big Key )",
225 "Swamp Palace (Swimming Treadmill)",
226 "Tower of Hera (Moldorm Fall )",
228 "Palace of Darkness (Dark Maze)",
229 "Palace of Darkness (Big Chest )",
230 "Palace of Darkness (Mimics / Moving Wall )",
231 "Ganon's Tower (Ice Armos)",
232 "Ganon's Tower (Final Hallway)",
233 "Ice Palace (Bomb Floor / Bari )",
234 "Ice Palace (Pengator / Big Key )",
235 "Agahnim's Tower (Agahnim[Boss])",
236 "Hyrule Castle (Key-rat )",
237 "Hyrule Castle (Sewer Text Trigger )",
238 "Turtle Rock (West Exit to Balcony)",
239 "Turtle Rock (Double Hokku-Bokku / Big chest )",
241 "Swamp Palace (Statue )",
242 "Tower of Hera (Big Chest)",
243 "Swamp Palace (Entrance )",
244 "Skull Woods (Mothula[Boss])",
245 "Palace of Darkness (Big Hub )",
246 "Palace of Darkness (Map Chest / Fairy )",
249 "Ice Palace (Compass )",
250 "Cave (Kakariko Well HP)",
251 "Agahnim's Tower (Maiden Sacrifice Chamber)",
252 "Tower of Hera (Hardhat Beetles )",
253 "Hyrule Castle (Sewer Key Chest )",
254 "Desert Palace (Lanmolas[Boss])",
255 "Swamp Palace (Push Block Puzzle / Pre-Big Key )",
256 "Swamp Palace (Big Key / BS )",
257 "Swamp Palace (Big Chest )",
258 "Swamp Palace (Map Chest / Water Fill )",
259 "Swamp Palace (Key Pot )",
260 "Skull Woods (Gibdo Key / Mothula Hole )",
261 "Palace of Darkness (Bombable Floor )",
262 "Palace of Darkness (Spike Block / Conveyor )",
264 "Ganon's Tower (Torch 2)",
265 "Ice Palace (Stalfos Knights / Conveyor Hellway)",
266 "Ice Palace (Map Chest )",
267 "Agahnim's Tower (Final Bridge )",
268 "Hyrule Castle (First Dark )",
269 "Hyrule Castle (6 Ropes )",
270 "Desert Palace (Torch Puzzle / Moving Wall )",
271 "Thieves Town (Big Chest )",
272 "Thieves Town (Jail Cells )",
273 "Swamp Palace (Compass Chest )",
276 "Skull Woods (Gibdo Torch Puzzle )",
277 "Palace of Darkness (Entrance )",
278 "Palace of Darkness (Warps / South Mimics )",
279 "Ganon's Tower (Mini-Helmasaur Conveyor )",
280 "Ganon's Tower (Moldorm )",
281 "Ice Palace (Bomb-Jump )",
282 "Ice Palace Clone (Fairy )",
283 "Hyrule Castle (West Corridor)",
284 "Hyrule Castle (Throne )",
285 "Hyrule Castle (East Corridor)",
286 "Desert Palace (Popos 2 / Beamos Hellway )",
287 "Swamp Palace (Upstairs Pits )",
288 "Castle Secret Entrance / Uncle Death ",
289 "Skull Woods (Key Pot / Trap )",
290 "Skull Woods (Big Key )",
291 "Skull Woods (Big Chest )",
292 "Skull Woods (Final Section Entrance )",
293 "Palace of Darkness (Helmasaur King[Boss])",
294 "Ganon's Tower (Spike Pit )",
295 "Ganon's Tower (Ganon-Ball Z)",
296 "Ganon's Tower (Gauntlet 1/2/3)",
297 "Ice Palace (Lonely Firebar)",
298 "Ice Palace (Hidden Chest / Spike Floor )",
299 "Hyrule Castle (West Entrance )",
300 "Hyrule Castle (Main Entrance )",
301 "Hyrule Castle (East Entrance )",
302 "Desert Palace (Final Section Entrance )",
303 "Thieves Town (West Attic )",
304 "Thieves Town (East Attic )",
305 "Swamp Palace (Hidden Chest / Hidden Door )",
306 "Skull Woods (Compass Chest )",
307 "Skull Woods (Key Chest / Trap )",
309 "Palace of Darkness (Rupee )",
310 "Ganon's Tower (Mimics s)",
311 "Ganon's Tower (Lanmolas )",
312 "Ganon's Tower (Gauntlet 4/5)",
313 "Ice Palace (Pengators )",
315 "Hyrule Castle (Small Corridor to Jail Cells)",
316 "Hyrule Castle (Boomerang Chest )",
317 "Hyrule Castle (Map Chest )",
318 "Desert Palace (Big Chest )",
319 "Desert Palace (Map Chest )",
320 "Desert Palace (Big Key Chest )",
321 "Swamp Palace (Water Drain )",
322 "Tower of Hera (Entrance )",
327 "Ganon's Tower (East Side Collapsing Bridge / Exploding Wall )",
328 "Ganon's Tower (Winder / Warp Maze )",
329 "Ice Palace (Hidden Chest / Bombable Floor )",
330 "Ice Palace ( Big Spike Traps )",
331 "Hyrule Castle (Jail Cell )",
333 "Hyrule Castle (Basement Chasm )",
334 "Desert Palace (West Entrance )",
335 "Desert Palace (Main Entrance )",
336 "Desert Palace (East Entrance )",
338 "Tower of Hera (Tile )",
340 "Eastern Palace (Fairy )",
342 "Ganon's Tower (Block Puzzle / Spike Skip / Map Chest )",
343 "Ganon's Tower (East and West Downstairs / Big Chest )",
344 "Ganon's Tower (Tile / Torch Puzzle )",
347 "Misery Mire (Vitreous[Boss])",
348 "Misery Mire (Final Switch )",
349 "Misery Mire (Dark Bomb Wall / Switches )",
350 "Misery Mire (Dark Cane Floor Switch Puzzle )",
352 "Ganon's Tower (Final Collapsing Bridge )",
353 "Ganon's Tower (Torches 1 )",
354 "Misery Mire (Torch Puzzle / Moving Wall )",
355 "Misery Mire (Entrance )",
356 "Eastern Palace (Eyegore Key )",
358 "Ganon's Tower (Many Spikes / Warp Maze )",
359 "Ganon's Tower (Invisible Floor Maze )",
360 "Ganon's Tower (Compass Chest / Invisible Floor )",
361 "Ice Palace (Big Chest )",
363 "Misery Mire (Pre-Vitreous )",
364 "Misery Mire (Fish )",
365 "Misery Mire (Bridge Key Chest )",
367 "Turtle Rock (Trinexx[Boss])",
368 "Ganon's Tower (Wizzrobes s)",
369 "Ganon's Tower (Moldorm Fall )",
370 "Tower of Hera (Fairy )",
371 "Eastern Palace (Stalfos Spawn )",
372 "Eastern Palace (Big Chest )",
373 "Eastern Palace (Map Chest )",
374 "Thieves Town (Moving Spikes / Key Pot )",
375 "Thieves Town (Blind The Thief[Boss])",
378 "Ice Palace (Ice Bridge )",
379 "Agahnim's Tower (Circle of Pots)",
380 "Misery Mire (Hourglass )",
381 "Misery Mire (Slug )",
382 "Misery Mire (Spike Key Chest )",
383 "Turtle Rock (Pre-Trinexx )",
384 "Turtle Rock (Dark Maze)",
385 "Turtle Rock (Chain Chomps )",
386 "Turtle Rock (Map Chest / Key Chest / Roller )",
387 "Eastern Palace (Big Key )",
388 "Eastern Palace (Lobby Cannonballs )",
389 "Eastern Palace (Dark Antifairy / Key Pot )",
390 "Thieves Town (Hellway)",
391 "Thieves Town (Conveyor Toilet)",
393 "Ice Palace (Block Puzzle )",
394 "Ice Palace Clone (Switch )",
395 "Agahnim's Tower (Dark Bridge )",
396 "Misery Mire (Compass Chest / Tile )",
397 "Misery Mire (Big Hub )",
398 "Misery Mire (Big Chest )",
399 "Turtle Rock (Final Crystal Switch Puzzle )",
400 "Turtle Rock (Laser Bridge)",
402 "Turtle Rock (Torch Puzzle)",
403 "Eastern Palace (Armos Knights[Boss])",
404 "Eastern Palace (Entrance )",
406 "Thieves Town (North West Entrance )",
407 "Thieves Town (North East Entrance )",
409 "Ice Palace (Hole to Kholdstare )",
411 "Agahnim's Tower (Dark Maze)",
412 "Misery Mire (Conveyor Slug / Big Key )",
413 "Misery Mire (Mire02 / Wizzrobes )",
416 "Turtle Rock (Laser Key )",
417 "Turtle Rock (Entrance )",
419 "Eastern Palace (Zeldagamer / Pre-Armos Knights )",
420 "Eastern Palace (Canonball ",
422 "Thieves Town (Main (South West) Entrance )",
423 "Thieves Town (South East Entrance )",
425 "Ice Palace (Kholdstare[Boss])",
427 "Agahnim's Tower (Entrance )",
428 "Cave (Lost Woods HP)",
429 "Cave (Lumberjack's Tree HP)",
431 "Cave (Lost Old Man Final Cave)",
432 "Cave (Lost Old Man Final Cave)",
437 "Cave (Spectacle Rock HP)",
441 "Cave (Spiral Cave)",
442 "Cave (Crystal Switch / 5 Chests )",
443 "Cave (Lost Old Man Starting Cave)",
444 "Cave (Lost Old Man Starting Cave)",
446 "House (Old Woman (Sahasrahla's Wife?))",
447 "House (Angry Brothers)",
448 "House (Angry Brothers)",
487 "Circle of bush Cave",
488 "Big Bomb Shop, C-House",
Represents a bitmap image.
auto set_room_size(uint64_t size)
std::array< gfx::Bitmap, 3 > background_bmps_
std::vector< RoomObject > tile_objects_
auto room_size_ptr() const
uint8_t staircase_plane_[4]
std::vector< uint8_t > bg1_buffer_
std::vector< zelda3::Sprite > sprites_
gfx::Bitmap current_graphics_
std::vector< uint8_t > current_gfx16_
void CopyRoomGraphicsToBuffer()
void LoadRoomGraphics(uint8_t entrance_blockset=0xFF)
uint8_t staircase_rooms_[4]
std::array< uint8_t, 16 > blocks_
std::array< chest, 16 > chest_list_
int64_t room_size_pointer_
void LoadAnimatedGraphics()
std::vector< chest_data > chests_in_room_
LayerMergeType layer_merging_
std::vector< staircase > z3_staircases_
uint8_t background_tileset_
std::vector< uint8_t > bg2_buffer_
Zelda 3 specific classes and functions.
constexpr int room_object_layout_pointer
constexpr int chests_length_pointer
constexpr int door_pos_down
constexpr int door_gfx_up
constexpr int chests_data_pointer1
constexpr int blocks_pointer3
constexpr int door_gfx_left
constexpr int dungeons_palettes
constexpr int blocks_pointer4
constexpr int sprites_data_empty_room
constexpr int door_pos_left
constexpr int NumberOfRooms
constexpr int rooms_sprite_pointer
constexpr std::string_view kRoomNames[]
constexpr int messages_id_dungeon
constexpr int room_items_pointers
constexpr int blocks_length
constexpr int sprites_data
constexpr int sprite_blockset_pointer
constexpr int blocks_pointer2
constexpr int dungeons_main_bg_palette_pointers
constexpr int door_gfx_down
constexpr uint16_t stairsObjects[]
constexpr int gfx_groups_pointer
constexpr int blocks_pointer1
constexpr int torches_length_pointer
constexpr int doorPointers
constexpr int door_gfx_cavexit_down
constexpr int kRoomHeaderPointer
constexpr int kRoomHeaderPointerBank
constexpr int door_gfx_right
constexpr int room_object_pointer
constexpr int door_pos_up
constexpr int door_pos_right
constexpr int sprites_end_data
constexpr int pit_pointer
constexpr int dungeon_spr_ptrs
Main namespace for the application.
LayerMergeType(uint8_t id, std::string name, bool see, bool top, bool trans)