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

Editor implementation of DungeonState. More...

#include <editor_dungeon_state.h>

Inheritance diagram for yaze::zelda3::EditorDungeonState:
Collaboration diagram for yaze::zelda3::EditorDungeonState:

Public Member Functions

 EditorDungeonState (Rom *rom, GameData *game_data)
 
bool IsChestOpen (int room_id, int chest_index) const override
 
void SetChestOpen (int room_id, int chest_index, bool open)
 
bool IsBigChestOpen () const override
 
bool IsBigChestOpen (int room_id, int chest_index) const override
 
void SetBigChestOpen (bool open)
 
bool IsDoorOpen (int room_id, int door_index) const override
 
void SetDoorOpen (int room_id, int door_index, bool open)
 
bool IsDoorSwitchActive (int room_id) const override
 
void SetDoorSwitchActive (int room_id, bool active)
 
bool IsWaterFaceActive (int room_id) const override
 
void SetWaterFaceActive (int room_id, bool active)
 
bool IsDamFloodgateOpen (int room_id) const override
 
void SetDamFloodgateOpen (int room_id, bool open)
 
bool IsWallMoved (int room_id) const override
 
void SetWallMoved (int room_id, bool moved)
 
bool IsFloorBombable (int room_id) const override
 
void SetFloorBombable (int room_id, bool bombed)
 
bool IsRupeeFloorCleared (int room_id) const override
 
void SetRupeeFloorCleared (int room_id, bool cleared)
 
bool IsCrystalSwitchBlue () const override
 
void SetCrystalSwitchBlue (bool blue)
 
void Reset ()
 
- Public Member Functions inherited from yaze::zelda3::DungeonState
virtual ~DungeonState ()=default
 
virtual bool IsBigKeyLockOpen (int room_id, int room_event_index) const
 

Private Attributes

Romrom_
 
GameDatagame_data_
 
std::map< std::pair< int, int >, bool > chest_states_
 
bool big_chest_open_ = false
 
std::map< std::pair< int, int >, bool > door_states_
 
std::map< int, bool > door_switch_states_
 
std::map< int, bool > water_face_active_states_
 
std::map< int, bool > dam_floodgate_open_states_
 
std::map< int, bool > wall_moved_states_
 
std::map< int, bool > floor_bombable_states_
 
std::map< int, bool > rupee_floor_cleared_states_
 
bool crystal_switch_blue_ = true
 

Detailed Description

Editor implementation of DungeonState.

Stores state in memory to allow the editor to toggle states and visualize the effects.

Definition at line 18 of file editor_dungeon_state.h.

Constructor & Destructor Documentation

◆ EditorDungeonState()

yaze::zelda3::EditorDungeonState::EditorDungeonState ( Rom * rom,
GameData * game_data )
inline

Definition at line 20 of file editor_dungeon_state.h.

Member Function Documentation

◆ IsChestOpen()

bool yaze::zelda3::EditorDungeonState::IsChestOpen ( int room_id,
int chest_index ) const
inlineoverridevirtual

Implements yaze::zelda3::DungeonState.

Definition at line 24 of file editor_dungeon_state.h.

References chest_states_.

Referenced by IsBigChestOpen().

◆ SetChestOpen()

void yaze::zelda3::EditorDungeonState::SetChestOpen ( int room_id,
int chest_index,
bool open )
inline

Definition at line 32 of file editor_dungeon_state.h.

References chest_states_.

◆ IsBigChestOpen() [1/2]

bool yaze::zelda3::EditorDungeonState::IsBigChestOpen ( ) const
inlineoverridevirtual

Implements yaze::zelda3::DungeonState.

Definition at line 36 of file editor_dungeon_state.h.

References big_chest_open_.

◆ IsBigChestOpen() [2/2]

bool yaze::zelda3::EditorDungeonState::IsBigChestOpen ( int room_id,
int chest_index ) const
inlineoverridevirtual

Reimplemented from yaze::zelda3::DungeonState.

