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
 
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 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 IsRupeeFloorActive (int room_id) const override
 
void SetRupeeFloorActive (int room_id, bool active)
 
bool IsCrystalSwitchBlue () const override
 
void SetCrystalSwitchBlue (bool blue)
 
void Reset ()
 
- Public Member Functions inherited from yaze::zelda3::DungeonState
virtual ~DungeonState ()=default
 

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 > wall_moved_states_
 
std::map< int, bool > floor_bombable_states_
 
std::map< int, bool > rupee_floor_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 23 of file editor_dungeon_state.h.

References chest_states_.

◆ SetChestOpen()

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

Definition at line 31 of file editor_dungeon_state.h.

References chest_states_.

◆ IsBigChestOpen()

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

Implements yaze::zelda3::DungeonState.

Definition at line 35 of file editor_dungeon_state.h.

References big_chest_open_.

◆ SetBigChestOpen()

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

Definition at line 36 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 39 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 47 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 51 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 59 of file editor_dungeon_state.h.

References door_switch_states_.

◆ IsWallMoved()

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

Implements yaze::zelda3::DungeonState.

Definition at line 64 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 72 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 76 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 84 of file editor_dungeon_state.h.

References floor_bombable_states_.

◆ IsRupeeFloorActive()

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

Implements yaze::zelda3::DungeonState.

Definition at line 88 of file editor_dungeon_state.h.

References rupee_floor_states_.

◆ SetRupeeFloorActive()

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

Definition at line 96 of file editor_dungeon_state.h.

References rupee_floor_states_.

◆ IsCrystalSwitchBlue()

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

Implements yaze::zelda3::DungeonState.

Definition at line 101 of file editor_dungeon_state.h.

References crystal_switch_blue_.

◆ SetCrystalSwitchBlue()

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

Definition at line 102 of file editor_dungeon_state.h.

References crystal_switch_blue_.

◆ Reset()

void yaze::zelda3::EditorDungeonState::Reset ( )
inline

Member Data Documentation

◆ rom_

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

Definition at line 117 of file editor_dungeon_state.h.

◆ game_data_

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

Definition at line 118 of file editor_dungeon_state.h.

◆ chest_states_

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

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

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

◆ door_states_

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

Definition at line 124 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 125 of file editor_dungeon_state.h.

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

◆ wall_moved_states_

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

Definition at line 127 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 128 of file editor_dungeon_state.h.

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

◆ rupee_floor_states_

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

Definition at line 129 of file editor_dungeon_state.h.

Referenced by IsRupeeFloorActive(), Reset(), and SetRupeeFloorActive().

◆ crystal_switch_blue_

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

Definition at line 131 of file editor_dungeon_state.h.

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


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