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

Dungeon Room Entrance or Spawn Point. More...

#include <room_entrance.h>

Public Member Functions

 RoomEntrance ()=default
 
 RoomEntrance (Rom *rom, uint8_t entrance_id, bool is_spawn_point=false)
 
const absl::Status & load_status () const
 
std::optional< EntranceLayoutKind > loaded_layout_kind () const
 
bool dirty () const
 
void MarkDirty ()
 
void ClearDirty ()
 
bool is_spawn_point () const
 
absl::Status Save (Rom *rom, int entrance_id, bool is_spawn_point=false)
 

Public Attributes

uint16_t entrance_id_ = 0
 
uint16_t x_position_ = 0
 
uint16_t y_position_ = 0
 
uint16_t camera_x_ = 0
 
uint16_t camera_y_ = 0
 
uint16_t camera_trigger_x_ = 0
 
uint16_t camera_trigger_y_ = 0
 
int16_t room_ = 0
 
uint8_t blockset_ = 0
 
uint8_t floor_ = 0
 
uint8_t dungeon_id_ = 0
 
uint8_t ladder_bg_ = 0
 
uint8_t scrolling_ = 0
 
uint8_t scroll_quadrant_ = 0
 
int16_t exit_ = 0
 
uint8_t music_ = 0
 
uint8_t door_ = 0
 
uint8_t camera_boundary_qn_ = 0
 
uint8_t camera_boundary_fn_ = 0
 
uint8_t camera_boundary_qs_ = 0
 
uint8_t camera_boundary_fs_ = 0
 
uint8_t camera_boundary_qw_ = 0
 
uint8_t camera_boundary_fw_ = 0
 
uint8_t camera_boundary_qe_ = 0
 
uint8_t camera_boundary_fe_ = 0
 

Private Attributes

absl::Status load_status_
 
std::optional< EntranceLayoutKind > loaded_layout_kind_
 
bool dirty_ = false
 
bool is_spawn_point_ = false
 

Detailed Description

Dungeon Room Entrance or Spawn Point.

Definition at line 120 of file room_entrance.h.

Constructor & Destructor Documentation

◆ RoomEntrance() [1/2]

yaze::zelda3::RoomEntrance::RoomEntrance ( )
default

◆ RoomEntrance() [2/2]

yaze::zelda3::RoomEntrance::RoomEntrance ( Rom * rom,
uint8_t entrance_id,
bool is_spawn_point = false )
inline

Definition at line 123 of file room_entrance.h.

References blockset_, camera_boundary_fe_, camera_boundary_fn_, camera_boundary_fs_, camera_boundary_fw_, camera_boundary_qe_, camera_boundary_qn_, camera_boundary_qs_, camera_boundary_qw_, yaze::zelda3::DungeonSpawnPoint::camera_scroll_boundaries, yaze::zelda3::DungeonSpawnPoint::camera_scroll_controller, yaze::zelda3::DungeonSpawnPoint::camera_trigger_x, camera_trigger_x_, yaze::zelda3::DungeonSpawnPoint::camera_trigger_y, camera_trigger_y_, camera_x_, camera_y_, yaze::Rom::data(), door_, yaze::zelda3::DungeonSpawnPoint::dungeon_id, dungeon_id_, exit_, yaze::zelda3::DungeonSpawnPoint::floor, floor_, yaze::zelda3::DungeonSpawnPoint::horizontal_scroll, yaze::Rom::is_loaded(), is_spawn_point(), yaze::zelda3::kBlockset, yaze::zelda3::kCameraXTrigger, yaze::zelda3::kCameraYTrigger, yaze::zelda3::kDoor, yaze::zelda3::kDungeon, yaze::zelda3::kExit, yaze::zelda3::kFloor, yaze::zelda3::kLadderBG, yaze::zelda3::kMusic, yaze::zelda3::kNumRegularDungeonEntrances, yaze::zelda3::kRoom, yaze::zelda3::kScrollEdge, yaze::zelda3::kScrolling, yaze::zelda3::kScrollQuadrant, yaze::zelda3::kXPosition, yaze::zelda3::kXScroll, yaze::zelda3::kYPosition, yaze::zelda3::kYScroll, ladder_bg_, yaze::zelda3::DungeonSpawnPoint::layer, yaze::zelda3::DungeonSpawnPoint::Load(), load_status_, loaded_layout_kind_, yaze::zelda3::DungeonSpawnPoint::main_gfx, music_, yaze::zelda3::DungeonSpawnPoint::overworld_door_tilemap, yaze::zelda3::DungeonSpawnPoint::quadrant, yaze::zelda3::ResolveEntranceLayout(), room_, yaze::zelda3::DungeonSpawnPoint::room_id, scroll_quadrant_, scrolling_, yaze::zelda3::DungeonSpawnPoint::song, yaze::Rom::vector(), yaze::zelda3::DungeonSpawnPoint::vertical_scroll, yaze::zelda3::DungeonSpawnPoint::x_coordinate, x_position_, yaze::zelda3::DungeonSpawnPoint::y_coordinate, and y_position_.

Member Function Documentation

◆ load_status()

◆ loaded_layout_kind()

std::optional< EntranceLayoutKind > yaze::zelda3::RoomEntrance::loaded_layout_kind ( ) const
inline

Definition at line 270 of file room_entrance.h.

References loaded_layout_kind_.

Referenced by yaze::zelda3::ValidateRegularDungeonEntranceForSave().

◆ dirty()

bool yaze::zelda3::RoomEntrance::dirty ( ) const
inline

Definition at line 273 of file room_entrance.h.

References dirty_.

Referenced by yaze::editor::CaptureDungeonEntranceCamera().

◆ MarkDirty()

void yaze::zelda3::RoomEntrance::MarkDirty ( )
inline

◆ ClearDirty()

void yaze::zelda3::RoomEntrance::ClearDirty ( )
inline

◆ is_spawn_point()

bool yaze::zelda3::RoomEntrance::is_spawn_point ( ) const
inline

◆ Save()

Member Data Documentation

◆ entrance_id_

◆ x_position_

◆ y_position_

◆ camera_x_

◆ camera_y_

◆ camera_trigger_x_

◆ camera_trigger_y_

◆ room_

◆ blockset_

◆ floor_

◆ dungeon_id_

◆ ladder_bg_

◆ scrolling_

◆ scroll_quadrant_

◆ exit_

◆ music_

◆ door_

◆ camera_boundary_qn_

◆ camera_boundary_fn_

◆ camera_boundary_qs_

◆ camera_boundary_fs_

◆ camera_boundary_qw_

◆ camera_boundary_fw_

◆ camera_boundary_qe_

◆ camera_boundary_fe_

◆ load_status_

absl::Status yaze::zelda3::RoomEntrance::load_status_
private

Definition at line 398 of file room_entrance.h.

Referenced by load_status(), and RoomEntrance().

◆ loaded_layout_kind_

std::optional<EntranceLayoutKind> yaze::zelda3::RoomEntrance::loaded_layout_kind_
private

Definition at line 399 of file room_entrance.h.

Referenced by loaded_layout_kind(), and RoomEntrance().

◆ dirty_

bool yaze::zelda3::RoomEntrance::dirty_ = false
private

Definition at line 400 of file room_entrance.h.

Referenced by ClearDirty(), dirty(), and MarkDirty().

◆ is_spawn_point_

bool yaze::zelda3::RoomEntrance::is_spawn_point_ = false
private

Definition at line 401 of file room_entrance.h.

Referenced by is_spawn_point().


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