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; } }
private bool isDoor(MazeElement element) { return element.GetType() == typeof(Door); }