#include <room.h>
Public Member Functions | |
Room ()=default | |
Room (int room_id, Rom *rom) | |
void | LoadRoomGraphics (uint8_t entrance_blockset=0xFF) |
void | CopyRoomGraphicsToBuffer () |
void | RenderRoomGraphics () |
void | LoadAnimatedGraphics () |
void | LoadObjects () |
void | LoadSprites () |
void | LoadChests () |
auto | blocks () const |
auto & | mutable_blocks () |
auto | rom () |
auto | mutable_rom () |
|
default |
|
inline |
void yaze::zelda3::Room::LoadRoomGraphics | ( | uint8_t | entrance_blockset = 0xFF | ) |
void yaze::zelda3::Room::CopyRoomGraphicsToBuffer | ( | ) |
Definition at line 226 of file room.cc.
References blocks_, current_gfx16_, yaze::zelda3::kGfxBufferRoomOffset, yaze::zelda3::kGfxBufferRoomSpriteLastLineOffset, LoadAnimatedGraphics(), and rom().
Referenced by RenderRoomGraphics().
void yaze::zelda3::Room::RenderRoomGraphics | ( | ) |
Definition at line 250 of file room.cc.
References yaze::gfx::Arena::bg1(), yaze::gfx::Arena::bg2(), CopyRoomGraphicsToBuffer(), yaze::core::Renderer::CreateAndRenderBitmap(), current_gfx16_, floor1_graphics_, floor2_graphics_, yaze::core::Renderer::Get(), yaze::gfx::Arena::Get(), rom(), yaze::zelda3::tile_address, yaze::zelda3::tile_address_floor, and yaze::core::Renderer::UpdateBitmap().
void yaze::zelda3::Room::LoadAnimatedGraphics | ( | ) |
Definition at line 278 of file room.cc.
References animated_frame_, background_tileset_, current_gfx16_, rom(), and yaze::SnesToPc().
Referenced by CopyRoomGraphicsToBuffer().
void yaze::zelda3::Room::LoadObjects | ( | ) |
Definition at line 298 of file room.cc.
References yaze::zelda3::Chest, chests_in_room_, floor1_graphics_, floor2_graphics_, is_floor_, layout, LoadChests(), rom(), room_id_, yaze::zelda3::room_object_pointer, yaze::SnesToPc(), staircase_rooms_, yaze::zelda3::Stairs, yaze::zelda3::stairsObjects, yaze::zelda3::tile_address, tile_objects_, and z3_staircases_.
void yaze::zelda3::Room::LoadSprites | ( | ) |
Definition at line 439 of file room.cc.
References yaze::zelda3::Sprite::id(), yaze::zelda3::Sprite::layer(), rom(), room_id_, yaze::zelda3::rooms_sprite_pointer, yaze::zelda3::Sprite::set_key_drop(), yaze::SnesToPc(), sprites_, yaze::zelda3::Sprite::subtype(), yaze::zelda3::Sprite::x(), and yaze::zelda3::Sprite::y().
void yaze::zelda3::Room::LoadChests | ( | ) |
Definition at line 486 of file room.cc.
References yaze::zelda3::chests_data_pointer1, chests_in_room_, yaze::zelda3::chests_length_pointer, rom(), room_id_, and yaze::SnesToPc().
Referenced by LoadObjects().
|
inline |
|
inline |
|
inline |
Definition at line 215 of file room.h.
References rom_.
Referenced by CopyRoomGraphicsToBuffer(), LoadAnimatedGraphics(), LoadChests(), LoadObjects(), LoadRoomGraphics(), LoadSprites(), RenderRoomGraphics(), and Room().
|
inline |
Rom* yaze::zelda3::Room::rom_ |
Definition at line 218 of file room.h.
Referenced by mutable_rom(), rom(), and Room().
uint8_t yaze::zelda3::Room::blockset = 0 |
Definition at line 220 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom(), and LoadRoomGraphics().
uint8_t yaze::zelda3::Room::spriteset = 0 |
Definition at line 221 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom(), and LoadRoomGraphics().
uint8_t yaze::zelda3::Room::palette = 0 |
Definition at line 222 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
uint8_t yaze::zelda3::Room::layout = 0 |
Definition at line 223 of file room.h.
Referenced by LoadObjects().
uint8_t yaze::zelda3::Room::holewarp = 0 |
Definition at line 224 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
uint16_t yaze::zelda3::Room::message_id_ = 0 |
Definition at line 227 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
std::array<uint8_t, 0x4000> yaze::zelda3::Room::current_gfx16_ |
Definition at line 229 of file room.h.
Referenced by CopyRoomGraphicsToBuffer(), LoadAnimatedGraphics(), and RenderRoomGraphics().
bool yaze::zelda3::Room::is_light_ |
Definition at line 231 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
bool yaze::zelda3::Room::is_dark_ |
Definition at line 233 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
bool yaze::zelda3::Room::is_floor_ = true |
Definition at line 234 of file room.h.
Referenced by LoadObjects().
int yaze::zelda3::Room::room_id_ |
Definition at line 236 of file room.h.
Referenced by LoadChests(), LoadObjects(), LoadSprites(), and Room().
int yaze::zelda3::Room::animated_frame_ |
Definition at line 237 of file room.h.
Referenced by LoadAnimatedGraphics().
uint8_t yaze::zelda3::Room::staircase_plane_[4] |
Definition at line 239 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
uint8_t yaze::zelda3::Room::staircase_rooms_[4] |
Definition at line 240 of file room.h.
Referenced by LoadObjects(), and yaze::zelda3::LoadRoomFromRom().
uint8_t yaze::zelda3::Room::background_tileset_ |
Definition at line 242 of file room.h.
Referenced by LoadAnimatedGraphics(), and yaze::zelda3::LoadRoomFromRom().
uint8_t yaze::zelda3::Room::sprite_tileset_ |
Definition at line 243 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
uint8_t yaze::zelda3::Room::layer2_behavior_ |
Definition at line 244 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
uint8_t yaze::zelda3::Room::palette_ |
Definition at line 245 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
uint8_t yaze::zelda3::Room::floor1_graphics_ |
Definition at line 246 of file room.h.
Referenced by LoadObjects(), and RenderRoomGraphics().
uint8_t yaze::zelda3::Room::floor2_graphics_ |
Definition at line 247 of file room.h.
Referenced by LoadObjects(), and RenderRoomGraphics().
uint8_t yaze::zelda3::Room::layer2_mode_ |
Definition at line 248 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
std::array<uint8_t, 16> yaze::zelda3::Room::blocks_ |
Definition at line 250 of file room.h.
Referenced by blocks(), CopyRoomGraphicsToBuffer(), LoadRoomGraphics(), and mutable_blocks().
std::vector<RoomObject> yaze::zelda3::Room::tile_objects_ |
Definition at line 253 of file room.h.
Referenced by LoadObjects().
std::vector<zelda3::Sprite> yaze::zelda3::Room::sprites_ |
Definition at line 254 of file room.h.
Referenced by LoadSprites().
std::vector<staircase> yaze::zelda3::Room::z3_staircases_ |
Definition at line 255 of file room.h.
Referenced by LoadObjects().
std::vector<chest_data> yaze::zelda3::Room::chests_in_room_ |
Definition at line 256 of file room.h.
Referenced by LoadChests(), and LoadObjects().
LayerMergeType yaze::zelda3::Room::layer_merging_ |
Definition at line 258 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
CollisionKey yaze::zelda3::Room::collision_ |
Definition at line 259 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
EffectKey yaze::zelda3::Room::effect_ |
Definition at line 260 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
TagKey yaze::zelda3::Room::tag1_ |
Definition at line 261 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
TagKey yaze::zelda3::Room::tag2_ |
Definition at line 262 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
background2 yaze::zelda3::Room::bg2_ |
Definition at line 264 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
destination yaze::zelda3::Room::pits_ |
Definition at line 265 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
destination yaze::zelda3::Room::stair1_ |
Definition at line 266 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
destination yaze::zelda3::Room::stair2_ |
Definition at line 267 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
destination yaze::zelda3::Room::stair3_ |
Definition at line 268 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().
destination yaze::zelda3::Room::stair4_ |
Definition at line 269 of file room.h.
Referenced by yaze::zelda3::LoadRoomFromRom().