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

#include <pit_damage_table.h>

Public Member Functions

absl::Status SaveToRom (Rom *rom) const
 
const std::vector< uint16_t > & room_ids () const
 
bool Contains (uint16_t room_id) const
 
void SetRoomIds (std::vector< uint16_t > room_ids)
 
absl::Status ReplaceRoomId (uint16_t old_room_id, uint16_t new_room_id)
 
void MarkDirty ()
 
void ClearDirty ()
 
bool dirty () const
 

Static Public Member Functions

static absl::Status LoadFromRom (Rom *rom, PitDamageTable *out)
 

Private Attributes

std::vector< uint16_t > room_ids_
 
bool dirty_ = false
 

Detailed Description

Definition at line 16 of file pit_damage_table.h.

Member Function Documentation

◆ LoadFromRom()

absl::Status yaze::zelda3::PitDamageTable::LoadFromRom ( Rom * rom,
PitDamageTable * out )
static

Definition at line 24 of file pit_damage_table.cc.

References dirty_, yaze::Rom::is_loaded(), yaze::zelda3::kPitCount, yaze::zelda3::kPitPointer, room_ids(), room_ids_, yaze::SnesToPc(), and yaze::Rom::vector().

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

Here is the call graph for this function:

◆ SaveToRom()

absl::Status yaze::zelda3::PitDamageTable::SaveToRom ( Rom * rom) const

◆ room_ids()

const std::vector< uint16_t > & yaze::zelda3::PitDamageTable::room_ids ( ) const
inline

◆ Contains()

◆ SetRoomIds()

void yaze::zelda3::PitDamageTable::SetRoomIds ( std::vector< uint16_t > room_ids)

Definition at line 118 of file pit_damage_table.cc.

References dirty_, room_ids(), and room_ids_.

Here is the call graph for this function:

◆ ReplaceRoomId()

absl::Status yaze::zelda3::PitDamageTable::ReplaceRoomId ( uint16_t old_room_id,
uint16_t new_room_id )

Definition at line 123 of file pit_damage_table.cc.

References Contains(), dirty_, yaze::zelda3::kNumberOfRooms, and room_ids_.

Referenced by yaze::editor::AddCurrentRoomToPitDamage(), and yaze::editor::RemoveCurrentRoomFromPitDamage().

Here is the call graph for this function:

◆ MarkDirty()

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

Definition at line 25 of file pit_damage_table.h.

References dirty_.

Referenced by yaze::editor::DungeonEditorV2::RollbackSaveTransaction().

◆ ClearDirty()

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

◆ dirty()

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

Member Data Documentation

◆ room_ids_

std::vector<uint16_t> yaze::zelda3::PitDamageTable::room_ids_
private

Definition at line 30 of file pit_damage_table.h.

Referenced by Contains(), LoadFromRom(), ReplaceRoomId(), room_ids(), SaveToRom(), and SetRoomIds().

◆ dirty_

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

Definition at line 31 of file pit_damage_table.h.

Referenced by ClearDirty(), dirty(), LoadFromRom(), MarkDirty(), ReplaceRoomId(), and SetRoomIds().


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