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 |
| 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 | |
| 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 > | wall_moved_states_ |
| std::map< int, bool > | floor_bombable_states_ |
| std::map< int, bool > | rupee_floor_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 23 of file editor_dungeon_state.h.
References chest_states_.
|
inline |
Definition at line 31 of file editor_dungeon_state.h.
References chest_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 35 of file editor_dungeon_state.h.
References big_chest_open_.
|
inline |
Definition at line 36 of file editor_dungeon_state.h.
References big_chest_open_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 39 of file editor_dungeon_state.h.
References door_states_.
|
inline |
Definition at line 47 of file editor_dungeon_state.h.
References door_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 51 of file editor_dungeon_state.h.
References door_switch_states_.
|
inline |
Definition at line 59 of file editor_dungeon_state.h.
References door_switch_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 64 of file editor_dungeon_state.h.
References wall_moved_states_.
|
inline |
Definition at line 72 of file editor_dungeon_state.h.
References wall_moved_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 76 of file editor_dungeon_state.h.
References floor_bombable_states_.
|
inline |
Definition at line 84 of file editor_dungeon_state.h.
References floor_bombable_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 88 of file editor_dungeon_state.h.
References rupee_floor_states_.
|
inline |
Definition at line 96 of file editor_dungeon_state.h.
References rupee_floor_states_.
|
inlineoverridevirtual |
Implements yaze::zelda3::DungeonState.
Definition at line 101 of file editor_dungeon_state.h.
References crystal_switch_blue_.
|
inline |
Definition at line 102 of file editor_dungeon_state.h.
References crystal_switch_blue_.
|
inline |
Definition at line 105 of file editor_dungeon_state.h.
References big_chest_open_, chest_states_, crystal_switch_blue_, door_states_, door_switch_states_, floor_bombable_states_, rupee_floor_states_, and wall_moved_states_.
|
private |
Definition at line 117 of file editor_dungeon_state.h.
|
private |
Definition at line 118 of file editor_dungeon_state.h.
|
private |
Definition at line 121 of file editor_dungeon_state.h.
Referenced by IsChestOpen(), Reset(), and SetChestOpen().
|
private |
Definition at line 122 of file editor_dungeon_state.h.
Referenced by IsBigChestOpen(), Reset(), and SetBigChestOpen().
|
private |
Definition at line 124 of file editor_dungeon_state.h.
Referenced by IsDoorOpen(), Reset(), and SetDoorOpen().
|
private |
Definition at line 125 of file editor_dungeon_state.h.
Referenced by IsDoorSwitchActive(), Reset(), and SetDoorSwitchActive().
|
private |
Definition at line 127 of file editor_dungeon_state.h.
Referenced by IsWallMoved(), Reset(), and SetWallMoved().
|
private |
Definition at line 128 of file editor_dungeon_state.h.
Referenced by IsFloorBombable(), Reset(), and SetFloorBombable().
|
private |
Definition at line 129 of file editor_dungeon_state.h.
Referenced by IsRupeeFloorActive(), Reset(), and SetRupeeFloorActive().
|
private |
Definition at line 131 of file editor_dungeon_state.h.
Referenced by IsCrystalSwitchBlue(), Reset(), and SetCrystalSwitchBlue().