Definition at line 37 of file editor_dungeon_state.h.

References big_chest_open_, and IsChestOpen().

Here is the call graph for this function:

◆ SetBigChestOpen()

void yaze::zelda3::EditorDungeonState::SetBigChestOpen ( bool open)
inline

Definition at line 40 of file editor_dungeon_state.h.

References big_chest_open_.

◆ IsDoorOpen()

bool yaze::zelda3::EditorDungeonState::IsDoorOpen ( int room_id,
int door_index ) const
inlineoverridevirtual

Implements yaze::zelda3::DungeonState.

Definition at line 43 of file editor_dungeon_state.h.

References door_states_.

◆ SetDoorOpen()

void yaze::zelda3::EditorDungeonState::SetDoorOpen ( int room_id,
int door_index,
bool open )
inline

Definition at line 51 of file editor_dungeon_state.h.

References door_states_.

◆ IsDoorSwitchActive()

bool yaze::zelda3::EditorDungeonState::IsDoorSwitchActive ( int room_id) const
inlineoverridevirtual

Implements yaze::zelda3::DungeonState.

Definition at line 55 of file editor_dungeon_state.h.

References door_switch_states_.

◆ SetDoorSwitchActive()

void yaze::zelda3::EditorDungeonState::SetDoorSwitchActive ( int room_id,
bool active )
inline

Definition at line 63 of file editor_dungeon_state.h.

References door_switch_states_.

◆ IsWaterFaceActive()

bool yaze::zelda3::EditorDungeonState::IsWaterFaceActive ( int room_id) const
inlineoverridevirtual

Reimplemented from yaze::zelda3::DungeonState.

Definition at line 67 of file editor_dungeon_state.h.

References water_face_active_states_.

◆ SetWaterFaceActive()

void yaze::zelda3::EditorDungeonState::SetWaterFaceActive ( int room_id,
bool active )
inline

Definition at line 75 of file editor_dungeon_state.h.

References water_face_active_states_.

◆ IsDamFloodgateOpen()

bool yaze::zelda3::EditorDungeonState::IsDamFloodgateOpen ( int room_id) const
inlineoverridevirtual

Reimplemented from yaze::zelda3::DungeonState.

Definition at line 79 of file editor_dungeon_state.h.

References dam_floodgate_open_states_.

◆ SetDamFloodgateOpen()

void yaze::zelda3::EditorDungeonState::SetDamFloodgateOpen ( int room_id,
bool open )
inline

Definition at line 87 of file editor_dungeon_state.h.

References dam_floodgate_open_states_.

◆ IsWallMoved()

bool yaze::zelda3::EditorDungeonState::IsWallMoved ( int room_id) const
inlineoverridevirtual

Implements yaze::zelda3::DungeonState.

Definition at line 92 of file editor_dungeon_state.h.

References wall_moved_states_.

◆ SetWallMoved()

void yaze::zelda3::EditorDungeonState::SetWallMoved ( int room_id,
bool moved )
inline

Definition at line 100 of file editor_dungeon_state.h.

References wall_moved_states_.

◆ IsFloorBombable()

bool yaze::zelda3::EditorDungeonState::IsFloorBombable ( int room_id) const
inlineoverridevirtual

Implements yaze::zelda3::DungeonState.

Definition at line 104 of file editor_dungeon_state.h.

References floor_bombable_states_.

◆ SetFloorBombable()

void yaze::zelda3::EditorDungeonState::SetFloorBombable ( int room_id,
bool bombed )
inline

Definition at line 112 of file editor_dungeon_state.h.

References floor_bombable_states_.

◆ IsRupeeFloorCleared()

bool yaze::zelda3::EditorDungeonState::IsRupeeFloorCleared ( int room_id) const
inlineoverridevirtual

Implements yaze::zelda3::DungeonState.

Definition at line 116 of file editor_dungeon_state.h.

References rupee_floor_cleared_states_.

