edu.ou.mancala
Class MancalaControllable

java.lang.Object
  extended by edu.ou.mancala.MancalaControllable
All Implemented Interfaces:
Controllable<java.lang.Integer,ImmutableMancalaState,AbstractMancalaClient>

public class MancalaControllable
extends java.lang.Object
implements Controllable<java.lang.Integer,ImmutableMancalaState,AbstractMancalaClient>

Author:
Derek

Constructor Summary
MancalaControllable(MancalaPlayer player, GameBoard board)
           
 
Method Summary
 void endAction(ImmutableMancalaState state, AbstractMancalaClient client)
           
 java.lang.String getName()
          Return this controllable's unique identifying name.
 Record getRecord()
          Return this controllable's statistic information.
 boolean isLegal(java.lang.Integer action)
          Indicates whether the given action is legal for the controllable.
 void startAction(ImmutableMancalaState state, AbstractMancalaClient client)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MancalaControllable

public MancalaControllable(MancalaPlayer player,
                           GameBoard board)
Method Detail

isLegal

public boolean isLegal(java.lang.Integer action)
Description copied from interface: Controllable
Indicates whether the given action is legal for the controllable.

Specified by:
isLegal in interface Controllable<java.lang.Integer,ImmutableMancalaState,AbstractMancalaClient>
Returns:

getName

public java.lang.String getName()
Description copied from interface: Controllable
Return this controllable's unique identifying name.

Specified by:
getName in interface Controllable<java.lang.Integer,ImmutableMancalaState,AbstractMancalaClient>
Returns:

getRecord

public Record getRecord()
Description copied from interface: Controllable
Return this controllable's statistic information.

Specified by:
getRecord in interface Controllable<java.lang.Integer,ImmutableMancalaState,AbstractMancalaClient>
Returns:

startAction

public void startAction(ImmutableMancalaState state,
                        AbstractMancalaClient client)
Specified by:
startAction in interface Controllable<java.lang.Integer,ImmutableMancalaState,AbstractMancalaClient>

endAction

public void endAction(ImmutableMancalaState state,
                      AbstractMancalaClient client)
Specified by:
endAction in interface Controllable<java.lang.Integer,ImmutableMancalaState,AbstractMancalaClient>