yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::zelda3::dungeon::RoomObject Class Reference

#include <room_object.h>

Inheritance diagram for yaze::app::zelda3::dungeon::RoomObject:
Collaboration diagram for yaze::app::zelda3::dungeon::RoomObject:

Public Types

enum  LayerType { BG1 = 0 , BG2 = 1 , BG3 = 2 }
 

Public Member Functions

 RoomObject (int16_t id, uint8_t x, uint8_t y, uint8_t size, uint8_t layer=0)
 
void GetObjectSize ()
 
void GetBaseSize ()
 
void GetSizeSized ()
 
void UpdateSize ()
 
void AddTiles (int nbr, int pos)
 
void DrawTile (gfx::Tile16 t, int xx, int yy, std::vector< uint8_t > &current_gfx16, std::vector< uint8_t > &tiles_bg1_buffer, std::vector< uint8_t > &tiles_bg2_buffer, ushort tile_under=0xFFFF)
 
auto options () const
 
void set_options (ObjectOption options)
 
- Public Member Functions inherited from yaze::app::SharedRom
 SharedRom ()=default
 
virtual ~SharedRom ()=default
 
std::shared_ptr< Romshared_rom ()
 
auto rom ()
 

Protected Attributes

bool all_bgs_ = false
 
bool lit_ = false
 
bool deleted_ = false
 
bool show_rectangle_ = false
 
bool diagonal_fix_ = false
 
bool selected_ = false
 
int16_t id_
 
uint8_t x_
 
uint8_t y_
 
uint8_t size_
 
uint8_t nx_
 
uint8_t ny_
 
uint8_t ox_
 
uint8_t oy_
 
uint8_t z_ = 0
 
uint8_t previous_size_ = 0
 
int width_
 
int height_
 
int base_width_
 
int base_height_
 
int size_width_
 
int size_height_
 
int tile_index_ = 0
 
int offset_x_ = 0
 
int offset_y_ = 0
 
int preview_id_ = 0
 
int unique_id_ = 0
 
std::string name_
 
std::vector< uint8_t > preview_object_data_
 
std::vector< gfx::Tile16tiles_
 
LayerType layer_
 
ObjectOption options_ = ObjectOption::Nothing
 

Additional Inherited Members

- Static Public Attributes inherited from yaze::app::SharedRom
static std::shared_ptr< Romshared_rom_ = nullptr
 

Detailed Description

Definition at line 77 of file room_object.h.

Member Enumeration Documentation

◆ LayerType

Enumerator
BG1 
BG2 
BG3 

Definition at line 79 of file room_object.h.

Constructor & Destructor Documentation

◆ RoomObject()

yaze::app::zelda3::dungeon::RoomObject::RoomObject ( int16_t id,
uint8_t x,
uint8_t y,
uint8_t size,
uint8_t layer = 0 )
inline

Definition at line 81 of file room_object.h.

Member Function Documentation

◆ GetObjectSize()

void yaze::app::zelda3::dungeon::RoomObject::GetObjectSize ( )
inline

Definition at line 95 of file room_object.h.

References GetBaseSize(), GetSizeSized(), previous_size_, size_, and UpdateSize().

Here is the call graph for this function:

◆ GetBaseSize()

void yaze::app::zelda3::dungeon::RoomObject::GetBaseSize ( )
inline

Definition at line 106 of file room_object.h.

References base_height_, base_width_, height_, and width_.

Referenced by GetObjectSize().

◆ GetSizeSized()

void yaze::app::zelda3::dungeon::RoomObject::GetSizeSized ( )
inline

Definition at line 111 of file room_object.h.

References base_height_, base_width_, height_, size_height_, size_width_, and width_.

Referenced by GetObjectSize().

◆ UpdateSize()

void yaze::app::zelda3::dungeon::RoomObject::UpdateSize ( )
inline

Definition at line 116 of file room_object.h.

References height_, and width_.

Referenced by GetObjectSize().

◆ AddTiles()

void yaze::app::zelda3::dungeon::RoomObject::AddTiles ( int nbr,
int pos )
inline

◆ DrawTile()

void yaze::app::zelda3::dungeon::RoomObject::DrawTile ( gfx::Tile16 t,
int xx,
int yy,
std::vector< uint8_t > & current_gfx16,
std::vector< uint8_t > & tiles_bg1_buffer,
std::vector< uint8_t > & tiles_bg2_buffer,
ushort tile_under = 0xFFFF )

◆ options()

auto yaze::app::zelda3::dungeon::RoomObject::options ( ) const
inline

Definition at line 134 of file room_object.h.

References options_.

Referenced by set_options().

◆ set_options()

void yaze::app::zelda3::dungeon::RoomObject::set_options ( ObjectOption options)
inline

Definition at line 135 of file room_object.h.

References options(), and options_.

Here is the call graph for this function:

Member Data Documentation

◆ all_bgs_

bool yaze::app::zelda3::dungeon::RoomObject::all_bgs_ = false
protected

Definition at line 138 of file room_object.h.

Referenced by DrawTile().

◆ lit_

bool yaze::app::zelda3::dungeon::RoomObject::lit_ = false
protected

