A maze is built out of cells. Each cell is built out of 4 boundaries where a nine patch can be derived from.
More...
List of all members.
Public Types |
enum | Paths {
Up,
Down,
Right,
Left,
None
} |
| Paths. More...
|
Public Member Functions |
| MFCell (MFPosition position) |
| Initializes a new instance of the MFCell class.
|
void | Reset () |
| Reset a cell so that all walls are intact and not visited
|
bool[] | AsNinepatch () |
| Derive a ninepatch from the current cell setup.
|
Properties |
bool | this[int index] [get, set] |
| Provides indexing to the boolean fields in the cell
|
MFPosition | Position [get] |
| The current location on the two-dimensional container
|
Detailed Description
A maze is built out of cells. Each cell is built out of 4 boundaries where a nine patch can be derived from.
- Exceptions:
-
ArgumentOutOfRangeException | Is thrown when the argument out of range exception. |
Member Enumeration Documentation
Constructor & Destructor Documentation
Initializes a new instance of the MFCell class.
- Parameters:
-
Member Function Documentation
Derive a ninepatch from the current cell setup.
- Returns:
- The ninepatch as an array of bool. If true then there's a block, if not it's walkable and there is no block.
Reset a cell so that all walls are intact and not visited
Member Data Documentation
List<Vector3> localNinePatchPositions |
Convenience field to store the positions of each element of the ninepatch in local space.
Convenience field to store the position in local space.
The direction in the path it has.
Gets or sets a reference to the previous MFCell in the found path chain
visited: used by search algorithm.
Property Documentation
The current location on the two-dimensional container
Provides indexing to the boolean fields in the cell
- Parameters:
-
index | 0 leftW, 1 rightW, 2 UpW, 3 downW, 4 visited |
- Returns:
The documentation for this class was generated from the following file: