P
- the generic typeS
- the generic typeorg.refcodes.component.Component
, org.refcodes.component.Destroyable
, org.refcodes.graphical.GridDimension
, org.refcodes.graphical.GridDimension.GridDimensionBuilder<Checkerboard<P,S>>
, org.refcodes.graphical.GridDimension.GridDimensionMutator
, org.refcodes.graphical.GridDimension.GridDimensionProperty
, org.refcodes.graphical.GridHeightAccessor
, org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<Checkerboard<P,S>>
, org.refcodes.graphical.GridHeightAccessor.GridHeightMutator
, org.refcodes.graphical.GridHeightAccessor.GridHeightProperty
, org.refcodes.graphical.GridModeAccessor
, org.refcodes.graphical.GridModeAccessor.GridModeBuilder<Checkerboard<P,S>>
, org.refcodes.graphical.GridModeAccessor.GridModeMutator
, org.refcodes.graphical.GridModeAccessor.GridModeProperty
, org.refcodes.graphical.GridWidthAccessor
, org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<Checkerboard<P,S>>
, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator
, org.refcodes.graphical.GridWidthAccessor.GridWidthProperty
, org.refcodes.observer.Observable<CheckerboardObserver<P,S>>
, Players<P>
CheckerboardImpl
public 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.component.Destroyable.DestroyAutomaton
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.GridDimensionPropertyBuilder
org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B extends org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<B>>, org.refcodes.graphical.GridHeightAccessor.GridHeightMutator, org.refcodes.graphical.GridHeightAccessor.GridHeightProperty
org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B extends org.refcodes.graphical.GridModeAccessor.GridModeBuilder<B>>, org.refcodes.graphical.GridModeAccessor.GridModeMutator, org.refcodes.graphical.GridModeAccessor.GridModeProperty
org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B extends org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B>>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthProperty
Modifier and Type | Method | 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.
|
isInBounds, isInBounds, isInHeight, isInWidth
withGridDimension, withGridDimension, withGridDimension
setGridDimension, setGridDimension, setGridDimension
withGridHeight
setGridHeight
withGridMode
setGridMode
withGridWidth
setGridWidth
hasObserverSubscription, subscribeObserver, unsubscribeObserver
clearPlayers, getPlayers, hasPlayer, hasPlayers, playerCount, players, putPlayer, removePlayer
boolean 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.