1#ifndef YAZE_APP_ZELDA3_OVERWORLD_MAP_H
2#define YAZE_APP_ZELDA3_OVERWORLD_MAP_H
8#include "absl/status/status.h"
19static constexpr int kTileOffsets[] = {0, 8, 4096, 4104};
67 absl::Status
BuildMap(
int count,
int game_state,
int world,
68 std::vector<gfx::Tile16>& tiles16,
74 absl::Status
BuildTiles16Gfx(std::vector<gfx::Tile16>& tiles16,
int count);
150 int index,
int previous_index,
Shared graphical context across editors.
The Rom class is used to load, save, and modify Rom data.
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a single Overworld map screen.
auto sprite_graphics(int i) const
absl::Status BuildTiles16Gfx(std::vector< gfx::Tile16 > &tiles16, int count)
auto set_area_graphics(uint8_t value)
void LoadDeathMountainGFX()
uchar static_graphics_[16]
absl::Status BuildTileset()
void ProcessGraphicsBuffer(int index, int static_graphics_offset, int size)
absl::Status LoadPalette()
auto mutable_area_music(int i)
auto static_graphics(int i) const
auto current_graphics() const
std::vector< uint8_t > current_gfx_
auto mutable_static_graphics(int i)
uint8_t custom_gfx_ids_[8]
auto area_graphics() const
std::vector< uint8_t > bitmap_data_
uchar sprite_graphics_[3]
auto area_music(int i) const
auto mutable_sprite_graphics(int i)
void SetAsSmallMap(int index=-1)
auto set_area_palette(uint8_t value)
auto mutable_sprite_palette(int i)
auto area_palette() const
void SetupCustomTileset(uint8_t asm_version)
auto mutable_message_id()
void LoadAreaGraphicsBlocksets()
auto is_initialized() const
auto current_palette() const
uint16_t subscreen_overlay_
void SetAsLargeMap(int parent_index, int quadrant)
absl::StatusOr< gfx::SnesPalette > GetPalette(const gfx::PaletteGroup &group, int index, int previous_index, int limit)
auto set_sprite_graphics(int i, uint8_t value)
auto mutable_area_palette()
absl::Status BuildBitmap(OWBlockset &world_blockset)
void LoadSpritesBlocksets()
auto is_large_map() const
std::vector< uint8_t > all_gfx_
gfx::SnesPalette current_palette_
absl::Status BuildMap(int count, int game_state, int world, std::vector< gfx::Tile16 > &tiles16, OWBlockset &world_blockset)
auto set_sprite_palette(int i, uint8_t value)
auto current_tile16_blockset() const
std::vector< uint8_t > current_blockset_
auto set_message_id(uint16_t value)
void LoadCustomOverworldData()
uint8_t * mutable_custom_tileset(int index)
void LoadMainBlocksetId()
auto sprite_palette(int i) const
auto mutable_current_palette()
auto mutable_area_graphics()
constexpr int OverworldCustomAnimatedGFXArray
constexpr int OverworldCustomAreaSpecificBGEnabled
constexpr int OverworldCustomASMHasBeenApplied
constexpr int OverworldCustomMosaicEnabled
constexpr int OverworldCustomAnimatedGFXEnabled
constexpr int OverworldCustomAreaSpecificBGPalette
constexpr int OverworldCustomMainPaletteEnabled
constexpr int OverworldCustomSubscreenOverlayEnabled
constexpr int OverworldCustomTileGFXGroupArray
constexpr int OverworldCustomMosaicArray
constexpr int OverworldCustomTileGFXGroupEnabled
constexpr int OverworldCustomMainPaletteArray
constexpr int OverworldCustomSubscreenOverlayArray
std::vector< std::vector< uint16_t > > OWBlockset
Represents tile32 data for the overworld.
Represents a group of palettes.
Overworld map tile32 data.