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 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
 
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 offset_x_ = 0
 
int offset_y_ = 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 63 of file room_object.h.

Member Enumeration Documentation

◆ LayerType

Enumerator
BG1 
BG2 
BG3 

Definition at line 65 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 67 of file room_object.h.

Member Function Documentation

◆ 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 93 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 94 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 97 of file room_object.h.

Referenced by DrawTile().

◆ lit_

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

Definition at line 98 of file room_object.h.

◆ id_

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

Definition at line 100 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 103 of file room_object.h.

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

◆ nx_

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

Definition at line 104 of file room_object.h.

Referenced by DrawTile().

◆ ny_

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

Definition at line 105 of file room_object.h.

Referenced by DrawTile().

◆ ox_

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

Definition at line 106 of file room_object.h.

◆ oy_

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

Definition at line 107 of file room_object.h.

◆ z_

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

Definition at line 108 of file room_object.h.

◆ previous_size_

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

Definition at line 109 of file room_object.h.

◆ width_

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

Definition at line 111 of file room_object.h.

Referenced by DrawTile().

◆ height_

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

Definition at line 112 of file room_object.h.

Referenced by DrawTile().

◆ offset_x_

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

Definition at line 113 of file room_object.h.

Referenced by DrawTile().

◆ offset_y_

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

Definition at line 114 of file room_object.h.

Referenced by DrawTile().

◆ name_

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

Definition at line 116 of file room_object.h.

◆ preview_object_data_

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

Definition at line 118 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 121 of file room_object.h.

Referenced by DrawTile().

◆ options_

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

Definition at line 122 of file room_object.h.

Referenced by options(), and set_options().


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