BoulderDashBoard, org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>, org.refcodes.checkerboard.Players<BoulderDashPlayer>, org.refcodes.component.Component, org.refcodes.component.Destroyable, org.refcodes.graphical.GridDimension, org.refcodes.graphical.GridDimension.GridDimensionBuilder<BoulderDashPlayer>, org.refcodes.graphical.GridDimension.GridDimensionMutator, org.refcodes.graphical.GridDimension.GridDimensionProperty, org.refcodes.graphical.GridHeightAccessor, org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<BoulderDashPlayer>, org.refcodes.graphical.GridHeightAccessor.GridHeightMutator, org.refcodes.graphical.GridHeightAccessor.GridHeightProperty, org.refcodes.graphical.GridModeAccessor, org.refcodes.graphical.GridModeAccessor.GridModeBuilder<BoulderDashPlayer>, org.refcodes.graphical.GridModeAccessor.GridModeMutator, org.refcodes.graphical.GridModeAccessor.GridModeProperty, org.refcodes.graphical.GridWidthAccessor, org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<BoulderDashPlayer>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthProperty, org.refcodes.observer.Observable<BoulderDashPlayer>public class BoulderDashBoardImpl extends Object implements BoulderDashBoard
org.refcodes.component.Destroyable.DestroyAutomatonorg.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.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.GridModePropertyorg.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B extends org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<B>>, org.refcodes.graphical.GridWidthAccessor.GridWidthMutator, org.refcodes.graphical.GridWidthAccessor.GridWidthProperty| Constructor | Description |
|---|---|
BoulderDashBoardImpl(org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> aCheckerboard) |
Constructs a
BoulderDashBoard from the provided
Checkerboard. |
| Modifier and Type | Method | Description |
|---|---|---|
BoulderDashPlayer |
atBottomLeftOf(org.refcodes.graphical.Position aPos) |
|
BoulderDashPlayer |
atBottomOf(org.refcodes.graphical.Position aPos) |
|
BoulderDashPlayer |
atBottomRightOf(org.refcodes.graphical.Position aPos) |
|
BoulderDashPlayer |
atLeftOf(org.refcodes.graphical.Position aPos) |
|
BoulderDashPlayer |
atPosition(int aPosX,
int aPosY) |
|
BoulderDashPlayer |
atPosition(org.refcodes.graphical.Position aPos) |
|
BoulderDashPlayer |
atRightOf(org.refcodes.graphical.Position aPos) |
|
BoulderDashPlayer |
atTopLeftOf(org.refcodes.graphical.Position aPos) |
|
BoulderDashPlayer |
atTopOf(org.refcodes.graphical.Position aPos) |
|
BoulderDashPlayer |
atTopRightOf(org.refcodes.graphical.Position aPos) |
|
void |
clearPlayers() |
|
void |
destroy() |
|
void |
forEach(Consumer<BoulderDashPlayer> aConsumer) |
|
Map<Integer,BoulderDashPlayer> |
getColumn(int aColumn) |
|
int |
getGridHeight() |
|
org.refcodes.graphical.GridMode |
getGridMode() |
|
int |
getGridWidth() |
|
List<BoulderDashPlayer> |
getPlayers() |
|
Map<Integer,BoulderDashPlayer> |
getRow(int aRow) |
|
boolean |
hasAtBottomLeftOf(org.refcodes.graphical.Position aPos) |
|
boolean |
hasAtBottomOf(org.refcodes.graphical.Position aPos) |
|
boolean |
hasAtBottomRightOf(org.refcodes.graphical.Position aPos) |
|
boolean |
hasAtLeftOf(org.refcodes.graphical.Position aPos) |
|
boolean |
hasAtPosition(int aPosX,
int aPosY) |
|
boolean |
hasAtPosition(org.refcodes.graphical.Position aPos) |
|
boolean |
hasAtRightOf(org.refcodes.graphical.Position aPos) |
|
boolean |
hasAtTopLeftOf(org.refcodes.graphical.Position aPos) |
|
boolean |
hasAtTopOf(org.refcodes.graphical.Position aPos) |
|
boolean |
hasAtTopRightOf(org.refcodes.graphical.Position aPos) |
|
boolean |
hasObserverSubscription(org.refcodes.checkerboard.CheckerboardObserver<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> arg0) |
|
boolean |
hasPlayer(BoulderDashPlayer aElement) |
|
boolean |
hasPlayers() |
|
int |
playerCount() |
|
Iterator<BoulderDashPlayer> |
players() |
|
BoulderDashPlayer |
putPlayer(BoulderDashPlayer aElement) |
|
boolean |
removePlayer(BoulderDashPlayer aElement) |
|
void |
setGridDimension(int aWidth,
int aHeight) |
|
void |
setGridDimension(org.refcodes.graphical.Dimension aDimension) |
|
void |
setGridDimension(org.refcodes.graphical.GridDimension aDimension) |
|
void |
setGridHeight(int aHeight) |
|
void |
setGridMode(org.refcodes.graphical.GridMode aGridMode) |
|
void |
setGridWidth(int aWidth) |
|
boolean |
subscribeObserver(org.refcodes.checkerboard.CheckerboardObserver<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> arg0) |
|
boolean |
unsubscribeObserver(org.refcodes.checkerboard.CheckerboardObserver<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> arg0) |
|
org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> |
withGridDimension(int aGridWidth,
int aGridHeight) |
|
org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> |
withGridDimension(org.refcodes.graphical.Dimension aDimension) |
|
org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> |
withGridDimension(org.refcodes.graphical.GridDimension aDimension) |
|
org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> |
withGridHeight(int aHeight) |
|
org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> |
withGridMode(org.refcodes.graphical.GridMode aGridMode) |
|
org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> |
withGridWidth(int aWidth) |
public BoulderDashBoardImpl(org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> aCheckerboard)
BoulderDashBoard from the provided
Checkerboard.aCheckerboard - The Checkerboard which to by the
BoulderDashBoard.public void forEach(Consumer<BoulderDashPlayer> aConsumer)
forEach in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>public boolean hasAtPosition(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtPosition in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean hasAtPosition(int aPosX,
int aPosY)
throws IndexOutOfBoundsException
hasAtPosition in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic List<BoulderDashPlayer> getPlayers()
getPlayers in interface org.refcodes.checkerboard.Players<BoulderDashPlayer>public BoulderDashPlayer atPosition(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atPosition in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic org.refcodes.graphical.GridMode getGridMode()
getGridMode in interface org.refcodes.graphical.GridModeAccessorpublic int getGridWidth()
getGridWidth in interface org.refcodes.graphical.GridWidthAccessorpublic int getGridHeight()
getGridHeight in interface org.refcodes.graphical.GridHeightAccessorpublic BoulderDashPlayer atPosition(int aPosX, int aPosY) throws IndexOutOfBoundsException
atPosition in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic Map<Integer,BoulderDashPlayer> getRow(int aRow) throws IndexOutOfBoundsException
getRow in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic Map<Integer,BoulderDashPlayer> getColumn(int aColumn) throws IndexOutOfBoundsException
getColumn in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic void clearPlayers()
clearPlayers in interface org.refcodes.checkerboard.Players<BoulderDashPlayer>public BoulderDashPlayer atTopOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atTopOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic BoulderDashPlayer atTopRightOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atTopRightOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean hasAtRightOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtRightOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic BoulderDashPlayer atRightOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atRightOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean hasAtBottomRightOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtBottomRightOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic BoulderDashPlayer atBottomRightOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atBottomRightOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean hasAtBottomOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtBottomOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic BoulderDashPlayer atBottomOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atBottomOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean hasAtBottomLeftOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtBottomLeftOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic BoulderDashPlayer atBottomLeftOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atBottomLeftOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean hasAtLeftOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtLeftOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic BoulderDashPlayer atLeftOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atLeftOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic BoulderDashPlayer atTopLeftOf(org.refcodes.graphical.Position aPos) throws IndexOutOfBoundsException
atTopLeftOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic void destroy()
destroy in interface org.refcodes.component.Destroyablepublic void setGridDimension(int aWidth,
int aHeight)
setGridDimension in interface org.refcodes.graphical.GridDimension.GridDimensionMutatorpublic void setGridMode(org.refcodes.graphical.GridMode aGridMode)
setGridMode in interface org.refcodes.graphical.GridModeAccessor.GridModeMutatorpublic void setGridWidth(int aWidth)
setGridWidth in interface org.refcodes.graphical.GridWidthAccessor.GridWidthMutatorpublic void setGridHeight(int aHeight)
setGridHeight in interface org.refcodes.graphical.GridHeightAccessor.GridHeightMutatorpublic void setGridDimension(org.refcodes.graphical.GridDimension aDimension)
setGridDimension in interface org.refcodes.graphical.GridDimension.GridDimensionMutatorpublic Iterator<BoulderDashPlayer> players()
players in interface org.refcodes.checkerboard.Players<BoulderDashPlayer>public boolean hasPlayer(BoulderDashPlayer aElement)
hasPlayer in interface org.refcodes.checkerboard.Players<BoulderDashPlayer>public void setGridDimension(org.refcodes.graphical.Dimension aDimension)
setGridDimension in interface org.refcodes.graphical.GridDimension.GridDimensionMutatorpublic int playerCount()
playerCount in interface org.refcodes.checkerboard.Players<BoulderDashPlayer>public boolean hasPlayers()
hasPlayers in interface org.refcodes.checkerboard.Players<BoulderDashPlayer>public org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> withGridWidth(int aWidth)
withGridWidth in interface org.refcodes.graphical.GridWidthAccessor.GridWidthBuilder<BoulderDashPlayer>public org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> withGridMode(org.refcodes.graphical.GridMode aGridMode)
withGridMode in interface org.refcodes.graphical.GridModeAccessor.GridModeBuilder<BoulderDashPlayer>public org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> withGridHeight(int aHeight)
withGridHeight in interface org.refcodes.graphical.GridHeightAccessor.GridHeightBuilder<BoulderDashPlayer>public BoulderDashPlayer putPlayer(BoulderDashPlayer aElement)
putPlayer in interface org.refcodes.checkerboard.Players<BoulderDashPlayer>public org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> withGridDimension(int aGridWidth, int aGridHeight)
withGridDimension in interface org.refcodes.graphical.GridDimension.GridDimensionBuilder<BoulderDashPlayer>public boolean hasAtTopOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtTopOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean removePlayer(BoulderDashPlayer aElement)
removePlayer in interface org.refcodes.checkerboard.Players<BoulderDashPlayer>public org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> withGridDimension(org.refcodes.graphical.GridDimension aDimension)
withGridDimension in interface org.refcodes.graphical.GridDimension.GridDimensionBuilder<BoulderDashPlayer>public org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> withGridDimension(org.refcodes.graphical.Dimension aDimension)
withGridDimension in interface org.refcodes.graphical.GridDimension.GridDimensionBuilder<BoulderDashPlayer>public boolean hasAtTopRightOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtTopRightOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean hasAtTopLeftOf(org.refcodes.graphical.Position aPos)
throws IndexOutOfBoundsException
hasAtTopLeftOf in interface org.refcodes.checkerboard.Checkerboard<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>IndexOutOfBoundsExceptionpublic boolean hasObserverSubscription(org.refcodes.checkerboard.CheckerboardObserver<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> arg0)
hasObserverSubscription in interface org.refcodes.observer.Observable<BoulderDashPlayer>public boolean subscribeObserver(org.refcodes.checkerboard.CheckerboardObserver<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> arg0)
subscribeObserver in interface org.refcodes.observer.Observable<BoulderDashPlayer>public boolean unsubscribeObserver(org.refcodes.checkerboard.CheckerboardObserver<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus> arg0)
unsubscribeObserver in interface org.refcodes.observer.Observable<BoulderDashPlayer>Copyright © 2018. All rights reserved.