edu.ou.mancala
Class MancalaSimulator

java.lang.Object
  extended by edu.ou.mancala.MancalaSimulator
All Implemented Interfaces:
Simulator<ImmutableMancalaState>

public class MancalaSimulator
extends java.lang.Object
implements Simulator<ImmutableMancalaState>

Author:
zack

Constructor Summary
MancalaSimulator()
           
 
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()
           
 ImmutableMancalaState getState()
           
 void initialize(java.io.File configfile)
           
 void initialize(MancalaConfig conf)
           
 boolean isRunning()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MancalaSimulator

public MancalaSimulator()
Method Detail

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>