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

#include <dungeon_spawn_point.h>

Public Member Functions

 DungeonSpawnPoint ()=default
 
absl::Status Save (Rom *rom, int spawn_id)
 
int spawn_id () const
 
bool dirty () const
 
void MarkDirty ()
 
void ClearDirty ()
 

Static Public Member Functions

static absl::StatusOr< DungeonSpawnPointLoad (const Rom &rom, int spawn_id)
 

Public Attributes

uint16_t room_id = 0
 
std::array< uint8_t, 8 > camera_scroll_boundaries {}
 
uint16_t horizontal_scroll = 0
 
uint16_t vertical_scroll = 0
 
uint16_t y_coordinate = 0
 
uint16_t x_coordinate = 0
 
uint16_t camera_trigger_y = 0
 
uint16_t camera_trigger_x = 0
 
uint8_t main_gfx = 0
 
uint8_t floor = 0
 
uint8_t dungeon_id = 0
 
uint8_t layer = 0
 
uint8_t camera_scroll_controller = 0
 
uint8_t quadrant = 0
 
uint16_t overworld_door_tilemap = 0
 
uint16_t entrance_id = 0
 
uint8_t song = 0
 

Private Attributes

int spawn_id_ = -1
 
bool dirty_ = false
 

Detailed Description

Definition at line 120 of file dungeon_spawn_point.h.

Constructor & Destructor Documentation

◆ DungeonSpawnPoint()

yaze::zelda3::DungeonSpawnPoint::DungeonSpawnPoint ( )
default

Member Function Documentation

◆ Load()

static absl::StatusOr< DungeonSpawnPoint > yaze::zelda3::DungeonSpawnPoint::Load ( const Rom & rom,
int spawn_id )
inlinestatic

◆ Save()

◆ spawn_id()

int yaze::zelda3::DungeonSpawnPoint::spawn_id ( ) const
inline

Definition at line 180 of file dungeon_spawn_point.h.

References spawn_id_.

Referenced by Load(), Save(), and yaze::zelda3::ValidateDungeonSpawnPointForSave().

◆ dirty()

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

Definition at line 181 of file dungeon_spawn_point.h.

References dirty_.

◆ MarkDirty()

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

Definition at line 182 of file dungeon_spawn_point.h.

References dirty_.

◆ ClearDirty()

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

Definition at line 183 of file dungeon_spawn_point.h.

References dirty_.

Referenced by Save().

Member Data Documentation

◆ room_id

uint16_t yaze::zelda3::DungeonSpawnPoint::room_id = 0

◆ camera_scroll_boundaries

std::array<uint8_t, 8> yaze::zelda3::DungeonSpawnPoint::camera_scroll_boundaries {}

Definition at line 186 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ horizontal_scroll

uint16_t yaze::zelda3::DungeonSpawnPoint::horizontal_scroll = 0

Definition at line 187 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ vertical_scroll

uint16_t yaze::zelda3::DungeonSpawnPoint::vertical_scroll = 0

Definition at line 188 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ y_coordinate

uint16_t yaze::zelda3::DungeonSpawnPoint::y_coordinate = 0

Definition at line 189 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ x_coordinate

uint16_t yaze::zelda3::DungeonSpawnPoint::x_coordinate = 0

Definition at line 190 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ camera_trigger_y

uint16_t yaze::zelda3::DungeonSpawnPoint::camera_trigger_y = 0

Definition at line 191 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ camera_trigger_x

uint16_t yaze::zelda3::DungeonSpawnPoint::camera_trigger_x = 0

Definition at line 192 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ main_gfx

uint8_t yaze::zelda3::DungeonSpawnPoint::main_gfx = 0

Definition at line 193 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ floor

uint8_t yaze::zelda3::DungeonSpawnPoint::floor = 0

Definition at line 194 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ dungeon_id

uint8_t yaze::zelda3::DungeonSpawnPoint::dungeon_id = 0

Definition at line 195 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ layer

uint8_t yaze::zelda3::DungeonSpawnPoint::layer = 0

Definition at line 196 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ camera_scroll_controller

uint8_t yaze::zelda3::DungeonSpawnPoint::camera_scroll_controller = 0

Definition at line 197 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ quadrant

uint8_t yaze::zelda3::DungeonSpawnPoint::quadrant = 0

Definition at line 198 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ overworld_door_tilemap

uint16_t yaze::zelda3::DungeonSpawnPoint::overworld_door_tilemap = 0

Definition at line 199 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ entrance_id

uint16_t yaze::zelda3::DungeonSpawnPoint::entrance_id = 0

◆ song

uint8_t yaze::zelda3::DungeonSpawnPoint::song = 0

Definition at line 201 of file dungeon_spawn_point.h.

Referenced by Load(), yaze::zelda3::RoomEntrance::RoomEntrance(), and Save().

◆ spawn_id_

int yaze::zelda3::DungeonSpawnPoint::spawn_id_ = -1
private

Definition at line 204 of file dungeon_spawn_point.h.

Referenced by Load(), and spawn_id().

◆ dirty_

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

Definition at line 205 of file dungeon_spawn_point.h.

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


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