yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::zelda3::Overworld Class Reference

Represents the full Overworld data, light and dark world. More...

#include <overworld.h>

Collaboration diagram for yaze::zelda3::Overworld:

Public Member Functions

 Overworld (Rom *rom)
 
absl::Status Load (Rom *rom)
 
absl::Status LoadOverworldMaps ()
 
void LoadTileTypes ()
 
absl::Status LoadEntrances ()
 
absl::Status LoadHoles ()
 
absl::Status LoadExits ()
 
absl::Status LoadItems ()
 
absl::Status LoadSprites ()
 
absl::Status LoadSpritesFromMap (int sprite_start, int sprite_count, int sprite_index)
 
absl::Status EnsureMapBuilt (int map_index)
 Build a map on-demand if it hasn't been built yet.
 
absl::Status Save (Rom *rom)
 
absl::Status SaveOverworldMaps ()
 
absl::Status SaveLargeMaps ()
 
absl::Status SaveLargeMapsExpanded ()
 
absl::Status SaveSmallAreaTransitions (int i, int parent_x_pos, int parent_y_pos, int transition_target_north, int transition_target_west, int transition_pos_x, int transition_pos_y, int screen_change_1, int screen_change_2, int screen_change_3, int screen_change_4)
 
absl::Status SaveLargeAreaTransitions (int i, int parent_x_pos, int parent_y_pos, int transition_target_north, int transition_target_west, int transition_pos_x, int transition_pos_y, int screen_change_1, int screen_change_2, int screen_change_3, int screen_change_4)
 
absl::Status SaveWideAreaTransitions (int i, int parent_x_pos, int parent_y_pos, int transition_target_north, int transition_target_west, int transition_pos_x, int transition_pos_y, int screen_change_1, int screen_change_2, int screen_change_3, int screen_change_4)
 
absl::Status SaveTallAreaTransitions (int i, int parent_x_pos, int parent_y_pos, int transition_target_north, int transition_target_west, int transition_pos_x, int transition_pos_y, int screen_change_1, int screen_change_2, int screen_change_3, int screen_change_4)
 
absl::Status SaveEntrances ()
 
absl::Status SaveExits ()
 
absl::Status SaveItems ()
 
absl::Status SaveMapOverlays ()
 
absl::Status SaveOverworldTilesType ()
 
absl::Status SaveCustomOverworldASM (bool enable_bg_color, bool enable_main_palette, bool enable_mosaic, bool enable_gfx_groups, bool enable_subscreen_overlay, bool enable_animated)
 
absl::Status SaveAreaSpecificBGColors ()
 
absl::Status CreateTile32Tilemap ()
 
absl::Status SaveMap16Expanded ()
 
absl::Status SaveMap16Tiles ()
 
absl::Status SaveMap32Expanded ()
 
absl::Status SaveMap32Tiles ()
 
absl::Status SaveMapProperties ()
 
absl::Status SaveMusic ()
 
absl::Status SaveAreaSizes ()
 
void AssignMapSizes (std::vector< OverworldMap > &maps)
 Loads all maps from ROM to see what size they are.
 
absl::Status ConfigureMultiAreaMap (int parent_index, AreaSizeEnum size)
 Configure a multi-area map structure (Large/Wide/Tall)
 
auto rom () const
 
auto mutable_rom ()
 
void Destroy ()
 
int GetTileFromPosition (ImVec2 position) const
 
OverworldBlocksetGetMapTiles (int world_type)
 
auto overworld_maps () const
 
auto overworld_map (int i) const
 
auto mutable_overworld_map (int i)
 
auto exits () const
 
auto mutable_exits ()
 
std::vector< gfx::Tile16tiles16 () const
 
auto tiles32_unique () const
 
auto mutable_tiles16 ()
 
auto sprites (int state) const
 
auto mutable_sprites (int state)
 
auto current_graphics () const
 
const std::vector< OverworldEntrance > & entrances () const
 
