|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.game.boardgame.action.AbstractGridBoardActionPool
org.vizzini.game.boardgame.chess.action.EnPassantCaptureActionPool
final class EnPassantCaptureActionPool
Provides a pool for move capture action objects.
| Constructor Summary | |
|---|---|
EnPassantCaptureActionPool()
Construct this object. |
|
EnPassantCaptureActionPool(int maxSize)
Construct this object with the given parameter. |
|
| Method Summary | |
|---|---|
EnPassantCaptureAction |
acquire(IChessEnvironment board,
IChessAgent agent,
IntegerPosition fromPosition,
IntegerPosition capturePosition,
IntegerPosition toPosition)
Return an instance from the reusable object pool, creating it if necessary. |
void |
release(IAction action)
Return an instance to the reusable object pool. |
| Methods inherited from class org.vizzini.game.boardgame.action.AbstractGridBoardActionPool |
|---|
getPool, incrementCreationCount, report, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnPassantCaptureActionPool()
public EnPassantCaptureActionPool(int maxSize)
maxSize - Guess at the maximum size of the pool. The pool will
expand as necessary.| Method Detail |
|---|
public EnPassantCaptureAction acquire(IChessEnvironment board,
IChessAgent agent,
IntegerPosition fromPosition,
IntegerPosition capturePosition,
IntegerPosition toPosition)
public void release(IAction action)
release in class AbstractGridBoardActionPoolaction - The instance to release.
|
||||||||||
| 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 |