#include <crumble_floor_model.h>
Public Types | |
| using | Words = std::array<uint16_t, kCellCount> |
Public Member Functions | |
| void | Reset (const Words &words) |
| absl::Status | Step (int x, int y) |
| void | Back () |
| CrumbleFloorCell | cell (int index) const |
| const std::vector< int > & | route () const |
| std::optional< int > | current () const |
Static Public Attributes | |
| static constexpr int | kWidth = 32 |
| static constexpr int | kCellCount = kWidth * kWidth |
| static constexpr int | kMaxSteps = 512 |
Private Member Functions | |
| void | Rebuild () |
Private Attributes | |
| Words | words_ {} |
| std::array< CrumbleFloorCell, kCellCount > | cells_ {} |
| std::vector< int > | route_ |
Definition at line 20 of file crumble_floor_model.h.
| using yaze::editor::CrumbleFloorModel::Words = std::array<uint16_t, kCellCount> |
Definition at line 25 of file crumble_floor_model.h.
| void yaze::editor::CrumbleFloorModel::Reset | ( | const Words & | words | ) |
Definition at line 31 of file crumble_floor_model.cc.
References Rebuild(), route_, and words_.
Referenced by yaze::editor::CrumbleFloorView::DrawControls(), and yaze::editor::CrumbleFloorView::Sync().

| absl::Status yaze::editor::CrumbleFloorModel::Step | ( | int | x, |
| int | y ) |
Definition at line 37 of file crumble_floor_model.cc.
References cells_, current(), kMaxSteps, yaze::editor::kOther, yaze::editor::kPit, kWidth, and route_.
Referenced by yaze::editor::CrumbleFloorView::DrawCanvas().

| void yaze::editor::CrumbleFloorModel::Back | ( | ) |
Definition at line 70 of file crumble_floor_model.cc.
References Rebuild(), and route_.
Referenced by yaze::editor::CrumbleFloorView::DrawControls().

|
inline |
Definition at line 30 of file crumble_floor_model.h.
References cells_.
Referenced by yaze::editor::CrumbleFloorView::DrawCanvas().
|
inline |
Definition at line 31 of file crumble_floor_model.h.
References route_.
Referenced by yaze::editor::CrumbleFloorView::DrawCanvas(), and yaze::editor::CrumbleFloorView::Sync().
|
inline |
Definition at line 32 of file crumble_floor_model.h.
References route_.
Referenced by yaze::editor::CrumbleFloorView::DrawCanvas(), and Step().
|
private |
Definition at line 77 of file crumble_floor_model.cc.
References cells_, yaze::editor::ClassifyCrumbleFloorWord(), kCellCount, route_, and words_.
Referenced by Back(), and Reset().

|
staticconstexpr |
Definition at line 22 of file crumble_floor_model.h.
Referenced by Step().
Definition at line 23 of file crumble_floor_model.h.
Referenced by yaze::editor::CrumbleFloorView::DrawCanvas(), and Rebuild().
|
staticconstexpr |
Definition at line 24 of file crumble_floor_model.h.
Referenced by Step().
|
private |
Definition at line 38 of file crumble_floor_model.h.
|
private |
Definition at line 39 of file crumble_floor_model.h.
|
private |