Definition at line 139 of file room_object.h.

◆ deleted_

bool yaze::app::zelda3::dungeon::RoomObject::deleted_ = false
protected

Definition at line 140 of file room_object.h.

◆ show_rectangle_

bool yaze::app::zelda3::dungeon::RoomObject::show_rectangle_ = false
protected

Definition at line 141 of file room_object.h.

◆ diagonal_fix_

bool yaze::app::zelda3::dungeon::RoomObject::diagonal_fix_ = false
protected

Definition at line 142 of file room_object.h.

◆ selected_

bool yaze::app::zelda3::dungeon::RoomObject::selected_ = false
protected

Definition at line 143 of file room_object.h.

◆ id_

int16_t yaze::app::zelda3::dungeon::RoomObject::id_
protected

Definition at line 145 of file room_object.h.

◆ x_

uint8_t yaze::app::zelda3::dungeon::RoomObject::x_
protected

◆ y_

uint8_t yaze::app::zelda3::dungeon::RoomObject::y_
protected

◆ size_

uint8_t yaze::app::zelda3::dungeon::RoomObject::size_
protected

Definition at line 148 of file room_object.h.

Referenced by yaze::app::zelda3::dungeon::Subtype1::Draw(), and GetObjectSize().

◆ nx_

uint8_t yaze::app::zelda3::dungeon::RoomObject::nx_
protected

Definition at line 149 of file room_object.h.

Referenced by DrawTile().

◆ ny_

uint8_t yaze::app::zelda3::dungeon::RoomObject::ny_
protected

Definition at line 150 of file room_object.h.

Referenced by DrawTile().

◆ ox_

uint8_t yaze::app::zelda3::dungeon::RoomObject::ox_
protected

Definition at line 151 of file room_object.h.

◆ oy_

uint8_t yaze::app::zelda3::dungeon::RoomObject::oy_
protected

Definition at line 152 of file room_object.h.

◆ z_

uint8_t yaze::app::zelda3::dungeon::RoomObject::z_ = 0
protected

Definition at line 153 of file room_object.h.

◆ previous_size_

uint8_t yaze::app::zelda3::dungeon::RoomObject::previous_size_ = 0
protected

Definition at line 154 of file room_object.h.

Referenced by GetObjectSize().

◆ width_

int yaze::app::zelda3::dungeon::RoomObject::width_
protected

Definition at line 156 of file room_object.h.

Referenced by DrawTile(), GetBaseSize(), GetSizeSized(), and UpdateSize().

◆ height_

int yaze::app::zelda3::dungeon::RoomObject::height_
protected

Definition at line 157 of file room_object.h.

Referenced by DrawTile(), GetBaseSize(), GetSizeSized(), and UpdateSize().

◆ base_width_

int yaze::app::zelda3::dungeon::RoomObject::base_width_
protected

Definition at line 158 of file room_object.h.

Referenced by GetBaseSize(), and GetSizeSized().

◆ base_height_

int yaze::app::zelda3::dungeon::RoomObject::base_height_
protected

Definition at line 159 of file room_object.h.

Referenced by GetBaseSize(), and GetSizeSized().

◆ size_width_

int yaze::app::zelda3::dungeon::RoomObject::size_width_
protected

Definition at line 160 of file room_object.h.

Referenced by GetSizeSized().

◆ size_height_

int yaze::app::zelda3::dungeon::RoomObject::size_height_
protected

Definition at line 161 of file room_object.h.

Referenced by GetSizeSized().

◆ tile_index_

int yaze::app::zelda3::dungeon::RoomObject::tile_index_ = 0
protected

Definition at line 162 of file room_object.h.

◆ offset_x_

int yaze::app::zelda3::dungeon::RoomObject::offset_x_ = 0
protected

Definition at line 163 of file room_object.h.

Referenced by DrawTile().

◆ offset_y_

int yaze::app::zelda3::dungeon::RoomObject::offset_y_ = 0
protected

Definition at line 164 of file room_object.h.

Referenced by DrawTile().

◆ preview_id_

int yaze::app::zelda3::dungeon::RoomObject::preview_id_ = 0
protected

Definition at line 165 of file room_object.h.

◆ unique_id_

int yaze::app::zelda3::dungeon::RoomObject::unique_id_ = 0
protected

Definition at line 166 of file room_object.h.

◆ name_

std::string yaze::app::zelda3::dungeon::RoomObject::name_
protected

Definition at line 168 of file room_object.h.

◆ preview_object_data_

std::vector<uint8_t> yaze::app::zelda3::dungeon::RoomObject::preview_object_data_
protected

Definition at line 170 of file room_object.h.

Referenced by DrawTile().

◆ tiles_

std::vector<gfx::Tile16> yaze::app::zelda3::dungeon::RoomObject::tiles_
protected

◆ layer_

LayerType yaze::app::zelda3::dungeon::RoomObject::layer_
protected

Definition at line 173 of file room_object.h.

Referenced by DrawTile().

◆ options_

ObjectOption yaze::app::zelda3::dungeon::RoomObject::options_ = ObjectOption::Nothing
protected

Definition at line 174 of file room_object.h.

Referenced by options(), and set_options().


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