org.vizzini.game.boardgame.chess.action
Class ChessActionGenerator

java.lang.Object
  extended by org.vizzini.game.action.AbstractActionGenerator
      extended by org.vizzini.game.boardgame.chess.action.ChessActionGenerator
All Implemented Interfaces:
IActionGenerator

public class ChessActionGenerator
extends AbstractActionGenerator

Provides an action generator for 3D chess.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
ChessActionGenerator()
           
 
Method Summary
 Collection generate(IAgent agent, IEnvironment environment, IAdjudicator adjudicator)
          Generate the collection of legal actions using the given parameters.
protected  Comparator getActionComparator(IChessEnvironment board)
           
 boolean isSorted()
           
 void setSorted(boolean isSorted)
           
 
Methods inherited from class org.vizzini.game.action.AbstractActionGenerator
configure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChessActionGenerator

public ChessActionGenerator()
Method Detail

generate

public Collection generate(IAgent agent,
                           IEnvironment environment,
                           IAdjudicator adjudicator)
Generate the collection of legal actions using the given parameters.

Parameters:
agent - The agent originating the actions.
environment - Environment.
adjudicator - Adjudicator.
Since:
v0.3

isSorted

public boolean isSorted()
Returns:
Return isSorted.
Since:
v0.3

setSorted

public void setSorted(boolean isSorted)
Parameters:
isSorted - The isSorted to set.
Since:
v0.3

getActionComparator

protected Comparator getActionComparator(IChessEnvironment board)
Returns:
Return actionComparator.
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02