P - the generic typeS - the generic typepublic interface Checkerboard<P extends Player<P,S>,S> extends Players<P>, org.refcodes.observer.Observable<CheckerboardObserver<P,S>>, org.refcodes.graphical.GridDimension.GridDimensionProperty, org.refcodes.graphical.GridDimension.GridDimensionBuilder<Checkerboard<P,S>>, org.refcodes.graphical.GridModeAccessor.GridModeProperty, org.refcodes.graphical.GridModeAccessor.GridModeBuilder<Checkerboard<P,S>>, org.refcodes.component.Component
org.refcodes.graphical.GridDimension.GridDimensionBuilder<B extends org.refcodes.graphical.GridDimension.GridDimensionBuilder<B>>, org.refcodes.graphical.GridDimension.GridDimensionMutator, org.refcodes.graphical.GridDimension.GridDimensionProperty, org.refcodes.graphical.GridDimension.GridDimensionPropertyBuilderorg.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B extends org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B>>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthPropertyorg.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B extends org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B>>, org.refcodes.graphical.GridHeightAccessor.GridHeightMutator, org.refcodes.graphical.GridHeightAccessor.GridHeightPropertyorg.refcodes.graphical.GridModeAccessor.GridModeBuilder<B extends org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B>>, org.refcodes.graphical.GridModeAccessor.GridModeMutator, org.refcodes.graphical.GridModeAccessor.GridModeProperty| Modifier and Type | Method and Description |
|---|---|
P |
atBottomLeftOf(org.refcodes.graphical.Position aPos)
At bottom left of.
|
P |
atBottomOf(org.refcodes.graphical.Position aPos)
At bottom of.
|
P |
atBottomRightOf(org.refcodes.graphical.Position aPos)
At bottom right of.
|
P |
atLeftOf(org.refcodes.graphical.Position aPos)
At left of.
|
P |
atPosition(int aPosX,
int aPosY)
At position.
|
P |
atPosition(org.refcodes.graphical.Position aPos)
At position.
|
P |
atRightOf(org.refcodes.graphical.Position aPos)
At right of.
|
P |
atTopLeftOf(org.refcodes.graphical.Position aPos)
At top left of.
|
P |
atTopOf(org.refcodes.graphical.Position aPos)
At top of.
|
P |
atTopRightOf(org.refcodes.graphical.Position aPos)
At top right of.
|
void |
forEach(Consumer<P> aConsumer)
Performs the given action for each
Player on the
Checkerboard until all players have been processed or the action
throws an exception. |
Map<Integer,P> |
getColumn(int aColumn)
Gets the column.
|
Map<Integer,P> |
getRow(int aRow)
Gets the row.
|
boolean |
hasAtBottomLeftOf(org.refcodes.graphical.Position aPos)
Checks for at bottom left of.
|
boolean |
hasAtBottomOf(org.refcodes.graphical.Position aPos)
Checks for at bottom of.
|
boolean |
hasAtBottomRightOf(org.refcodes.graphical.Position aPos)
Checks for at bottom right of.
|
boolean |
hasAtLeftOf(org.refcodes.graphical.Position aPos)
Checks for at left of.
|
boolean |
hasAtPosition(int aPosX,
int aPosY)
Checks for at position.
|
boolean |
hasAtPosition(org.refcodes.graphical.Position aPos)
Checks for at position.
|
boolean |
hasAtRightOf(org.refcodes.graphical.Position aPos)
Checks for at right of.
|
boolean |
hasAtTopLeftOf(org.refcodes.graphical.Position aPos)
Checks for at top left of.
|
boolean |
hasAtTopOf(org.refcodes.graphical.Position aPos)
Checks for at top of.
|
boolean |
hasAtTopRightOf(org.refcodes.graphical.Position aPos)
Checks for at top right of.
|
clearPlayers, getPlayers, hasPlayer, hasPlayers, playerCount, players, putPlayer, removePlayerhasObserverSubscription, subscribeObserver, unsubscribeObserverequals, isInBounds, isInBounds, isInHeight, isInWidthsetGridDimension, setGridDimension, setGridDimensionsetGridWidthsetGridHeightwithGridDimension, withGridDimension, withGridDimensionwithGridWidthwithGridHeightsetGridModeboolean hasAtPosition(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtPosition(int aPosX,
int aPosY)
throws IndexOutOfBoundsException
aPosX - the pos XaPosY - the pos YIndexOutOfBoundsException - the index out of bounds exceptionP atPosition(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atPosition(int aPosX, int aPosY) throws IndexOutOfBoundsException
aPosX - the pos XaPosY - the pos YIndexOutOfBoundsException - the index out of bounds exceptionMap<Integer,P> getRow(int aRow) throws IndexOutOfBoundsException
aRow - the rowIndexOutOfBoundsException - the index out of bounds exceptionMap<Integer,P> getColumn(int aColumn) throws IndexOutOfBoundsException
aColumn - the columnIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtTopOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atTopOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtTopRightOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atTopRightOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtRightOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atRightOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtBottomRightOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atBottomRightOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtBottomOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atBottomOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtBottomLeftOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atBottomLeftOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtLeftOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atLeftOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionboolean hasAtTopLeftOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionP atTopLeftOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
aPos - the posIndexOutOfBoundsException - the index out of bounds exceptionvoid forEach(Consumer<P> aConsumer)
Player on the
Checkerboard until all players have been processed or the action
throws an exception.aConsumer - The action to be performed for each Player.Copyright © 2018. All rights reserved.