auto & entrances ()
 
auto mutable_entrances ()
 
const std::vector< OverworldEntrance > & holes () const
 
auto & holes ()
 
auto mutable_holes ()
 
auto deleted_entrances () const
 
auto mutable_deleted_entrances ()
 
auto current_area_palette () const
 
auto current_map_bitmap_data () const
 
auto tile16_blockset_data () const
 
auto is_loaded () const
 
auto expanded_tile16 () const
 
auto expanded_tile32 () const
 
auto expanded_entrances () const
 
void set_current_map (int i)
 
void set_current_world (int world)
 
uint16_t GetTile (int x, int y) const
 
void SetTile (int x, int y, uint16_t tile_id)
 
auto map_tiles () const
 
auto mutable_map_tiles ()
 
auto all_items () const
 
auto mutable_all_items ()
 
auto all_tiles_types () const
 
auto mutable_all_tiles_types ()
 
auto all_sprites () const
 

Private Types

enum  Dimension { map32TilesTL = 0 , map32TilesTR = 1 , map32TilesBL = 2 , map32TilesBR = 3 }
 

Private Member Functions

void FetchLargeMaps ()
 
absl::StatusOr< uint16_t > GetTile16ForTile32 (int index, int quadrant, int dimension, const uint32_t *map32address)
 
absl::Status AssembleMap32Tiles ()
 
absl::Status AssembleMap16Tiles ()
 
void AssignWorldTiles (int x, int y, int sx, int sy, int tpos, OverworldBlockset &world)
 
void OrganizeMapTiles (std::vector< uint8_t > &bytes, std::vector< uint8_t > &bytes2, int i, int sx, int sy, int &ttpos)
 
void DecompressAllMapTiles ()
 
absl::Status DecompressAllMapTilesParallel ()
 

Private Attributes

Romrom_
 
bool is_loaded_ = false
 
bool expanded_tile16_ = false
 
bool expanded_tile32_ = false
 
bool expanded_entrances_ = false
 
int game_state_ = 0
 
int current_map_ = 0
 
int current_world_ = 0
 
OverworldMapTiles map_tiles_
 
std::mutex map_tiles_mutex_
 
std::vector< OverworldMapoverworld_maps_
 
std::vector< OverworldEntranceall_entrances_
 
std::vector< OverworldEntranceall_holes_
 
std::vector< OverworldExitall_exits_
 
std::vector< OverworldItemall_items_
 
std::vector< gfx::Tile16tiles16_
 
std::vector< gfx::Tile32tiles32_
 
std::vector< gfx::Tile32tiles32_unique_
 
std::vector< uint16_t > tiles32_list_
 
std::vector< uint64_t > deleted_entrances_
 
std::array< uint8_t, kNumOverworldMapsmap_parent_ = {0}
 
std::array< uint8_t, kNumTileTypesall_tiles_types_ = {0}
 
std::array< std::vector< Sprite >, 3 > all_sprites_
 
std::array< std::vector< uint8_t >, kNumOverworldMapsmap_data_p1
 
std::array< std::vector< uint8_t >, kNumOverworldMapsmap_data_p2
 
std::array< int, kNumOverworldMapsmap_pointers1_id
 
std::array< int, kNumOverworldMapsmap_pointers2_id
 
std::array< int, kNumOverworldMapsmap_pointers1
 
std::array< int, kNumOverworldMapsmap_pointers2
 

Detailed Description

Represents the full Overworld data, light and dark world.

This class is responsible for loading and saving the overworld data, as well as creating the tilesets and tilemaps for the overworld.

Definition at line 135 of file overworld.h.

Member Enumeration Documentation

◆ Dimension

Enumerator
map32TilesTL 
map32TilesTR 
map32TilesBL 
map32TilesBR 

Definition at line 320 of file overworld.h.

Constructor & Destructor Documentation

◆ Overworld()

yaze::zelda3::Overworld::Overworld ( Rom rom)
inline

