public class LevelGenerator extends AbstractLevelGenerator
| Constructor and Description |
|---|
LevelGenerator(GameDescription game,
ElapsedCpuTimer elapsedTimer)
Initializing the level generator
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateLevel(GameDescription game,
ElapsedCpuTimer elapsedTimer)
Generate a level using GA in a fixed amount of time and
return the level in form of a string
|
java.util.HashMap<java.lang.Character,java.util.ArrayList<java.lang.String>> |
getLevelMapping()
get the current used level mapping to create the level string
|
public LevelGenerator(GameDescription game, ElapsedCpuTimer elapsedTimer)
game - game description objectelapsedTimer - amount of time for intiailizationpublic java.lang.String generateLevel(GameDescription game, ElapsedCpuTimer elapsedTimer)
generateLevel in class AbstractLevelGeneratorgame - the current game description objectelapsedTimer - the amount of time allowed for generationpublic java.util.HashMap<java.lang.Character,java.util.ArrayList<java.lang.String>> getLevelMapping()
getLevelMapping in class AbstractLevelGenerator