edu.ou.pacman
Class PacmanSimulator

java.lang.Object
  extended by edu.ou.pacman.PacmanSimulator
All Implemented Interfaces:
Simulator<ImmutablePacmanState>

public class PacmanSimulator
extends java.lang.Object
implements Simulator<ImmutablePacmanState>

Author:
zack

Constructor Summary
PacmanSimulator()
           
 
Method Summary
 void advance()
           
static java.util.Collection<Controllable> extractControllables(GameBoard game)
           
 java.util.Collection<Controllable> getAllControllables()
          Return all of the simulator's controllables, even those that are not currently active.
 java.util.Collection<Controllable> getControllables()
          Return the simulator's currently active controllables
 javax.swing.JComponent getGUI()
           
 ImmutablePacmanState getState()
           
 void initialize(java.io.File configfile)
           
 void initialize(PacmanConfig conf)
           
 boolean isRunning()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacmanSimulator

public PacmanSimulator()
Method Detail

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>