Definition at line 137 of file overworld.h.

Member Function Documentation

◆ Load()

◆ LoadOverworldMaps()

absl::Status yaze::zelda3::Overworld::LoadOverworldMaps ( )

◆ LoadTileTypes()

void yaze::zelda3::Overworld::LoadTileTypes ( )

Definition at line 680 of file overworld.cc.

References all_tiles_types_, yaze::zelda3::kNumTileTypes, and rom().

Referenced by Load().

Here is the call graph for this function:

◆ LoadEntrances()

◆ LoadHoles()

absl::Status yaze::zelda3::Overworld::LoadHoles ( )

Definition at line 727 of file overworld.cc.

References all_holes_, ASSIGN_OR_RETURN, yaze::zelda3::kOverworldHoleArea, yaze::zelda3::kOverworldHoleEntrance, yaze::zelda3::kOverworldHolePos, and rom().

Referenced by Load().

Here is the call graph for this function:

◆ LoadExits()

◆ LoadItems()

absl::Status yaze::zelda3::Overworld::LoadItems ( )

◆ LoadSprites()

◆ LoadSpritesFromMap()

absl::Status yaze::zelda3::Overworld::LoadSpritesFromMap ( int  sprite_start,
int  sprite_count,
int  sprite_index 
)

Definition at line 895 of file overworld.cc.

References all_sprites_, ASSIGN_OR_RETURN, map_parent_, overworld_maps_, rom(), and yaze::SnesToPc().

Referenced by LoadSprites().

Here is the call graph for this function:

◆ EnsureMapBuilt()

absl::Status yaze::zelda3::Overworld::EnsureMapBuilt ( int  map_index)

Build a map on-demand if it hasn't been built yet.

This method checks if the specified map needs to be built and builds it if necessary. Used for lazy loading optimization.

Definition at line 656 of file overworld.cc.

References game_state_, GetMapTiles(), yaze::zelda3::kDarkWorldMapIdStart, yaze::zelda3::kNumOverworldMaps, yaze::zelda3::kSpecialWorldMapIdStart, yaze::util::logf(), overworld_maps_, and tiles16_.

Referenced by yaze::cli::overworld::BuildMapSummary(), yaze::editor::OverworldEditor::CheckForCurrentMap(), and yaze::editor::OverworldEditor::EnsureMapTexture().

Here is the call graph for this function:

◆ Save()

◆ SaveOverworldMaps()

◆ SaveLargeMaps()

◆ SaveLargeMapsExpanded()

◆ SaveSmallAreaTransitions()

absl::Status yaze::zelda3::Overworld::SaveSmallAreaTransitions ( int  i,
int  parent_x_pos,
int  parent_y_pos,
int  transition_target_north,
int  transition_target_west,
int  transition_pos_x,
int  transition_pos_y,
int  screen_change_1,
int  screen_change_2,
int  screen_change_3,
int  screen_change_4 
)

Definition at line 1428 of file overworld.cc.

References yaze::zelda3::kNumOverworldMaps, yaze::zelda3::LargeArea, overworld_maps_, RETURN_IF_ERROR, rom(), yaze::zelda3::TallArea, and yaze::zelda3::WideArea.

Referenced by SaveLargeMapsExpanded().

Here is the call graph for this function:

◆ SaveLargeAreaTransitions()

absl::Status yaze::zelda3::Overworld::SaveLargeAreaTransitions ( int  i,
int  parent_x_pos,
int  parent_y_pos,
int  transition_target_north,
int  transition_target_west,
int  transition_pos_x,
int  transition_pos_y,
int  screen_change_1,
int  screen_change_2,
int  screen_change_3,
int  screen_change_4 
)

Definition at line 1537 of file overworld.cc.

References yaze::zelda3::kNumOverworldMaps, yaze::zelda3::LargeArea, overworld_maps_, RETURN_IF_ERROR, rom(), yaze::zelda3::TallArea, and yaze::zelda3::WideArea.