◆ SetRupeeFloorCleared()

void yaze::zelda3::EditorDungeonState::SetRupeeFloorCleared ( int room_id,
bool cleared )
inline

Definition at line 124 of file editor_dungeon_state.h.

References rupee_floor_cleared_states_.

◆ IsCrystalSwitchBlue()

bool yaze::zelda3::EditorDungeonState::IsCrystalSwitchBlue ( ) const
inlineoverridevirtual

Implements yaze::zelda3::DungeonState.

Definition at line 129 of file editor_dungeon_state.h.

References crystal_switch_blue_.

◆ SetCrystalSwitchBlue()

void yaze::zelda3::EditorDungeonState::SetCrystalSwitchBlue ( bool blue)
inline

Definition at line 130 of file editor_dungeon_state.h.

References crystal_switch_blue_.

◆ Reset()

Member Data Documentation

◆ rom_

Rom* yaze::zelda3::EditorDungeonState::rom_
private

Definition at line 147 of file editor_dungeon_state.h.

◆ game_data_

GameData* yaze::zelda3::EditorDungeonState::game_data_
private

Definition at line 148 of file editor_dungeon_state.h.

◆ chest_states_

std::map<std::pair<int, int>, bool> yaze::zelda3::EditorDungeonState::chest_states_
private

Definition at line 151 of file editor_dungeon_state.h.

Referenced by IsChestOpen(), Reset(), and SetChestOpen().

◆ big_chest_open_

bool yaze::zelda3::EditorDungeonState::big_chest_open_ = false
private

Definition at line 152 of file editor_dungeon_state.h.

Referenced by IsBigChestOpen(), IsBigChestOpen(), Reset(), and SetBigChestOpen().

◆ door_states_

std::map<std::pair<int, int>, bool> yaze::zelda3::EditorDungeonState::door_states_
private

Definition at line 154 of file editor_dungeon_state.h.

Referenced by IsDoorOpen(), Reset(), and SetDoorOpen().

◆ door_switch_states_

std::map<int, bool> yaze::zelda3::EditorDungeonState::door_switch_states_
private

Definition at line 155 of file editor_dungeon_state.h.

Referenced by IsDoorSwitchActive(), Reset(), and SetDoorSwitchActive().

◆ water_face_active_states_

std::map<int, bool> yaze::zelda3::EditorDungeonState::water_face_active_states_
private

Definition at line 156 of file editor_dungeon_state.h.

Referenced by IsWaterFaceActive(), Reset(), and SetWaterFaceActive().

◆ dam_floodgate_open_states_

std::map<int, bool> yaze::zelda3::EditorDungeonState::dam_floodgate_open_states_
private

Definition at line 157 of file editor_dungeon_state.h.

Referenced by IsDamFloodgateOpen(), Reset(), and SetDamFloodgateOpen().

◆ wall_moved_states_

std::map<int, bool> yaze::zelda3::EditorDungeonState::wall_moved_states_
private

Definition at line 159 of file editor_dungeon_state.h.

Referenced by IsWallMoved(), Reset(), and SetWallMoved().

◆ floor_bombable_states_

std::map<int, bool> yaze::zelda3::EditorDungeonState::floor_bombable_states_
private

Definition at line 160 of file editor_dungeon_state.h.

Referenced by IsFloorBombable(), Reset(), and SetFloorBombable().

◆ rupee_floor_cleared_states_

std::map<int, bool> yaze::zelda3::EditorDungeonState::rupee_floor_cleared_states_
private

Definition at line 161 of file editor_dungeon_state.h.

Referenced by IsRupeeFloorCleared(), Reset(), and SetRupeeFloorCleared().

◆ crystal_switch_blue_

bool yaze::zelda3::EditorDungeonState::crystal_switch_blue_ = true
private

Definition at line 163 of file editor_dungeon_state.h.

Referenced by IsCrystalSwitchBlue(), Reset(), and SetCrystalSwitchBlue().


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