edu.ou.mancala
Class MancalaControllable
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MancalaControllable
public MancalaControllable(MancalaPlayer player,
GameBoard board)
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>