com.editev.chess
Class EnumeratedGame.ConstructMovesFromPieces

java.lang.Object
  |
  +--com.editev.chess.EnumeratedGame.ConstructMovesFromPieces
Enclosing class:
EnumeratedGame

class EnumeratedGame.ConstructMovesFromPieces
extends java.lang.Object
implements com.editev.util.Function

Constructs a list of Piece moves from a Square.


Inner classes inherited from class com.editev.util.Function
com.editev.util.Function.Catch, com.editev.util.Function.Compose, com.editev.util.Function.Evaluate, com.editev.util.Function.Identity, com.editev.util.Function.Loop, com.editev.util.Function.Pair, com.editev.util.Function.Reference, com.editev.util.Function.Try
 
Fields inherited from interface com.editev.util.Function
IDENTITY
 
Constructor Summary
(package private) EnumeratedGame.ConstructMovesFromPieces()
           
 
Method Summary
 java.lang.Object eval(java.lang.Object discard)
          Create a new emumeration of the Pieces
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

EnumeratedGame.ConstructMovesFromPieces

EnumeratedGame.ConstructMovesFromPieces()
Method Detail

eval

public java.lang.Object eval(java.lang.Object discard)
Create a new emumeration of the Pieces
Specified by:
eval in interface com.editev.util.Function
Parameters:
discard - ignore this: we look at the central iterator Move.
Returns:
an enumeration of moves for the piece moving.