Referenced by SaveLargeMapsExpanded().

Here is the call graph for this function:

◆ SaveWideAreaTransitions()

absl::Status yaze::zelda3::Overworld::SaveWideAreaTransitions ( int  i,
int  parent_x_pos,
int  parent_y_pos,
int  transition_target_north,
int  transition_target_west,
int  transition_pos_x,
int  transition_pos_y,
int  screen_change_1,
int  screen_change_2,
int  screen_change_3,
int  screen_change_4 
)

Definition at line 1693 of file overworld.cc.

References yaze::zelda3::kNumOverworldMaps, yaze::zelda3::LargeArea, overworld_maps_, RETURN_IF_ERROR, rom(), yaze::zelda3::TallArea, and yaze::zelda3::WideArea.

Referenced by SaveLargeMapsExpanded().

Here is the call graph for this function:

◆ SaveTallAreaTransitions()

absl::Status yaze::zelda3::Overworld::SaveTallAreaTransitions ( int  i,
int  parent_x_pos,
int  parent_y_pos,
int  transition_target_north,
int  transition_target_west,
int  transition_pos_x,
int  transition_pos_y,
int  screen_change_1,
int  screen_change_2,
int  screen_change_3,
int  screen_change_4 
)

Definition at line 1833 of file overworld.cc.

References yaze::zelda3::kNumOverworldMaps, yaze::zelda3::LargeArea, overworld_maps_, RETURN_IF_ERROR, rom(), yaze::zelda3::TallArea, and yaze::zelda3::WideArea.

Referenced by SaveLargeMapsExpanded().

Here is the call graph for this function:

◆ SaveEntrances()

◆ SaveExits()

◆ SaveItems()

absl::Status yaze::zelda3::Overworld::SaveItems ( )

◆ SaveMapOverlays()

absl::Status yaze::zelda3::Overworld::SaveMapOverlays ( )

Definition at line 2762 of file overworld.cc.

References yaze::zelda3::kNumOverworldMaps, yaze::zelda3::kOverlayCodeStart, yaze::util::logf(), overworld_maps_, yaze::PcToSnes(), RETURN_IF_ERROR, and rom().

Referenced by Save().

Here is the call graph for this function:

◆ SaveOverworldTilesType()

absl::Status yaze::zelda3::Overworld::SaveOverworldTilesType ( )

Definition at line 2834 of file overworld.cc.

References all_tiles_types_, yaze::zelda3::kNumTileTypes, yaze::util::logf(), yaze::zelda3::overworldTilesType, RETURN_IF_ERROR, and rom().

Referenced by Save().

Here is the call graph for this function:

◆ SaveCustomOverworldASM()

◆ SaveAreaSpecificBGColors()

absl::Status yaze::zelda3::Overworld::SaveAreaSpecificBGColors ( )

Definition at line 2917 of file overworld.cc.

References yaze::zelda3::kNumOverworldMaps, yaze::util::logf(), overworld_maps_, yaze::zelda3::OverworldCustomAreaSpecificBGPalette, RETURN_IF_ERROR, and rom().

Referenced by Save().

Here is the call graph for this function:

◆ CreateTile32Tilemap()

absl::Status yaze::zelda3::Overworld::CreateTile32Tilemap ( )

◆ SaveMap16Expanded()

absl::Status yaze::zelda3::Overworld::SaveMap16Expanded ( )

Definition at line 2456 of file overworld.cc.

References yaze::zelda3::kMap16TilesExpanded, yaze::zelda3::NumberOfMap16Ex, yaze::PcToSnes(), RETURN_IF_ERROR, rom(), yaze::SnesToPc(), and tiles16_.

Referenced by Save().

Here is the call graph for this function:

◆ SaveMap16Tiles()

absl::Status yaze::zelda3::Overworld::SaveMap16Tiles ( )

Definition at line 2551 of file overworld.cc.

