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()  

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • seed

      public int seed
    • powerPillsEnabled

      public boolean powerPillsEnabled
      Whether POWER PILLS should be present within the environment.
    • totalPills

      public double totalPills
      Total percentage of PILLS present within the level. If < 1, some (random) pills will be taken away.
    • levelsToPlay

      public int levelsToPlay
      How many levels Ms PacMan may play (-1 => unbound).
    • lives

      public int lives
      How many lives to start with.
  • Constructor Details

  • Method Details