Class MazeCellContent
The MazeCellContent class defines the content in a maze cell
Inheritance
MazeCellContent
Implements
Inherited Members
Namespace: Maze.Maui.App
Assembly: Maze.Maui.App.dll
Syntax
public class MazeCellContent : ContentView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Constructors
MazeCellContent(CellType)
Constructor
Declaration
public MazeCellContent(Maze.CellType cellType)
Parameters
| Type | Name | Description |
|---|---|---|
| Maze.CellType | cellType | Cell type |
Properties
CellType
The cell type
Declaration
public Maze.CellType CellType { get; }
Property Value
| Type | Description |
|---|---|
| Maze.CellType | Cell type |
ContainsSolutionPath
Indicates whether the cell contains a solution path
Declaration
public bool ContainsSolutionPath { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsEmpty
Indicates whether the cell is empty
Declaration
public bool IsEmpty { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsFinish
Indicates whether the cell is a finish cell
Declaration
public bool IsFinish { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsStart
Indicates whether the cell is a start cell
Declaration
public bool IsStart { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsStartOrFinish
Indicates whether the cell is a start or finish cell
Declaration
public bool IsStartOrFinish { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
SolutionPathDirection
The solution path direction associated with the cell (if any)
Declaration
public MazeCellContent.PathDirection SolutionPathDirection { get; }
Property Value
| Type | Description |
|---|---|
| MazeCellContent.PathDirection | Path direction |
Methods
SetSolutionPath(PathDirection)
Sets the solution path direction in the cell
Declaration
public void SetSolutionPath(MazeCellContent.PathDirection pathDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| MazeCellContent.PathDirection | pathDirection | Path direction |