|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.game.boardgame.chess.ChessAgentSupport
public class ChessAgentSupport
Provides support for chess computer agents.
| Method Summary | |
|---|---|
IGridBoardAction |
createCastleAction(IChessAgent agent,
IChessEnvironment environment,
IntegerPosition kingFromPos,
IntegerPosition kingToPos)
Create a new castle action using the given parameters. |
protected IGridBoardAction |
createCastleAction(IChessAgent agent,
IChessEnvironment environment,
IntegerPosition kingFromPos,
IntegerPosition rookFromPos,
boolean isKingSide)
Create a new castle agent action using the given parameters. |
static ChessAgentSupport |
getInstance()
Return the singleton instance. |
List |
getPossibleActions(IChessAgent agent,
IChessEnvironment environment,
IChessAdjudicator adjudicator)
Return a list of possible agent actions. |
boolean |
isWhite(IChessAgent agent)
Return true if this agent's team is white. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ChessAgentSupport getInstance()
public IGridBoardAction createCastleAction(IChessAgent agent,
IChessEnvironment environment,
IntegerPosition kingFromPos,
IntegerPosition kingToPos)
agent - The agent making the action.environment - The current environment.kingFromPos - The King's from position.kingToPos - The King's to position.
public List getPossibleActions(IChessAgent agent,
IChessEnvironment environment,
IChessAdjudicator adjudicator)
environment - The current environment.adjudicator - Adjudicator for determining legal actions.public boolean isWhite(IChessAgent agent)
protected IGridBoardAction createCastleAction(IChessAgent agent,
IChessEnvironment environment,
IntegerPosition kingFromPos,
IntegerPosition rookFromPos,
boolean isKingSide)
agent - The agent making the action.environment - The current environment.kingFromPos - The King's from position.rookFromPos - The Rook's from position.isKingSide - Flag indicating if this is a King's side move.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |