edu.ou.pacman
Class PacmanSimulator
java.lang.Object
edu.ou.pacman.PacmanSimulator
- All Implemented Interfaces:
- Simulator<ImmutablePacmanState>
public class PacmanSimulator
- extends java.lang.Object
- implements Simulator<ImmutablePacmanState>
- Author:
- zack
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PacmanSimulator
public PacmanSimulator()
initialize
public void initialize(java.io.File configfile)
- Specified by:
initialize
in interface Simulator<ImmutablePacmanState>
initialize
public void initialize(PacmanConfig conf)
extractControllables
public static java.util.Collection<Controllable> extractControllables(GameBoard game)
shutdown
public void shutdown()
- Specified by:
shutdown
in interface Simulator<ImmutablePacmanState>
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface Simulator<ImmutablePacmanState>
advance
public void advance()
- Specified by:
advance
in interface Simulator<ImmutablePacmanState>
getState
public ImmutablePacmanState getState()
- Specified by:
getState
in interface Simulator<ImmutablePacmanState>
getControllables
public java.util.Collection<Controllable> getControllables()
- Description copied from interface:
Simulator
- Return the simulator's currently active controllables
- Specified by:
getControllables
in interface Simulator<ImmutablePacmanState>
- Returns:
getAllControllables
public java.util.Collection<Controllable> getAllControllables()
- Description copied from interface:
Simulator
- Return all of the simulator's controllables, even those that are not
currently active.
- Specified by:
getAllControllables
in interface Simulator<ImmutablePacmanState>
- Returns:
getGUI
public javax.swing.JComponent getGUI()
- Specified by:
getGUI
in interface Simulator<ImmutablePacmanState>