Class Walker
Inheritance
System.Object
Walker
Assembly: Sylves.dll
Syntax
public class Walker : Object
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
Type |
Condition |
System.Exception |
|
MoveForward(Boolean)
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 |
System.Boolean |
bearLeft |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
TurnLeft()
Declaration
TurnRight()
Declaration