References yaze::zelda3::kMap16Tiles, yaze::util::logf(), yaze::zelda3::NumberOfMap16, RETURN_IF_ERROR, rom(), and tiles16_.

Referenced by yaze::editor::OverworldEditor::Save(), and Save().

Here is the call graph for this function:

◆ SaveMap32Expanded()

absl::Status yaze::zelda3::Overworld::SaveMap32Expanded ( )

Definition at line 2158 of file overworld.cc.

References yaze::zelda3::kMap32TileBLExpanded, yaze::zelda3::kMap32TileBRExpanded, yaze::zelda3::kMap32TileTRExpanded, yaze::PcToSnes(), RETURN_IF_ERROR, rom(), and tiles32_unique_.

Referenced by Save().

Here is the call graph for this function:

◆ SaveMap32Tiles()

absl::Status yaze::zelda3::Overworld::SaveMap32Tiles ( )

Definition at line 2327 of file overworld.cc.

References yaze::util::logf(), map32TilesBL, map32TilesBR, RETURN_IF_ERROR, rom(), and tiles32_unique_.

Referenced by yaze::editor::OverworldEditor::Save(), and Save().

Here is the call graph for this function:

◆ SaveMapProperties()

◆ SaveMusic()

◆ SaveAreaSizes()

absl::Status yaze::zelda3::Overworld::SaveAreaSizes ( )

◆ AssignMapSizes()

void yaze::zelda3::Overworld::AssignMapSizes ( std::vector< OverworldMap > &  maps)

Loads all maps from ROM to see what size they are.

Parameters
mapsThe maps to update (passed by reference)

Definition at line 169 of file overworld.cc.

References yaze::zelda3::kNumOverworldMaps, yaze::zelda3::LargeArea, yaze::zelda3::SmallArea, yaze::zelda3::TallArea, and yaze::zelda3::WideArea.

Referenced by Load().

◆ ConfigureMultiAreaMap()

absl::Status yaze::zelda3::Overworld::ConfigureMultiAreaMap ( int  parent_index,
AreaSizeEnum  size 
)

Configure a multi-area map structure (Large/Wide/Tall)

Parameters
parent_indexThe parent map index
sizeThe area size to configure
Returns
Status of the configuration

Properly sets up sibling relationships and updates ROM data for v3+.

Definition at line 257 of file overworld.cc.

References yaze::zelda3::kNumOverworldMaps, yaze::zelda3::kOverworldMapParentId, yaze::zelda3::kOverworldMapParentIdExpanded, yaze::zelda3::kOverworldScreenSize, yaze::zelda3::LargeArea, LOG_DEBUG, overworld_maps_, yaze::zelda3::OverworldCustomASMHasBeenApplied, RETURN_IF_ERROR, rom(), yaze::zelda3::SmallArea, yaze::zelda3::TallArea, and yaze::zelda3::WideArea.

Referenced by yaze::editor::MapPropertiesSystem::DrawCustomFeaturesTab(), yaze::editor::MapPropertiesSystem::DrawPropertiesPopup(), and yaze::editor::MapPropertiesSystem::DrawSimplifiedMapSettings().

Here is the call graph for this function:

◆ rom()

◆ mutable_rom()

auto yaze::zelda3::Overworld::mutable_rom ( )
inline

Definition at line 215 of file overworld.h.

References rom_.

◆ Destroy()

void yaze::zelda3::Overworld::Destroy ( )
inline

Definition at line 217 of file overworld.h.

References all_entrances_, all_exits_, all_items_, all_sprites_, is_loaded_, overworld_maps_, sprites(), tiles16_, tiles32_, and tiles32_unique_.

Referenced by yaze::editor::OverworldEditor::Clear().

Here is the call graph for this function:

◆ GetTileFromPosition()

◆ GetMapTiles()

◆ overworld_maps()

auto yaze::zelda3::Overworld::overworld_maps ( ) const
inline

◆ overworld_map()

