experimental
Class SimpleMoveReciever

java.lang.Object
  extended by experimental.SimpleMoveReciever
All Implemented Interfaces:
MoveReceiver, UntriedMoveReceiver

public final class SimpleMoveReciever
extends java.lang.Object
implements UntriedMoveReceiver

An UntriedMoveReceiver that executes moves on the world object passed to its constructor.

Author:
Luke

Field Summary
private  World w
           
 
Constructor Summary
SimpleMoveReciever(World w)
           
 
Method Summary
 void processMove(Move move)
           
 void processPreMove(PreMove pm)
           
 MoveStatus tryDoMove(Move move)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

w

private final World w
Constructor Detail

SimpleMoveReciever

public SimpleMoveReciever(World w)
Method Detail

tryDoMove

public MoveStatus tryDoMove(Move move)
Specified by:
tryDoMove in interface UntriedMoveReceiver

processMove

public void processMove(Move move)
Specified by:
processMove in interface MoveReceiver

processPreMove

public void processPreMove(PreMove pm)
Specified by:
processPreMove in interface UntriedMoveReceiver