public class ClassicRogueMapGenerator extends Object
Constructor and Description |
---|
ClassicRogueMapGenerator(int horizontalRooms,
int verticalRooms,
int dungeonWidth,
int dungeonHeight,
int minRoomWidth,
int maxRoomWidth,
int minRoomHeight,
int maxRoomHeight)
Initializes the generator to turn out random dungeons within the specific
parameters.
|
ClassicRogueMapGenerator(int horizontalRooms,
int verticalRooms,
int dungeonWidth,
int dungeonHeight,
int minRoomWidth,
int maxRoomWidth,
int minRoomHeight,
int maxRoomHeight,
RNG rng)
Initializes the generator to turn out random dungeons within the specific
parameters.
|
Modifier and Type | Method and Description |
---|---|
Terrain[][] |
create()
Builds and returns a map in the Classic Rogue style.
|
char[][] |
generate()
Builds and returns a map in the Classic Rogue style, returned as a 2D char array.
|
public ClassicRogueMapGenerator(int horizontalRooms, int verticalRooms, int dungeonWidth, int dungeonHeight, int minRoomWidth, int maxRoomWidth, int minRoomHeight, int maxRoomHeight)
horizontalRooms
- How many rooms will be made horizontallyverticalRooms
- How many rooms will be made verticallydungeonWidth
- How wide the total dungeon will bedungeonHeight
- How high the total dungeon will beminRoomWidth
- The minimum width a room can bemaxRoomWidth
- The maximum width a room can beminRoomHeight
- The minimum height a room can bemaxRoomHeight
- The maximum height a room can bepublic ClassicRogueMapGenerator(int horizontalRooms, int verticalRooms, int dungeonWidth, int dungeonHeight, int minRoomWidth, int maxRoomWidth, int minRoomHeight, int maxRoomHeight, RNG rng)
horizontalRooms
- How many rooms will be made horizontallyverticalRooms
- How many rooms will be made verticallydungeonWidth
- How wide the total dungeon will bedungeonHeight
- How high the total dungeon will beminRoomWidth
- The minimum width a room can bemaxRoomWidth
- The maximum width a room can beminRoomHeight
- The minimum height a room can bemaxRoomHeight
- The maximum height a room can bepublic Terrain[][] create()
public char[][] generate()
Copyright © 2012–2016. All rights reserved.