#include <room_links.h>

Public Member Functions | |
| RoomLinkFactsCache (Rom *rom) | |
| ~RoomLinkFactsCache () | |
| RoomLinkFactsCache (const RoomLinkFactsCache &)=delete | |
| RoomLinkFactsCache & | operator= (const RoomLinkFactsCache &)=delete |
| const RoomLinkFacts * | Get (int room_id) |
| RoomLinkFactsLookup | AsLookup () |
| const absl::Status & | status () const |
Private Attributes | |
| Rom * | rom_ |
| std::unique_ptr< PitDamageTable > | pit_table_ |
| std::vector< std::optional< RoomLinkFacts > > | facts_ |
| absl::Status | status_ |
Definition at line 201 of file room_links.h.
|
explicit |
Definition at line 686 of file room_links.cc.
References yaze::Rom::is_loaded(), yaze::zelda3::PitDamageTable::LoadFromRom(), pit_table_, and rom_.

|
default |
|
delete |
|
delete |
| const RoomLinkFacts * yaze::zelda3::RoomLinkFactsCache::Get | ( | int | room_id | ) |
Definition at line 698 of file room_links.cc.
References yaze::zelda3::CollectRoomLinkFacts(), facts_, yaze::Rom::is_loaded(), yaze::zelda3::IsDungeonRoomId(), yaze::zelda3::LoadRoomFromRom(), yaze::zelda3::Room::LoadSprites(), pit_table_, rom_, and status_.
Referenced by AsLookup(), yaze::cli::handlers::DungeonGraphCommandHandler::Execute(), and yaze::cli::handlers::DungeonRoomGraphCommandHandler::Execute().
| RoomLinkFactsLookup yaze::zelda3::RoomLinkFactsCache::AsLookup | ( | ) |
Definition at line 717 of file room_links.cc.
References Get().
Referenced by yaze::cli::handlers::DungeonGraphCommandHandler::Execute(), yaze::cli::handlers::DungeonDiscoverCommandHandler::Execute(), and yaze::cli::handlers::DungeonRoomGraphCommandHandler::Execute().

|
inline |
Definition at line 213 of file room_links.h.
References status_.
Referenced by yaze::cli::handlers::DungeonGraphCommandHandler::Execute(), yaze::cli::handlers::DungeonDiscoverCommandHandler::Execute(), and yaze::cli::handlers::DungeonRoomGraphCommandHandler::Execute().
|
private |
Definition at line 216 of file room_links.h.
Referenced by Get(), and RoomLinkFactsCache().
|
private |
Definition at line 217 of file room_links.h.
Referenced by Get(), and RoomLinkFactsCache().
|
private |
Definition at line 218 of file room_links.h.
Referenced by Get().
|
private |
Definition at line 219 of file room_links.h.