public bool Walk(Direction dir) {
            if (!CanWalk(dir))
                return false;

            position = position[dir].OtherSide;
            position.Seen = true;

            if (OnChange != null)
                OnChange(this);

            return true;
        }
Beispiel #2
0
 public MazeWalker(MazeCell startCell)
 {
     position      = startCell;
     position.Seen = true;
 }
 public MazeWalker(MazeCell startCell) {
     position = startCell;
     position.Seen = true;
 }