◆ mutable_overworld_map()

◆ exits()

auto yaze::zelda3::Overworld::exits ( ) const
inline

◆ mutable_exits()

auto yaze::zelda3::Overworld::mutable_exits ( )
inline

Definition at line 261 of file overworld.h.

References all_exits_.

Referenced by yaze::editor::OverworldEntityRenderer::DrawExits().

◆ tiles16()

◆ tiles32_unique()

auto yaze::zelda3::Overworld::tiles32_unique ( ) const
inline

Definition at line 263 of file overworld.h.

References tiles32_unique_.

Referenced by OverworldGoldenDataExtractor::WriteTileData().

◆ mutable_tiles16()

auto yaze::zelda3::Overworld::mutable_tiles16 ( )
inline

◆ sprites()

auto yaze::zelda3::Overworld::sprites ( int  state) const
inline

Definition at line 265 of file overworld.h.

References all_sprites_.

Referenced by yaze::cli::overworld::CollectOverworldSprites(), and Destroy().

◆ mutable_sprites()

auto yaze::zelda3::Overworld::mutable_sprites ( int  state)
inline

◆ current_graphics()

auto yaze::zelda3::Overworld::current_graphics ( ) const
inline

Definition at line 267 of file overworld.h.

References current_map_, and overworld_maps_.

◆ entrances() [1/2]

◆ entrances() [2/2]

auto & yaze::zelda3::Overworld::entrances ( )
inline

Definition at line 271 of file overworld.h.

References all_entrances_.

◆ mutable_entrances()

auto yaze::zelda3::Overworld::mutable_entrances ( )
inline

Definition at line 272 of file overworld.h.

References all_entrances_.

◆ holes() [1/2]

const std::vector< OverworldEntrance > & yaze::zelda3::Overworld::holes ( ) const
inline

◆ holes() [2/2]

auto & yaze::zelda3::Overworld::holes ( )
inline

Definition at line 274 of file overworld.h.

References all_holes_.

◆ mutable_holes()

auto yaze::zelda3::Overworld::mutable_holes ( )
inline

Definition at line 275 of file overworld.h.

References all_holes_.

◆ deleted_entrances()

auto yaze::zelda3::Overworld::deleted_entrances ( ) const
inline

Definition at line 276 of file overworld.h.

References deleted_entrances_.

◆ mutable_deleted_entrances()

auto yaze::zelda3::Overworld::mutable_deleted_entrances ( )
inline

Definition at line 277 of file overworld.h.

References deleted_entrances_.

◆ current_area_palette()

◆ current_map_bitmap_data()

auto yaze::zelda3::Overworld::current_map_bitmap_data ( ) const
inline

◆ tile16_blockset_data()

auto yaze::zelda3::Overworld::tile16_blockset_data ( ) const
inline

◆ is_loaded()

◆ expanded_tile16()

auto yaze::zelda3::Overworld::expanded_tile16 ( ) const
inline

◆ expanded_tile32()

auto yaze::zelda3::Overworld::expanded_tile32 ( ) const
inline

◆ expanded_entrances()

auto yaze::zelda3::Overworld::expanded_entrances ( ) const
inline

Definition at line 290 of file overworld.h.

References expanded_entrances_.

◆ set_current_map()

◆ set_current_world()

◆ GetTile()

◆ SetTile()

◆ map_tiles()

auto yaze::zelda3::Overworld::map_tiles ( ) const
inline

Definition at line 311 of file overworld.h.

References map_tiles_.

Referenced by OverworldGoldenDataExtractor::WriteMapTilesData().

◆ mutable_map_tiles()

◆ all_items()

auto yaze::zelda3::Overworld::all_items ( ) const
inline

◆ mutable_all_items()

auto yaze::zelda3::Overworld::mutable_all_items ( )
inline

Definition at line 314 of file overworld.h.

References all_items_.

Referenced by yaze::editor::OverworldEntityRenderer::DrawItems().

