#include <crumble_floor_view.h>

Public Member Functions | |
| void | Sync (const Rom *rom, const project::YazeProject *project, const zelda3::Room &room) |
| void | DrawControls (bool interactive) |
| bool | DrawCanvas (const gui::CanvasRuntime &rt, bool interactive, bool shortcut_focus) |
| void | Stop () |
| void | Reset () |
| bool | rehearsing () const |
| const CrumbleFloorModel & | model () const |
Private Attributes | |
| CrumbleFloorModel | model_ |
| CrumbleFloorModel::Words | words_ {} |
| const Rom * | rom_ = nullptr |
| const project::YazeProject * | project_ = nullptr |
| int | room_id_ = -1 |
| bool | supported_ = false |
| bool | rehearsing_ = false |
| std::string | message_ |
Friends | |
| class | CrumbleFloorViewTestPeer |
Definition at line 28 of file crumble_floor_view.h.
| void yaze::editor::CrumbleFloorView::Sync | ( | const Rom * | rom, |
| const project::YazeProject * | project, | ||
| const zelda3::Room & | room ) |
Definition at line 64 of file crumble_floor_view.cc.
References yaze::editor::HasOracleCrumbleTag(), yaze::zelda3::Room::id(), message_, model_, project_, yaze::editor::ReadCrumbleFloorWords(), rehearsing_, yaze::editor::CrumbleFloorModel::Reset(), rom_, room_id_, yaze::editor::CrumbleFloorModel::route(), supported_, and words_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas().
| void yaze::editor::CrumbleFloorView::DrawControls | ( | bool | interactive | ) |
Definition at line 82 of file crumble_floor_view.cc.
References yaze::gui::AutoRegisterLastItem(), yaze::editor::CrumbleFloorModel::Back(), message_, model_, rehearsing_, yaze::editor::CrumbleFloorModel::Reset(), supported_, and words_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas().

| bool yaze::editor::CrumbleFloorView::DrawCanvas | ( | const gui::CanvasRuntime & | rt, |
| bool | interactive, | ||
| bool | shortcut_focus ) |
Definition at line 135 of file crumble_floor_view.cc.
References yaze::gui::CanvasRuntime::canvas_p0, yaze::gui::CanvasRuntime::canvas_sz, yaze::editor::CrumbleFloorModel::cell(), yaze::editor::CrumbleFloorModel::current(), yaze::gui::CanvasRuntime::draw_list, yaze::editor::AgentUI::GetTheme(), yaze::gui::CanvasRuntime::hovered, yaze::editor::CrumbleFloorModel::kCellCount, yaze::editor::kCracked, yaze::editor::kIntact, yaze::editor::kOther, message_, model_, rehearsing_, yaze::editor::DungeonCanvasTransform::RoomPixelsToScreen(), yaze::editor::CrumbleFloorModel::route(), yaze::editor::DungeonCanvasTransform::scale(), yaze::gui::CanvasRuntime::scale, yaze::editor::DungeonCanvasTransform::ScreenToRoomTiles(), yaze::gui::CanvasRuntime::scrolling, yaze::editor::CrumbleFloorModel::Step(), and supported_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawCrumbleCanvas().
|
inline |
Definition at line 36 of file crumble_floor_view.h.
References rehearsing_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawConnectedRoomMatrix(), yaze::editor::DungeonCanvasViewer::DrawCrumbleCanvas(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), and yaze::editor::DungeonCanvasViewer::set_show_crumble_floor().
|
inline |
Definition at line 37 of file crumble_floor_view.h.
Referenced by yaze::editor::DungeonCanvasViewer::SetContext(), yaze::editor::DungeonCanvasViewer::SetProject(), and yaze::editor::DungeonCanvasViewer::SetRom().
|
inline |
Definition at line 38 of file crumble_floor_view.h.
References rehearsing_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::DungeonCanvasViewer::HandleRoomCanvasNavigation(), and yaze::editor::DungeonCanvasViewer::HasRoomCanvasShortcutFocusForFrame().
|
inline |
Definition at line 39 of file crumble_floor_view.h.
References model_.
|
friend |
Definition at line 42 of file crumble_floor_view.h.
|
private |
Definition at line 43 of file crumble_floor_view.h.
Referenced by DrawCanvas(), DrawControls(), model(), and Sync().
|
private |
Definition at line 44 of file crumble_floor_view.h.
Referenced by DrawControls(), and Sync().
|
private |
Definition at line 45 of file crumble_floor_view.h.
Referenced by Sync().
|
private |
Definition at line 46 of file crumble_floor_view.h.
Referenced by Sync().
|
private |
Definition at line 47 of file crumble_floor_view.h.
Referenced by Sync().
|
private |
Definition at line 48 of file crumble_floor_view.h.
Referenced by DrawCanvas(), DrawControls(), and Sync().
|
private |
Definition at line 49 of file crumble_floor_view.h.
Referenced by DrawCanvas(), DrawControls(), rehearsing(), Stop(), and Sync().
|
private |
Definition at line 50 of file crumble_floor_view.h.
Referenced by DrawCanvas(), DrawControls(), and Sync().