Class Walker
Assembly: Sylves.dll
Syntax
Constructors
Walker(IGrid, Cell, CellDir)
Declaration
public Walker(IGrid grid, Cell cell, CellDir dir)
Parameters
Properties
Cell
Declaration
public Cell Cell { get; set; }
Property Value
Dir
Declaration
public CellDir Dir { get; set; }
Property Value
Grid
Declaration
public IGrid Grid { get; set; }
Property Value
Methods
MoveForward()
Moves the walker one step in the current direction, updating Cell and Dir.
Declaration
public void MoveForward()
Exceptions
MoveForward(bool)
As MoveForward, but handles the case of odd sided polygons by picking either the
left or right direction.
Declaration
public void MoveForward(bool bearLeft)
Parameters
| Type |
Name |
Description |
| bool |
bearLeft |
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
TurnLeft()
Declaration
TurnRight()
Declaration