◆ all_tiles_types()

auto yaze::zelda3::Overworld::all_tiles_types ( ) const
inline

Definition at line 315 of file overworld.h.

References all_tiles_types_.

◆ mutable_all_tiles_types()

auto yaze::zelda3::Overworld::mutable_all_tiles_types ( )
inline

Definition at line 316 of file overworld.h.

References all_tiles_types_.

Referenced by yaze::editor::OverworldEditor::Load().

◆ all_sprites()

auto yaze::zelda3::Overworld::all_sprites ( ) const
inline

◆ FetchLargeMaps()

void yaze::zelda3::Overworld::FetchLargeMaps ( )
private

Definition at line 112 of file overworld.cc.

References overworld_maps_.

Referenced by Load().

◆ GetTile16ForTile32()

absl::StatusOr< uint16_t > yaze::zelda3::Overworld::GetTile16ForTile32 ( int  index,
int  quadrant,
int  dimension,
const uint32_t *  map32address 
)
private

Definition at line 395 of file overworld.cc.

References ASSIGN_OR_RETURN, and rom().

Referenced by AssembleMap32Tiles().

Here is the call graph for this function:

◆ AssembleMap32Tiles()

◆ AssembleMap16Tiles()

◆ AssignWorldTiles()

void yaze::zelda3::Overworld::AssignWorldTiles ( int  x,
int  y,
int  sx,
int  sy,
int  tpos,
OverworldBlockset world 
)
private

Definition at line 501 of file overworld.cc.

References tiles32_unique_.

Referenced by OrganizeMapTiles().

◆ OrganizeMapTiles()

void yaze::zelda3::Overworld::OrganizeMapTiles ( std::vector< uint8_t > &  bytes,
std::vector< uint8_t > &  bytes2,
int  i,
int  sx,
int  sy,
int &  ttpos 
)
private

◆ DecompressAllMapTiles()

void yaze::zelda3::Overworld::DecompressAllMapTiles ( )
private

Definition at line 533 of file overworld.cc.

◆ DecompressAllMapTilesParallel()

absl::Status yaze::zelda3::Overworld::DecompressAllMapTilesParallel ( )
private

Member Data Documentation

◆ rom_

Rom* yaze::zelda3::Overworld::rom_
private

Definition at line 341 of file overworld.h.

Referenced by Load(), mutable_rom(), rom(), and Save().

◆ is_loaded_

bool yaze::zelda3::Overworld::is_loaded_ = false
private

Definition at line 343 of file overworld.h.

Referenced by Destroy(), is_loaded(), and Load().

◆ expanded_tile16_

bool yaze::zelda3::Overworld::expanded_tile16_ = false
private

Definition at line 344 of file overworld.h.

Referenced by AssembleMap16Tiles(), expanded_tile16(), and Save().

◆ expanded_tile32_

bool yaze::zelda3::Overworld::expanded_tile32_ = false
private

Definition at line 345 of file overworld.h.

Referenced by AssembleMap32Tiles(), expanded_tile32(), and Save().

◆ expanded_entrances_

bool yaze::zelda3::Overworld::expanded_entrances_ = false
private

Definition at line 346 of file overworld.h.

Referenced by expanded_entrances(), LoadEntrances(), and SaveEntrances().

◆ game_state_

int yaze::zelda3::Overworld::game_state_ = 0
private

Definition at line 348 of file overworld.h.

Referenced by EnsureMapBuilt(), and LoadOverworldMaps().

◆ current_map_

int yaze::zelda3::Overworld::current_map_ = 0
private

◆ current_world_

int yaze::zelda3::Overworld::current_world_ = 0
private

Definition at line 350 of file overworld.h.

Referenced by GetTile(), GetTileFromPosition(), set_current_world(), and SetTile().

◆ map_tiles_

◆ map_tiles_mutex_

std::mutex yaze::zelda3::Overworld::map_tiles_mutex_
mutableprivate

Definition at line 355 of file overworld.h.

◆ overworld_maps_

◆ all_entrances_

std::vector<OverworldEntrance> yaze::zelda3::Overworld::all_entrances_
private

◆ all_holes_

std::vector<OverworldEntrance> yaze::zelda3::Overworld::all_holes_
private

Definition at line 359 of file overworld.h.

Referenced by holes(), holes(), LoadHoles(), mutable_holes(), and SaveEntrances().

◆ all_exits_

std::vector<OverworldExit> yaze::zelda3::Overworld::all_exits_
private

Definition at line 360 of file overworld.h.

Referenced by Destroy(), exits(), LoadExits(), mutable_exits(), and SaveExits().

◆ all_items_

std::vector<OverworldItem> yaze::zelda3::Overworld::all_items_
private

Definition at line 361 of file overworld.h.

Referenced by all_items(), Destroy(), LoadItems(), mutable_all_items(), and SaveItems().

◆ tiles16_

std::vector<gfx::Tile16> yaze::zelda3::Overworld::tiles16_
private

◆ tiles32_

std::vector<gfx::Tile32> yaze::zelda3::Overworld::tiles32_
private

Definition at line 364 of file overworld.h.

Referenced by Destroy().

◆ tiles32_unique_

std::vector<gfx::Tile32> yaze::zelda3::Overworld::tiles32_unique_
private

◆ tiles32_list_

std::vector<uint16_t> yaze::zelda3::Overworld::tiles32_list_
private

Definition at line 367 of file overworld.h.

Referenced by CreateTile32Tilemap(), and SaveOverworldMaps().

◆ deleted_entrances_

std::vector<uint64_t> yaze::zelda3::Overworld::deleted_entrances_
private

Definition at line 368 of file overworld.h.

Referenced by deleted_entrances(), and mutable_deleted_entrances().

◆ map_parent_

std::array<uint8_t, kNumOverworldMaps> yaze::zelda3::Overworld::map_parent_ = {0}
private

Definition at line 370 of file overworld.h.

Referenced by Load(), and LoadSpritesFromMap().

◆ all_tiles_types_

std::array<uint8_t, kNumTileTypes> yaze::zelda3::Overworld::all_tiles_types_ = {0}
private

◆ all_sprites_

std::array<std::vector<Sprite>, 3> yaze::zelda3::Overworld::all_sprites_
private

Definition at line 372 of file overworld.h.

Referenced by all_sprites(), Destroy(), LoadSpritesFromMap(), mutable_sprites(), and sprites().

◆ map_data_p1

std::array<std::vector<uint8_t>, kNumOverworldMaps> yaze::zelda3::Overworld::map_data_p1
private

Definition at line 373 of file overworld.h.

Referenced by SaveOverworldMaps().

◆ map_data_p2

std::array<std::vector<uint8_t>, kNumOverworldMaps> yaze::zelda3::Overworld::map_data_p2
private

Definition at line 374 of file overworld.h.

Referenced by SaveOverworldMaps().

◆ map_pointers1_id

std::array<int, kNumOverworldMaps> yaze::zelda3::Overworld::map_pointers1_id
private

Definition at line 375 of file overworld.h.

Referenced by SaveOverworldMaps().

◆ map_pointers2_id

std::array<int, kNumOverworldMaps> yaze::zelda3::Overworld::map_pointers2_id
private

Definition at line 376 of file overworld.h.

Referenced by SaveOverworldMaps().

◆ map_pointers1

std::array<int, kNumOverworldMaps> yaze::zelda3::Overworld::map_pointers1
private

Definition at line 377 of file overworld.h.

Referenced by SaveOverworldMaps().

◆ map_pointers2

std::array<int, kNumOverworldMaps> yaze::zelda3::Overworld::map_pointers2
private

Definition at line 378 of file overworld.h.

Referenced by SaveOverworldMaps().


The documentation for this class was generated from the following files: