edu.ou.mancala
Class MancalaSimulator
java.lang.Object
edu.ou.mancala.MancalaSimulator
- All Implemented Interfaces:
- Simulator<ImmutableMancalaState>
public class MancalaSimulator
- extends java.lang.Object
- implements Simulator<ImmutableMancalaState>
- Author:
- zack
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MancalaSimulator
public MancalaSimulator()
initialize
public void initialize(java.io.File configfile)
- Specified by:
initialize
in interface Simulator<ImmutableMancalaState>
initialize
public void initialize(MancalaConfig conf)
extractControllables
public static java.util.Collection<Controllable> extractControllables(GameBoard game)
shutdown
public void shutdown()
- Specified by:
shutdown
in interface Simulator<ImmutableMancalaState>
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface Simulator<ImmutableMancalaState>
advance
public void advance()
- Specified by:
advance
in interface Simulator<ImmutableMancalaState>
getState
public ImmutableMancalaState getState()
- Specified by:
getState
in interface Simulator<ImmutableMancalaState>
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<ImmutableMancalaState>
- 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<ImmutableMancalaState>
- Returns:
getGUI
public javax.swing.JComponent getGUI()
- Specified by:
getGUI
in interface Simulator<ImmutableMancalaState>