Пример #1
0
 public void SetSide(directions side, MazeElement element)
 {
     switch (side)
     {
         case directions.north:
             northWall = element;
             break;
         case directions.east:
             eastWall = element;
             break;
         case directions.south:
             southWall = element;
             break;
         case directions.west:
             westWall = element;
             break;
     }
 }
Пример #2
0
 private bool isDoor(MazeElement element)
 {
     return element.GetType() == typeof(Door);
 }