Package game
Class PacManSimulator.GameConfig
java.lang.Object
game.PacManSimulator.GameConfig
- Enclosing class:
- PacManSimulator
public static class PacManSimulator.GameConfig
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description int
levelsToPlay
How many levels Ms PacMan may play (-1 => unbound).int
lives
How many lives to start with.boolean
powerPillsEnabled
Whether POWER PILLS should be present within the environment.int
seed
double
totalPills
Total percentage of PILLS present within the level. -
Constructor Summary
Constructors Constructor Description GameConfig()
-
Method Summary
Modifier and Type Method Description java.lang.String
asString()
PacManSimulator.GameConfig
clone()
void
fromString(java.lang.String line)
java.lang.String
getCSV()
java.lang.String
getCSVHeader()
-
Field Details
-
seed
public int seed -
powerPillsEnabled
public boolean powerPillsEnabledWhether POWER PILLS should be present within the environment. -
totalPills
public double totalPillsTotal percentage of PILLS present within the level. If < 1, some (random) pills will be taken away. -
levelsToPlay
public int levelsToPlayHow many levels Ms PacMan may play (-1 => unbound). -
lives
public int livesHow many lives to start with.
-
-
Constructor Details
-
GameConfig
public GameConfig()
-
-
Method Details
-
clone
- Overrides:
clone
in classjava.lang.Object
-
asString
public java.lang.String asString() -
fromString
public void fromString(java.lang.String line) -
getCSVHeader
public java.lang.String getCSVHeader() -
getCSV
public java.lang.String getCSV()
-