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

#include <room_layout.h>

Collaboration diagram for yaze::zelda3::RoomLayout:

Public Member Functions

 RoomLayout ()=default
 
 RoomLayout (Rom *rom)
 
void SetRom (Rom *rom)
 
absl::Status LoadLayout (int layout_id)
 
absl::Status Draw (int room_id, const uint8_t *gfx_data, gfx::BackgroundBuffer &bg1, gfx::BackgroundBuffer &bg2, const gfx::PaletteGroup &palette_group, DungeonState *state) const
 
const std::vector< RoomObject > & GetObjects () const
 

Private Member Functions

absl::StatusOr< int > GetLayoutAddress (int layout_id) const
 

Private Attributes

Romrom_ = nullptr
 
std::vector< RoomObjectobjects_
 

Detailed Description

Definition at line 16 of file room_layout.h.

Constructor & Destructor Documentation

◆ RoomLayout() [1/2]

yaze::zelda3::RoomLayout::RoomLayout ( )
default

◆ RoomLayout() [2/2]

yaze::zelda3::RoomLayout::RoomLayout ( Rom * rom)
inlineexplicit

Definition at line 19 of file room_layout.h.

Member Function Documentation

◆ SetRom()

void yaze::zelda3::RoomLayout::SetRom ( Rom * rom)
inline

Definition at line 21 of file room_layout.h.

References rom_.

Referenced by yaze::zelda3::Room::LoadLayoutTilesToBuffer().

◆ LoadLayout()

◆ Draw()

absl::Status yaze::zelda3::RoomLayout::Draw ( int room_id,
const uint8_t * gfx_data,
gfx::BackgroundBuffer & bg1,
gfx::BackgroundBuffer & bg2,
const gfx::PaletteGroup & palette_group,
DungeonState * state ) const

Definition at line 109 of file room_layout.cc.

References yaze::zelda3::ObjectDrawer::DrawObjectList(), yaze::Rom::is_loaded(), objects_, and rom_.

Referenced by yaze::zelda3::Room::LoadLayoutTilesToBuffer().

Here is the call graph for this function:

◆ GetObjects()

const std::vector< RoomObject > & yaze::zelda3::RoomLayout::GetObjects ( ) const
inline

Definition at line 31 of file room_layout.h.

References objects_.

Referenced by yaze::zelda3::Room::LoadLayoutTilesToBuffer().

◆ GetLayoutAddress()

absl::StatusOr< int > yaze::zelda3::RoomLayout::GetLayoutAddress ( int layout_id) const
private

Definition at line 16 of file room_layout.cc.

References yaze::Rom::is_loaded(), rom_, yaze::Rom::size(), and yaze::SnesToPc().

Referenced by LoadLayout().

Here is the call graph for this function:

Member Data Documentation

◆ rom_

Rom* yaze::zelda3::RoomLayout::rom_ = nullptr
private

Definition at line 36 of file room_layout.h.

Referenced by Draw(), GetLayoutAddress(), LoadLayout(), and SetRom().

◆ objects_

std::vector<RoomObject> yaze::zelda3::RoomLayout::objects_
private

Definition at line 37 of file room_layout.h.

Referenced by Draw(), GetObjects(), and LoadLayout().


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