#include <room_layout.h>

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 | |
| Rom * | rom_ = nullptr |
| std::vector< RoomObject > | objects_ |
Definition at line 16 of file room_layout.h.
|
default |
|
inlineexplicit |
Definition at line 19 of file room_layout.h.
|
inline |
Definition at line 21 of file room_layout.h.
References rom_.
Referenced by yaze::zelda3::Room::LoadLayoutTilesToBuffer().
| absl::Status yaze::zelda3::RoomLayout::LoadLayout | ( | int | layout_id | ) |
Definition at line 36 of file room_layout.cc.
References yaze::Rom::data(), yaze::zelda3::RoomObject::DecodeObjectFromBytes(), yaze::zelda3::RoomObject::EnsureTilesLoaded(), GetLayoutAddress(), yaze::zelda3::RoomObject::id_, LOG_DEBUG, objects_, rom_, yaze::zelda3::RoomObject::SetRom(), yaze::Rom::size(), yaze::zelda3::RoomObject::size_, yaze::zelda3::RoomObject::tiles(), yaze::zelda3::RoomObject::x_, and yaze::zelda3::RoomObject::y_.
Referenced by yaze::zelda3::Room::LoadLayoutTilesToBuffer().
| 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().

|
inline |
Definition at line 31 of file room_layout.h.
References objects_.
Referenced by yaze::zelda3::Room::LoadLayoutTilesToBuffer().
|
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().

|
private |
Definition at line 36 of file room_layout.h.
Referenced by Draw(), GetLayoutAddress(), LoadLayout(), and SetRom().
|
private |
Definition at line 37 of file room_layout.h.
Referenced by Draw(), GetObjects(), and LoadLayout().