yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_state.h
Go to the documentation of this file.
1#ifndef YAZE_ZELDA3_DUNGEON_DUNGEON_STATE_H
2#define YAZE_ZELDA3_DUNGEON_DUNGEON_STATE_H
3
4#include <cstdint>
5
6namespace yaze {
7namespace zelda3 {
8
17 public:
18 virtual ~DungeonState() = default;
19
20 // Chest State
21 virtual bool IsChestOpen(int room_id, int chest_index) const = 0;
22 virtual bool IsBigChestOpen() const = 0;
23
24 // Door State
25 virtual bool IsDoorOpen(int room_id, int door_index) const = 0;
26 virtual bool IsDoorSwitchActive(int room_id) const = 0;
27
28 // Object State
29 virtual bool IsWallMoved(int room_id) const = 0;
30 virtual bool IsFloorBombable(int room_id) const = 0;
31 virtual bool IsRupeeFloorActive(int room_id) const = 0;
32
33 // General Flags
34 virtual bool IsCrystalSwitchBlue() const = 0;
35};
36
37} // namespace zelda3
38} // namespace yaze
39
40#endif // YAZE_ZELDA3_DUNGEON_DUNGEON_STATE_H
Interface for accessing dungeon game state.
virtual bool IsFloorBombable(int room_id) const =0
virtual bool IsWallMoved(int room_id) const =0
virtual bool IsChestOpen(int room_id, int chest_index) const =0
virtual bool IsDoorSwitchActive(int room_id) const =0
virtual bool IsDoorOpen(int room_id, int door_index) const =0
virtual bool IsCrystalSwitchBlue() const =0
virtual bool IsRupeeFloorActive(int room_id) const =0
virtual ~DungeonState()=default
virtual bool IsBigChestOpen() const =0