Editor implementation of DungeonState. More...
#include <editor_dungeon_state.h>


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 | |
| Rom * | rom_ |
| GameData * | game_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 |
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.
Definition at line 20 of file editor_dungeon_state.h.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 24 of file editor_dungeon_state.h.
References chest_states_.
Referenced by IsBigChestOpen().
|
inline |
Definition at line 32 of file editor_dungeon_state.h.
References chest_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 36 of file editor_dungeon_state.h.
References big_chest_open_.
|
inlineoverridevirtual |
Reimplemented from yaze::zelda3::DungeonState.
Definition at line 37 of file editor_dungeon_state.h.
References big_chest_open_, and IsChestOpen().

|
inline |
Definition at line 40 of file editor_dungeon_state.h.
References big_chest_open_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 43 of file editor_dungeon_state.h.
References door_states_.
|
inline |
Definition at line 51 of file editor_dungeon_state.h.
References door_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 55 of file editor_dungeon_state.h.
References door_switch_states_.
|
inline |
Definition at line 63 of file editor_dungeon_state.h.
References door_switch_states_.
|
inlineoverridevirtual |
Reimplemented from yaze::zelda3::DungeonState.
Definition at line 67 of file editor_dungeon_state.h.
References water_face_active_states_.
|
inline |
Definition at line 75 of file editor_dungeon_state.h.
References water_face_active_states_.
|
inlineoverridevirtual |
Reimplemented from yaze::zelda3::DungeonState.
Definition at line 79 of file editor_dungeon_state.h.
References dam_floodgate_open_states_.
|
inline |
Definition at line 87 of file editor_dungeon_state.h.
References dam_floodgate_open_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 92 of file editor_dungeon_state.h.
References wall_moved_states_.
|
inline |
Definition at line 100 of file editor_dungeon_state.h.
References wall_moved_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 104 of file editor_dungeon_state.h.
References floor_bombable_states_.
|
inline |
Definition at line 112 of file editor_dungeon_state.h.
References floor_bombable_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 116 of file editor_dungeon_state.h.
References rupee_floor_cleared_states_.
|
inline |
Definition at line 124 of file editor_dungeon_state.h.
References rupee_floor_cleared_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 129 of file editor_dungeon_state.h.
References crystal_switch_blue_.
|
inline |
Definition at line 130 of file editor_dungeon_state.h.
References crystal_switch_blue_.
|
inline |
Definition at line 133 of file editor_dungeon_state.h.
References big_chest_open_, chest_states_, crystal_switch_blue_, dam_floodgate_open_states_, door_states_, door_switch_states_, floor_bombable_states_, rupee_floor_cleared_states_, wall_moved_states_, and water_face_active_states_.
|
private |
Definition at line 147 of file editor_dungeon_state.h.
|
private |
Definition at line 148 of file editor_dungeon_state.h.
|
private |
Definition at line 151 of file editor_dungeon_state.h.
Referenced by IsChestOpen(), Reset(), and SetChestOpen().
|
private |
Definition at line 152 of file editor_dungeon_state.h.
Referenced by IsBigChestOpen(), IsBigChestOpen(), Reset(), and SetBigChestOpen().
|
private |
Definition at line 154 of file editor_dungeon_state.h.
Referenced by IsDoorOpen(), Reset(), and SetDoorOpen().
|
private |
Definition at line 155 of file editor_dungeon_state.h.
Referenced by IsDoorSwitchActive(), Reset(), and SetDoorSwitchActive().
|
private |
Definition at line 156 of file editor_dungeon_state.h.
Referenced by IsWaterFaceActive(), Reset(), and SetWaterFaceActive().
|
private |
Definition at line 157 of file editor_dungeon_state.h.
Referenced by IsDamFloodgateOpen(), Reset(), and SetDamFloodgateOpen().
|
private |
Definition at line 159 of file editor_dungeon_state.h.
Referenced by IsWallMoved(), Reset(), and SetWallMoved().
|
private |
Definition at line 160 of file editor_dungeon_state.h.
Referenced by IsFloorBombable(), Reset(), and SetFloorBombable().
|
private |
Definition at line 161 of file editor_dungeon_state.h.
Referenced by IsRupeeFloorCleared(), Reset(), and SetRupeeFloorCleared().
|
private |
Definition at line 163 of file editor_dungeon_state.h.
Referenced by IsCrystalSwitchBlue(), Reset(), and SetCrystalSwitchBlue().