private static void PlaceEdge(int[,] MapGrid, int X, int Y, RMUD.Direction Direction) { if (X < 1 || X >= MapWidth - 1 || Y < 1 || Y >= MapHeight - 1) { return; } switch (Direction) { case RMUD.Direction.NORTH: case RMUD.Direction.SOUTH: MapGrid[X, Y] = '|'; break; case RMUD.Direction.EAST: case RMUD.Direction.WEST: MapGrid[X, Y] = '-'; break; case RMUD.Direction.NORTHEAST: case RMUD.Direction.SOUTHWEST: MapGrid[X, Y] = '/'; break; case RMUD.Direction.NORTHWEST: case RMUD.Direction.SOUTHEAST: MapGrid[X, Y] = '\\'; break; default: MapGrid[X, Y] = '*'; break; } }
private static void PlaceEdge(int[,] MapGrid, int X, int Y, RMUD.Direction Direction) { switch (Direction) { case RMUD.Direction.NORTH: PlaceSymbol(MapGrid, X + RoomMidWidth, Y, '|'); break; case RMUD.Direction.SOUTH: PlaceSymbol(MapGrid, X + RoomMidWidth, Y + RoomHeight - 1, '|'); break; case RMUD.Direction.EAST: PlaceSymbol(MapGrid, X + RoomWidth - 1, Y + RoomMidHeight, '-'); break; case RMUD.Direction.WEST: PlaceSymbol(MapGrid, X, Y + RoomMidHeight, '-'); break; case RMUD.Direction.NORTHEAST: PlaceSymbol(MapGrid, X + RoomWidth - 1, Y, '/'); break; case RMUD.Direction.SOUTHWEST: PlaceSymbol(MapGrid, X, Y + RoomHeight - 1, '/'); break; case RMUD.Direction.NORTHWEST: PlaceSymbol(MapGrid, X, Y, '\\'); break; case RMUD.Direction.SOUTHEAST: PlaceSymbol(MapGrid, X + RoomWidth - 1, Y + RoomHeight - 1, '\\'); break; default: //PlaceSymbol(MapGrid, X + 2, Y, '|'); break; } }