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

#include <inventory.h>

Collaboration diagram for yaze::zelda3::Inventory:

Public Member Functions

absl::Status Create ()
 
auto & bitmap ()
 
auto & tilesheet ()
 
auto & palette ()
 
void LoadRom (Rom *rom)
 
auto rom ()
 

Private Member Functions

absl::Status BuildTileset ()
 

Private Attributes

std::vector< uint8_t > data_
 
gfx::Bitmap bitmap_
 
std::vector< uint8_t > tilesheets_
 
std::vector< uint8_t > test_
 
gfx::Bitmap tilesheets_bmp_
 
gfx::SnesPalette palette_
 
Romrom_
 
gui::Canvas canvas_
 
std::vector< gfx::TileInfotiles_
 

Detailed Description

Definition at line 16 of file inventory.h.

Member Function Documentation

◆ Create()

◆ bitmap()

auto & yaze::zelda3::Inventory::bitmap ( )
inline

Definition at line 20 of file inventory.h.

References bitmap_.

◆ tilesheet()

auto & yaze::zelda3::Inventory::tilesheet ( )
inline

Definition at line 21 of file inventory.h.

References tilesheets_bmp_.

◆ palette()

auto & yaze::zelda3::Inventory::palette ( )
inline

Definition at line 22 of file inventory.h.

References palette_.

◆ LoadRom()

void yaze::zelda3::Inventory::LoadRom ( Rom * rom)
inline

Definition at line 24 of file inventory.h.

References rom(), and rom_.

Here is the call graph for this function:

◆ rom()

auto yaze::zelda3::Inventory::rom ( )
inline

Definition at line 25 of file inventory.h.

References rom_.

Referenced by BuildTileset(), Create(), and LoadRom().

◆ BuildTileset()

absl::Status yaze::zelda3::Inventory::BuildTileset ( )
private

Definition at line 76 of file inventory.cc.

References ASSIGN_OR_RETURN, yaze::zelda3::Renderer::Get(), yaze::Load2BppGraphics(), palette_, yaze::core::Renderer::RenderBitmap(), rom(), test_, tilesheets_, and tilesheets_bmp_.

Referenced by Create().

Here is the call graph for this function:

Member Data Documentation

◆ data_

std::vector<uint8_t> yaze::zelda3::Inventory::data_
private

Definition at line 30 of file inventory.h.

Referenced by Create().

◆ bitmap_

gfx::Bitmap yaze::zelda3::Inventory::bitmap_
private

Definition at line 31 of file inventory.h.

Referenced by bitmap(), and Create().

◆ tilesheets_

std::vector<uint8_t> yaze::zelda3::Inventory::tilesheets_
private

Definition at line 33 of file inventory.h.

Referenced by BuildTileset().

◆ test_

std::vector<uint8_t> yaze::zelda3::Inventory::test_
private

Definition at line 34 of file inventory.h.

Referenced by BuildTileset(), and Create().

◆ tilesheets_bmp_

gfx::Bitmap yaze::zelda3::Inventory::tilesheets_bmp_
private

Definition at line 35 of file inventory.h.

Referenced by BuildTileset(), and tilesheet().

◆ palette_

gfx::SnesPalette yaze::zelda3::Inventory::palette_
private

Definition at line 36 of file inventory.h.

Referenced by BuildTileset(), Create(), and palette().

◆ rom_

Rom* yaze::zelda3::Inventory::rom_
private

Definition at line 38 of file inventory.h.

Referenced by LoadRom(), and rom().

◆ canvas_

gui::Canvas yaze::zelda3::Inventory::canvas_
private

Definition at line 39 of file inventory.h.

◆ tiles_

std::vector<gfx::TileInfo> yaze::zelda3::Inventory::tiles_
private

Definition at line 40 of file inventory.h.

Referenced by Create().


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