Exemplo n.º 1
0
        public bool Walk(Direction dir) {
            if (!CanWalk(dir))
                return false;

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

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

            return true;
        }
Exemplo n.º 2
0
 public MazeWalker(MazeCell startCell)
 {
     position      = startCell;
     position.Seen = true;
 }
Exemplo n.º 3
0
 public MazeWalker(MazeCell startCell) {
     position = startCell;
     position.Seen = true;
 }