Index
All Classes and Interfaces|All Packages
A
- AbstractCheckerboard<T extends Checkerboard<P,
S>, P extends Player<P, S>, S> - Class in org.refcodes.checkerboard -
The Class CheckerboardImpl.
- AbstractCheckerboard() - Constructor for class org.refcodes.checkerboard.AbstractCheckerboard
- AbstractCheckerboardEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class AbstractCheckerboardEvent.
- AbstractCheckerboardEvent(CheckerboardAction, Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.AbstractCheckerboardEvent
-
Instantiates a new abstract checkerboard event.
- AbstractCheckerboardEvent.AbstractPlayerCheckerboardEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class AbstractPlayerCheckerboardEvent.
- AbstractCheckerboardViewer<P extends Player<P,
S>, S, IMG, SF extends SpriteFactory<IMG, S, ?>, CBV extends CheckerboardViewer<P, S, CBV>> - Class in org.refcodes.checkerboard -
In order to provide a
Checkerboard
, register an observer by invokingObservable.subscribeObserver(Object)
. - AbstractCheckerboardViewer(Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
Constructs the
CheckerboardViewer
for the givenCheckerboard
. - AbstractCheckerboardViewerEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class AbstractCheckerboardViewerEvent.
- AbstractCheckerboardViewerEvent(CheckerboardViewerAction, CheckerboardViewer<P, S, ?>) - Constructor for class org.refcodes.checkerboard.AbstractCheckerboardViewerEvent
-
Instantiates a new abstract checkerboard viewer event.
- AbstractGraphicalCheckerboardViewer<P extends Player<P,
S>, S, IMG, SF extends SpriteFactory<IMG, S, ?>, BF extends BackgroundFactory<IMG>, CBV extends GraphicalCheckerboardViewer<P, S, IMG, SF, BF, CBV>> - Class in org.refcodes.checkerboard -
The Class AbstractGraphicalCheckerboardViewer.
- AbstractGraphicalCheckerboardViewer(Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
Constructs the
GraphicalCheckerboardViewer
for the givenCheckerboard
. - AbstractPlayer<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class AbstractPlayer.
- AbstractPlayer() - Constructor for class org.refcodes.checkerboard.AbstractPlayer
-
Empty constructor.
- AbstractPlayer(int, int) - Constructor for class org.refcodes.checkerboard.AbstractPlayer
-
Instantiates a new abstract player.
- AbstractPlayer(Position) - Constructor for class org.refcodes.checkerboard.AbstractPlayer
-
Instantiates a new abstract player.
- AbstractPlayerCheckerboardEvent(CheckerboardAction, P, Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.AbstractCheckerboardEvent.AbstractPlayerCheckerboardEvent
-
Instantiates a new abstract player checkerboard event.
- AbstractPlayerEvent<P extends Player<P,
?>> - Class in org.refcodes.checkerboard -
The Class AbstractPlayerEvent.
- AbstractPlayerEvent(PlayerAction, P) - Constructor for class org.refcodes.checkerboard.AbstractPlayerEvent
-
Instantiates a new abstract player event.
- ACTION - Static variable in class org.refcodes.checkerboard.ChangePlayerPositionEvent
- ACTION - Static variable in class org.refcodes.checkerboard.GridDimensionChangedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.GridModeChangedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.GridPositionClickedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.PlayerAddedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.PlayerClickedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.PlayerDraggabilityChangedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.PlayerPositionChangedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.PlayerRemovedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.PlayerStateChangedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.PlayerVisibilityChangedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.ViewportDimensionChangedEvent
- ACTION - Static variable in class org.refcodes.checkerboard.ViewportOffsetChangedEvent
- ANTI_CLOCKWISE - Enum constant in enum class org.refcodes.checkerboard.Rotation
-
Represents an anti-clockwise rotation.
- atBottomLeftOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At bottom left of.
- atBottomLeftOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At bottom left of.
- atBottomOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At bottom of.
- atBottomOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At bottom of.
- atBottomRightOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At bottom right of.
- atBottomRightOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At bottom right of.
- atLeftOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At left of.
- atLeftOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At left of.
- atPosition(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At position.
- atPosition(int, int) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At position.
- atPosition(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At position.
- atPosition(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At position.
- atRightOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At right of.
- atRightOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At right of.
- atTopLeftOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At top left of.
- atTopLeftOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At top left of.
- atTopOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At top of.
- atTopOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At top of.
- atTopRightOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
At top right of.
- atTopRightOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
At top right of.
B
- BackgroundFactory<IMG> - Interface in org.refcodes.checkerboard
-
A factory for creating Background objects according to a given (checkerboard's)
Raster
. - BackgroundFactoryAccessor<BF extends BackgroundFactory<?>> - Interface in org.refcodes.checkerboard
-
Provides an accessor for a background factory property.
- BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF extends BackgroundFactory<?>,
B extends BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF, B>> - Interface in org.refcodes.checkerboard -
Provides a builder method for a background factory property returning the builder for applying multiple build operations.
- BackgroundFactoryAccessor.BackgroundFactoryMutator<BF extends BackgroundFactory<?>> - Interface in org.refcodes.checkerboard
-
Provides a mutator for a background factory property.
- BackgroundFactoryAccessor.BackgroundFactoryProperty<BF extends BackgroundFactory<?>> - Interface in org.refcodes.checkerboard
-
Provides a background factory property.
- blink() - Method in interface org.refcodes.checkerboard.Player
-
Causes the
Player
to blink. - BOTTOM - Enum constant in enum class org.refcodes.checkerboard.MooreNeighbourhood
- BOTTOM - Enum constant in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
- BOTTOM_LEFT - Enum constant in enum class org.refcodes.checkerboard.MooreNeighbourhood
- BOTTOM_RIGHT - Enum constant in enum class org.refcodes.checkerboard.MooreNeighbourhood
C
- centerViewortOffset(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- centerViewortOffset(int, int) - Method in interface org.refcodes.checkerboard.CheckerboardViewer
- centerViewortOffset(int, int, int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- centerViewortOffset(int, int, int, int) - Method in interface org.refcodes.checkerboard.CheckerboardViewer
- CHANGE_POSITION - Enum constant in enum class org.refcodes.checkerboard.PlayerAction
- ChangePlayerPositionEvent<P extends Player<P,
?>> - Class in org.refcodes.checkerboard -
The Class ChangePlayerPositionEvent.
- ChangePlayerPositionEvent(int, int, int, int, P) - Constructor for class org.refcodes.checkerboard.ChangePlayerPositionEvent
-
Instantiates a new change position event.
- ChangePlayerPositionEvent(Position, Position, P) - Constructor for class org.refcodes.checkerboard.ChangePlayerPositionEvent
-
Instantiates a new change position event.
- ChangePlayerPositionObserver<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Change position event observer.
- Checkerboard<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
The Interface Checkerboard.
- CheckerboardAccessor<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
Provides an accessor for a player property.
- CheckerboardAccessor.CheckerboardBuilder<P extends Player<P,
S>, S, B extends CheckerboardAccessor.CheckerboardBuilder<P, S, B>> - Interface in org.refcodes.checkerboard -
Provides a builder method for a player property returning the builder for applying multiple build operations.
- CheckerboardAccessor.CheckerboardMutator<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
Provides a mutator for a player property.
- CheckerboardAccessor.CheckerboardProperty<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
Provides a player property.
- CheckerboardAction - Enum Class in org.refcodes.checkerboard
-
The Enum CheckerboardAction.
- CheckerboardEvent<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
The Interface CheckerboardEvent.
- CheckerboardObserver<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
An asynchronous update interface for receiving notifications about Checkerboard information as the Checkerboard is constructed.
- CheckerboardViewer<P extends Player<P,
S>, S, CBV extends CheckerboardViewer<P, S, CBV>> - Interface in org.refcodes.checkerboard -
The Interface CheckerboardViewer.
- CheckerboardViewerAction - Enum Class in org.refcodes.checkerboard
-
The Enum CheckerboardViewerAction.
- CheckerboardViewerEvent<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
The Interface CheckerboardViewerEvent.
- clearPlayers() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Clear players.
- clearPlayers() - Method in interface org.refcodes.checkerboard.Players
-
Clear players.
- clearSprites() - Method in interface org.refcodes.checkerboard.Sprites
-
Clear sprites.
- click() - Method in class org.refcodes.checkerboard.AbstractPlayer
-
Selects ("clicks") the player.
- click() - Method in interface org.refcodes.checkerboard.Player
-
Selects ("clicks") the player.
- CLICKED - Enum constant in enum class org.refcodes.checkerboard.PlayerAction
- CLOCKWISE - Enum constant in enum class org.refcodes.checkerboard.Rotation
-
Represents a clockwise rotation.
- clockwiseNext() - Method in enum class org.refcodes.checkerboard.Direction
-
Returns the next clockwise state relative to the current state.
- clockwiseNext() - Method in enum class org.refcodes.checkerboard.MooreNeighbourhood
-
Returns the next clockwise state relative to the current state.
- clockwiseNext() - Method in interface org.refcodes.checkerboard.Neighbourhood
-
Returns the next clockwise state relative to the current state.
- clockwiseNext() - Method in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
-
Returns the next clockwise state relative to the current state.
- clockwisePrevious() - Method in enum class org.refcodes.checkerboard.Direction
-
Returns the next anti-clockwise state relative to the current state.
- clockwisePrevious() - Method in enum class org.refcodes.checkerboard.MooreNeighbourhood
-
Returns the next anti-clockwise state relative to the current state.
- clockwisePrevious() - Method in interface org.refcodes.checkerboard.Neighbourhood
-
Returns the next anti-clockwise state relative to the current state.
- clockwisePrevious() - Method in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
-
Returns the next anti-clockwise state relative to the current state.
- ConsoleCheckerboardViewer<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
Extends the interface
CheckerboardViewer
with functionality required for console output: Most basic implementation of theCheckerboardViewer
interface printing the current checkerboard as good as it gets. - ConsoleCheckerboardViewer(Checkerboard<P, S>, ConsoleSpriteFactory<S>) - Constructor for class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
Constructs the
ConsoleCheckerboardViewer
with the providedSpriteFactory
creating "Sprites" (in this caseString
instances) for visualizing the playground's state. - ConsoleCheckerboardViewer(Checkerboard<P, S>, ConsoleSpriteFactory<S>, int) - Constructor for class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
Constructs the
ConsoleCheckerboardViewer
with the providedSpriteFactory
creating "Sprites" (in this caseString
instances) for visualizing the playground's state. - ConsoleCheckerboardViewer(Checkerboard<P, S>, ConsoleSpriteFactory<S>, int, int) - Constructor for class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
Constructs the
ConsoleCheckerboardViewer
with the providedSpriteFactory
creating "Sprites" (in this caseString
instances) for visualizing the playground's state. - ConsoleSpriteFactory<S> - Interface in org.refcodes.checkerboard
- containsSprite(S) - Method in interface org.refcodes.checkerboard.Sprites
-
Contains sprite.
D
- destroy() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- destroy() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- Direction - Enum Class in org.refcodes.checkerboard
-
Definitions of the directions up, down, left and right.
- DOWN - Enum constant in enum class org.refcodes.checkerboard.Direction
- DRAGGABILITY_CHANGED - Enum constant in enum class org.refcodes.checkerboard.PlayerAction
- draggable() - Method in class org.refcodes.checkerboard.AbstractPlayer
E
- equals(Object) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
F
- FIELD_DIMENSION_CHANGED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardViewerAction
- fireEvent(PlayerEvent<P>, PlayerObserver<P, S>, ExecutionStrategy) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
Fire event.
- fireEvent(GenericEvent<?>, CheckerboardObserver<P, S>, ExecutionStrategy) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Fire event.
- firstPlayer(Class<PLAYER>) - Method in interface org.refcodes.checkerboard.Players
-
Returns the first player found being of the given type.
- forEach(Consumer<P>) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Performs the given action for each
Player
on theCheckerboard
until all players have been processed or the action throws an exception. - forEach(Consumer<P>) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Performs the given action for each
Player
on theCheckerboard
until all players have been processed or the action throws an exception.
G
- getAction() - Method in class org.refcodes.checkerboard.AbstractCheckerboardEvent
- getAction() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewerEvent
- getAction() - Method in class org.refcodes.checkerboard.AbstractPlayerEvent
- getBackgroundFactory() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
Retrieves the background factory from the background factory property.
- getBackgroundFactory() - Method in interface org.refcodes.checkerboard.BackgroundFactoryAccessor
-
Retrieves the background factory from the background factory property.
- getCheckerboard() - Method in interface org.refcodes.checkerboard.CheckerboardAccessor
-
Retrieves the player from the player property.
- getColumn(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Gets the column.
- getColumn(int) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Gets the column.
- getColumnWidth() - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
- getContainerHeight() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- getContainerWidth() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- getFieldGap() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- getFieldHeight() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- getFieldWidth() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- getGridHeight() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- getGridHeight() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- getGridHeight() - Method in class org.refcodes.checkerboard.GridDimensionChangedEvent
- getGridMode() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- getGridMode() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- getGridMode() - Method in class org.refcodes.checkerboard.GridModeChangedEvent
- getGridWidth() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- getGridWidth() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- getGridWidth() - Method in class org.refcodes.checkerboard.GridDimensionChangedEvent
- getMinViewportDimension() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- getMoveMode() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- getNeighbours() - Method in enum class org.refcodes.checkerboard.NeighbourhoodPositions
-
Returns the
Position
elements as of the accordingNeighbourhood
. - getPlayer() - Method in class org.refcodes.checkerboard.AbstractCheckerboardEvent.AbstractPlayerCheckerboardEvent
-
Gets the player.
- getPlayer() - Method in interface org.refcodes.checkerboard.PlayerAccessor
-
Retrieves the player from the player property.
- getPlayers() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Gets the players.
- getPlayers() - Method in interface org.refcodes.checkerboard.Players
-
Gets the players.
- getPositionX() - Method in class org.refcodes.checkerboard.AbstractPlayer
- getPositionX() - Method in class org.refcodes.checkerboard.ChangePlayerPositionEvent
- getPositionX() - Method in enum class org.refcodes.checkerboard.Direction
-
Returns the relative X position to position (0, 0).
- getPositionX() - Method in class org.refcodes.checkerboard.GridPositionClickedEvent
- getPositionX() - Method in enum class org.refcodes.checkerboard.MooreNeighbourhood
-
Returns the relative X position to position (0, 0).
- getPositionX() - Method in class org.refcodes.checkerboard.PlayerPositionChangedEvent
- getPositionX() - Method in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
-
Returns the relative X position to position (0, 0).
- getPositionY() - Method in class org.refcodes.checkerboard.AbstractPlayer
- getPositionY() - Method in class org.refcodes.checkerboard.ChangePlayerPositionEvent
- getPositionY() - Method in enum class org.refcodes.checkerboard.Direction
-
Returns the relative Y position to position (0, 0).
- getPositionY() - Method in class org.refcodes.checkerboard.GridPositionClickedEvent
- getPositionY() - Method in enum class org.refcodes.checkerboard.MooreNeighbourhood
-
Returns the relative Y position to position (0, 0).
- getPositionY() - Method in class org.refcodes.checkerboard.PlayerPositionChangedEvent
- getPositionY() - Method in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
-
Returns the relative Y position to position (0, 0).
- getPrecedingGridDimension() - Method in class org.refcodes.checkerboard.GridDimensionChangedEvent
-
Gets the preceding grid dimension.
- getPrecedingGridMode() - Method in class org.refcodes.checkerboard.GridModeChangedEvent
-
Gets the preceding grid mode.
- getPrecedingPosition() - Method in class org.refcodes.checkerboard.ChangePlayerPositionEvent
-
Gets the preceding position.
- getPrecedingPosition() - Method in class org.refcodes.checkerboard.PlayerPositionChangedEvent
-
Gets the preceding position.
- getPrecedingState() - Method in class org.refcodes.checkerboard.PlayerStateChangedEvent
-
Gets the preceding state.
- getPrecedingViewportDimension() - Method in class org.refcodes.checkerboard.ViewportDimensionChangedEvent
-
Gets the preceding viewport dimension.
- getPrecedingViewportOffset() - Method in class org.refcodes.checkerboard.ViewportOffsetChangedEvent
-
Gets the preceding viewport offset.
- getRedrawLoopTimeMillis() - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
Retrieves the refresh loop time between two redraw cycles of the
Checkerboard
. - getRow(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Gets the row.
- getRow(int) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Gets the row.
- getScaleMode() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- getSource() - Method in class org.refcodes.checkerboard.AbstractCheckerboardEvent
- getSource() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewerEvent
- getSource() - Method in class org.refcodes.checkerboard.AbstractPlayerEvent
- getSprite(S) - Method in interface org.refcodes.checkerboard.Sprites
-
Gets the sprite.
- getSpriteFactory() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
Retrieves the sprite factory from the sprite factory property.
- getSpriteFactory() - Method in interface org.refcodes.checkerboard.SpriteFactoryAccessor
-
Retrieves the sprite factory from the sprite factory property.
- getStatus() - Method in class org.refcodes.checkerboard.AbstractPlayer
- getStatus() - Method in class org.refcodes.checkerboard.PlayerStateChangedEvent
- getVectorX() - Method in class org.refcodes.checkerboard.ChangePlayerPositionEvent
- getVectorX() - Method in class org.refcodes.checkerboard.PlayerPositionChangedEvent
- getVectorY() - Method in class org.refcodes.checkerboard.ChangePlayerPositionEvent
- getVectorY() - Method in class org.refcodes.checkerboard.PlayerPositionChangedEvent
- getViewportHeight() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- getViewportHeight() - Method in class org.refcodes.checkerboard.ViewportDimensionChangedEvent
- getViewportOffset() - Method in class org.refcodes.checkerboard.ViewportDimensionChangedEvent
-
Gets the viewport offset.
- getViewportOffsetX() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- getViewportOffsetX() - Method in class org.refcodes.checkerboard.ViewportOffsetChangedEvent
- getViewportOffsetY() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- getViewportOffsetY() - Method in class org.refcodes.checkerboard.ViewportOffsetChangedEvent
- getViewportWidth() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- getViewportWidth() - Method in class org.refcodes.checkerboard.ViewportDimensionChangedEvent
- GraphicalCheckerboardViewer<P extends Player<P,
S>, S, IMG, SF extends SpriteFactory<IMG, S, ?>, BF extends BackgroundFactory<IMG>, CBV extends GraphicalCheckerboardViewer<P, S, IMG, SF, BF, CBV>> - Interface in org.refcodes.checkerboard -
The Interface GraphicalCheckerboardViewer.
- GraphicalPlayerState - Interface in org.refcodes.checkerboard
-
The
GraphicalPlayerState
defines properties required to process aPlayer
state change on aGraphicalCheckerboardViewer
. - GRID_DIMENSION_CHANGED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardAction
- GRID_MODE_CHANGED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardAction
- GRID_POSITION_CLICKED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardAction
- GridDimensionChangedEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The
GridDimensionChangedEvent
event. - GridDimensionChangedEvent(int, int, int, int, Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.GridDimensionChangedEvent
-
Instantiates a new grid dimension changed event.
- GridModeChangedEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class GridModeChangedEvent.
- GridModeChangedEvent(GridMode, GridMode, Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.GridModeChangedEvent
-
Instantiates a new grid mode changed event.
- GridPositionClickedEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The
GridPositionClickedEvent
event. - GridPositionClickedEvent(int, int, Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.GridPositionClickedEvent
-
Instantiates a new position changed event.
- GridPositionClickedEvent(Position, Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.GridPositionClickedEvent
-
Instantiates a new position changed event.
H
- hasAtBottomLeftOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at bottom left of.
- hasAtBottomLeftOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at bottom left of.
- hasAtBottomOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at bottom of.
- hasAtBottomOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at bottom of.
- hasAtBottomRightOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at bottom right of.
- hasAtBottomRightOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at bottom right of.
- hasAtLeftOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at left of.
- hasAtLeftOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at left of.
- hasAtPosition(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at position.
- hasAtPosition(int, int) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at position.
- hasAtPosition(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at position.
- hasAtPosition(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at position.
- hasAtRightOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at right of.
- hasAtRightOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at right of.
- hasAtTopLeftOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at top left of.
- hasAtTopLeftOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at top left of.
- hasAtTopOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at top of.
- hasAtTopOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at top of.
- hasAtTopRightOf(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for at top right of.
- hasAtTopRightOf(Position) - Method in interface org.refcodes.checkerboard.Checkerboard
-
Checks for at top right of.
- hashCode() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- hasPlayer(P) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for player.
- hasPlayer(P) - Method in interface org.refcodes.checkerboard.Players
-
Checks for player.
- hasPlayers() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Checks for players.
- hasPlayers() - Method in interface org.refcodes.checkerboard.Players
-
Checks for players.
- hasSprites() - Method in interface org.refcodes.checkerboard.Sprites
-
Checks for sprites.
- hide() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- hide() - Method in class org.refcodes.checkerboard.AbstractPlayer
I
- initialize() - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
- INITIALIZE - Enum constant in enum class org.refcodes.checkerboard.CheckerboardAction
- INITIALIZE - Enum constant in enum class org.refcodes.checkerboard.CheckerboardViewerAction
- inverse() - Method in enum class org.refcodes.checkerboard.Rotation
-
Inverts the rotation direction.
- isDraggable() - Method in class org.refcodes.checkerboard.AbstractPlayer
- isRedrawOnEvent() - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
Determines whether the
Checkerboard
is printed out upon any according events from the underlyingCheckerboard
or as of the refresh loop time (seeConsoleCheckerboardViewer.getRedrawLoopTimeMillis()
). - isVisible() - Method in class org.refcodes.checkerboard.AbstractPlayer
L
- LEFT - Enum constant in enum class org.refcodes.checkerboard.Direction
- LEFT - Enum constant in enum class org.refcodes.checkerboard.MooreNeighbourhood
- LEFT - Enum constant in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
- letBackgroundFactory(BF) - Method in interface org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryProperty
-
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given
BackgroundFactory
(setter) as ofBackgroundFactoryAccessor.BackgroundFactoryMutator.setBackgroundFactory(BackgroundFactory)
and returns the very same value (getter). - letCheckerboard(Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardAccessor.CheckerboardProperty
-
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given
Checkerboard
(setter) as ofCheckerboardAccessor.CheckerboardMutator.setCheckerboard(Checkerboard)
and returns the very same value (getter). - letPlayer(P) - Method in interface org.refcodes.checkerboard.PlayerAccessor.PlayerProperty
-
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given
Player
(setter) as ofPlayerAccessor.PlayerMutator.setPlayer(Player)
and returns the very same value (getter). - letSpriteFactory(SF) - Method in interface org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryProperty
-
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given
SpriteFactory
(setter) as ofSpriteFactoryAccessor.SpriteFactoryMutator.setSpriteFactory(SpriteFactory)
and returns the very same value (getter).
M
- Meeple<S> - Class in org.refcodes.checkerboard
-
As the
GraphicalCheckerboardViewer
handlesPlayer
instances in terms of "sprites", the most basic directly usablePlayer
type is theMeeple
. - Meeple(int, int) - Constructor for class org.refcodes.checkerboard.Meeple
-
Instantiates a new
Meeple
. - Meeple(Position) - Constructor for class org.refcodes.checkerboard.Meeple
-
Instantiates a new
Meeple
. - MIN_VIEWPORT_DIMENSION_CHANGED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardViewerAction
- MOORE - Enum constant in enum class org.refcodes.checkerboard.NeighbourhoodPositions
-
As of
MooreNeighbourhood
. - MooreNeighbourhood - Enum Class in org.refcodes.checkerboard
-
Definitions of the Moore neighbourhood.
- moveDown() - Method in interface org.refcodes.checkerboard.Player
-
Moves the player one down.
- moveLeft() - Method in interface org.refcodes.checkerboard.Player
-
Moves the player one to the left.
- moveRight() - Method in interface org.refcodes.checkerboard.Player
-
Moves the player one to the right.
- moveUp() - Method in interface org.refcodes.checkerboard.Player
-
Moves the player one up.
N
- Neighbourhood<S> - Interface in org.refcodes.checkerboard
-
Methods useful for working with neighborhoods related to cellular automatons, such as the
VonNeumannNeighbourhood
or theMooreNeighbourhood
. - NeighbourhoodPositions - Enum Class in org.refcodes.checkerboard
-
Returns the
Position
elements as of the accordingNeighbourhood
. - next(N) - Method in enum class org.refcodes.checkerboard.Rotation
-
Returns the next neighbourhood relative to the provided neighbourhood.
- next(Rotation) - Method in interface org.refcodes.checkerboard.Neighbourhood
-
Returns the next neighborhood for the given rotation relative to the current state.
O
- onChangePlayerPositionEvent(ChangePlayerPositionEvent<P>) - Method in interface org.refcodes.checkerboard.ChangePlayerPositionObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onChangePlayerPositionEvent(ChangePlayerPositionEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onChangePlayerPositionEvent(ChangePlayerPositionEvent<P>, Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onChangePlayerPositionEvent(ChangePlayerPositionEvent<P>, Checkerboard<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onChangePosition(ChangePlayerPositionObserver<P>) - Method in interface org.refcodes.checkerboard.Player
-
Registers an according observer.
- onCheckerboardEvent(CheckerboardEvent<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onCheckerboardEvent(CheckerboardEvent<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onClicked(PlayerClickedObserver<P>) - Method in interface org.refcodes.checkerboard.Player
-
Registers an according observer.
- onDraggabilityChanged(PlayerDraggabilityChangedObserver<P>) - Method in interface org.refcodes.checkerboard.Player
-
Registers an according observer.
- onEventPrintPlayground() - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
Prints the playground upon an according
Checkerboard
event in case the - onGridDimensionChangedEvent(GridDimensionChangedEvent<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onGridDimensionChangedEvent(GridDimensionChangedEvent<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onGridModeChangedEvent(GridModeChangedEvent<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onGridModeChangedEvent(GridModeChangedEvent<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onGridPositionClickedEvent(GridPositionClickedEvent<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when a grid element of the checkerboard bas been clicked.
- onGridPositionClickedEvent(GridPositionClickedEvent<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when a grid element of the checkerboard bas been clicked.
- onPlayerAddedEvent(PlayerAddedEvent<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerAddedEvent(PlayerAddedEvent<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerClickedEvent(PlayerClickedEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerClickedObserver
-
This method is called when a player has been clicked.
- onPlayerClickedEvent(PlayerClickedEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerObserver
-
This method is called when a player has been clicked.
- onPlayerDraggabilityChangedEvent(PlayerDraggabilityChangedEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerDraggabilityChangedObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onPlayerDraggabilityChangedEvent(PlayerDraggabilityChangedEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onPlayerDraggabilityChangedEvent(PlayerDraggabilityChangedEvent<P>, Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerDraggabilityChangedEvent(PlayerDraggabilityChangedEvent<P>, Checkerboard<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerEvent(PlayerEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onPlayerEvent(PlayerEvent<P>, Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerEvent(PlayerEvent<P>, Checkerboard<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerPositionChangedEvent(PlayerPositionChangedEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerObserver
-
This method is called when a
Player
instance's position has changed. - onPlayerPositionChangedEvent(PlayerPositionChangedEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerPositionChangedObserver
-
This method is called when a
Player
instance's position has changed. - onPlayerPositionChangedEvent(PlayerPositionChangedEvent<P>, Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerPositionChangedEvent(PlayerPositionChangedEvent<P>, Checkerboard<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerRemovedEvent(PlayerRemovedEvent<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerRemovedEvent(PlayerRemovedEvent<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerStateChangedEvent(PlayerStateChangedEvent<P, S>) - Method in interface org.refcodes.checkerboard.PlayerObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onPlayerStateChangedEvent(PlayerStateChangedEvent<P, S>) - Method in interface org.refcodes.checkerboard.PlayerStateChangedObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onPlayerStateChangedEvent(PlayerStateChangedEvent<P, S>, Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerStateChangedEvent(PlayerStateChangedEvent<P, S>, Checkerboard<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerVisibilityChangedEvent(PlayerVisibilityChangedEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onPlayerVisibilityChangedEvent(PlayerVisibilityChangedEvent<P>) - Method in interface org.refcodes.checkerboard.PlayerVisibilityChangedObserver
-
This method is called when information about an Player which was previously requested using an asynchronous interface becomes available.
- onPlayerVisibilityChangedEvent(PlayerVisibilityChangedEvent<P>, Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPlayerVisibilityChangedEvent(PlayerVisibilityChangedEvent<P>, Checkerboard<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onPositionChanged(PlayerPositionChangedObserver<P>) - Method in interface org.refcodes.checkerboard.Player
-
Registers an according observer.
- onStateChanged(PlayerStateChangedObserver<P, S>) - Method in interface org.refcodes.checkerboard.Player
-
Registers an according observer.
- onSubscribe(SubscribeEvent<Checkerboard<P, S>>) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- onUnsubscribe(UnsubscribeEvent<Checkerboard<P, S>>) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- onUnsubscribe(UnsubscribeEvent<Checkerboard<P, S>>) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- onViewportDimensionChangedEvent(ViewportDimensionChangedEvent<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onViewportDimensionChangedEvent(ViewportDimensionChangedEvent<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onViewportOffsetChangedEvent(ViewportOffsetChangedEvent<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardObserver
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onViewportOffsetChangedEvent(ViewportOffsetChangedEvent<P, S>) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.
- onVisibilityChanged(PlayerVisibilityChangedObserver<P>) - Method in interface org.refcodes.checkerboard.Player
-
Registers an according observer.
- org.refcodes.checkerboard - module org.refcodes.checkerboard
- org.refcodes.checkerboard - package org.refcodes.checkerboard
-
The refcodes-checkerboard artifact provides types and definitions to represent a virtual checkerboard to be used by the alike games two dimensional cellular automatons.
P
- Player<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
A
Player
defines an actor (player) on a playground (checkerboard). - PLAYER_ADDED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardAction
- PLAYER_REMOVED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardAction
- PlayerAccessor<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Provides an accessor for a player property.
- PlayerAccessor.PlayerBuilder<P extends Player<P,
?>, B extends PlayerAccessor.PlayerBuilder<P, B>> - Interface in org.refcodes.checkerboard -
Provides a builder method for a player property returning the builder for applying multiple build operations.
- PlayerAccessor.PlayerMutator<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Provides a mutator for a player property.
- PlayerAccessor.PlayerProperty<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Provides a player property.
- PlayerAction - Enum Class in org.refcodes.checkerboard
-
The Enum PlayerAction.
- PlayerAddedEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class PlayerAddedEvent.
- PlayerAddedEvent(P, Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.PlayerAddedEvent
-
Instantiates a new player added event.
- PlayerClickedEvent<P extends Player<P,
?>> - Class in org.refcodes.checkerboard -
The
PlayerClickedEvent
class. - PlayerClickedEvent(P) - Constructor for class org.refcodes.checkerboard.PlayerClickedEvent
-
Instantiates a new clicked event.
- PlayerClickedObserver<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Click event observer.
- playerCount() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Player count.
- playerCount() - Method in interface org.refcodes.checkerboard.Players
-
Player count.
- PlayerDraggabilityChangedEvent<P extends Player<P,
?>> - Class in org.refcodes.checkerboard -
The Class PlayerDraggabilityChangedEvent.
- PlayerDraggabilityChangedEvent(P) - Constructor for class org.refcodes.checkerboard.PlayerDraggabilityChangedEvent
-
Instantiates a new draggability changed event.
- PlayerDraggabilityChangedObserver<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Draggability changed event observer.
- PlayerEvent<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Base definition of a player related event.
- PlayerObserver<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
An asynchronous update interface for receiving notifications about Player information as the Player is constructed.
- PlayerPositionChangedEvent<P extends Player<P,
?>> - Class in org.refcodes.checkerboard -
The
PlayerPositionChangedEvent
event. - PlayerPositionChangedEvent(int, int, int, int, P) - Constructor for class org.refcodes.checkerboard.PlayerPositionChangedEvent
-
Instantiates a new position changed event.
- PlayerPositionChangedEvent(Position, Position, P) - Constructor for class org.refcodes.checkerboard.PlayerPositionChangedEvent
-
Instantiates a new position changed event.
- PlayerPositionChangedObserver<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Position changed event observer.
- PlayerRemovedEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class PlayerRemovedEvent.
- PlayerRemovedEvent(P, Checkerboard<P, S>) - Constructor for class org.refcodes.checkerboard.PlayerRemovedEvent
-
Instantiates a new player removed event.
- players() - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Players.
- players() - Method in interface org.refcodes.checkerboard.Players
-
Players.
- players(Class<PLAYER>) - Method in interface org.refcodes.checkerboard.Players
-
Returns an array containing all the players being of the given type.
- Players<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
The Interface Players.
- PlayerStateChangedEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The class PlayerStateChangedEvent.
- PlayerStateChangedEvent(S, S, P) - Constructor for class org.refcodes.checkerboard.PlayerStateChangedEvent
-
Instantiates a new state changed event.
- PlayerStateChangedObserver<P extends Player<P,
S>, S> - Interface in org.refcodes.checkerboard -
State changed event observer.
- PlayerVisibilityChangedEvent<P extends Player<P,
?>> - Class in org.refcodes.checkerboard -
The Class PlayerVisibilityChangedEvent.
- PlayerVisibilityChangedEvent(P) - Constructor for class org.refcodes.checkerboard.PlayerVisibilityChangedEvent
-
Instantiates a new visibility changed event.
- PlayerVisibilityChangedObserver<P extends Player<P,
?>> - Interface in org.refcodes.checkerboard -
Visibility changed event observer.
- POSITION_CHANGED - Enum constant in enum class org.refcodes.checkerboard.PlayerAction
- printPlaygroundDaemon() - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
-
Loops the playground printing via
ConsoleCheckerboardViewer.printPlayground()
. - putPlayer(P) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Put player.
- putPlayer(P) - Method in interface org.refcodes.checkerboard.Players
-
Put player.
- putSprite(Relation<S, IMG>) - Method in interface org.refcodes.checkerboard.Sprites
-
Put sprite.
- putSprite(S, IMG) - Method in interface org.refcodes.checkerboard.Sprites
-
Put sprite.
R
- removePlayer(P) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
-
Removes the player.
- removePlayer(P) - Method in interface org.refcodes.checkerboard.Players
-
Removes the player.
- removeSprite(S) - Method in interface org.refcodes.checkerboard.Sprites
-
Removes the sprite.
- RIGHT - Enum constant in enum class org.refcodes.checkerboard.Direction
- RIGHT - Enum constant in enum class org.refcodes.checkerboard.MooreNeighbourhood
- RIGHT - Enum constant in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
- Rotation - Enum Class in org.refcodes.checkerboard
-
Rotation in terms of "clockwise" or "anti-clockwise".
S
- setBackgroundFactory(BF) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
Sets the background factory for the background factory property.
- setBackgroundFactory(BF) - Method in interface org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryMutator
-
Sets the background factory for the background factory property.
- setCheckerboard(Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardAccessor.CheckerboardMutator
-
Sets the player for the player property.
- setColumnWidth(int) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
- setDraggable(boolean) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
Sets the draggable.
- setFieldDimension(int, int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setFieldDimension(int, int, int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setFieldDimension(Dimension) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setFieldDimension(FieldDimension) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setFieldGap(int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setFieldHeight(int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setFieldWidth(int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setGridDimension(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- setGridDimension(Dimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- setGridDimension(GridDimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- setGridHeight(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- setGridMode(GridMode) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- setGridWidth(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- setMinViewportDimension(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setMinViewportDimension(Dimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setMinViewportDimension(ViewportDimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setMoveMode(MoveMode) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setPlayer(P) - Method in interface org.refcodes.checkerboard.PlayerAccessor.PlayerMutator
-
Sets the player for the player property.
- setPosition(int, int) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
Sets the position.
- setPosition(Position) - Method in class org.refcodes.checkerboard.AbstractPlayer
- setPositionX(int) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
Sets the position X.
- setPositionY(int) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
Sets the position Y.
- setScaleMode(ScaleMode) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- setSpriteFactory(SF) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
Sets the sprite factory for the sprite factory property.
- setSpriteFactory(SF) - Method in interface org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryMutator
-
Sets the sprite factory for the sprite factory property.
- setStatus(S) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
Sets the state.
- setViewportDimension(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportDimension(Dimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportDimension(ViewportDimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportHeight(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportOffset(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportOffset(Offset) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportOffset(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportOffset(ViewportOffset) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportOffsetX(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportOffsetY(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setViewportWidth(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- setVisible(boolean) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
Sets the visible.
- show() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- show() - Method in class org.refcodes.checkerboard.AbstractPlayer
- spriteCount() - Method in interface org.refcodes.checkerboard.Sprites
-
Sprite count.
- SpriteFactory<IMG,
S, CBV extends CheckerboardViewer<?, S, ? extends CBV>> - Interface in org.refcodes.checkerboard -
A factory for creating Sprite objects.
- SpriteFactoryAccessor<SF extends SpriteFactory<?,
?, ?>> - Interface in org.refcodes.checkerboard -
Provides an accessor for a sprite factory property.
- SpriteFactoryAccessor.SpriteFactoryBuilder<SF extends SpriteFactory<?,
?, ?>, B extends SpriteFactoryAccessor.SpriteFactoryBuilder<SF, B>> - Interface in org.refcodes.checkerboard -
Provides a builder method for a sprite factory property returning the builder for applying multiple build operations.
- SpriteFactoryAccessor.SpriteFactoryMutator<SF extends SpriteFactory<?,
?, ?>> - Interface in org.refcodes.checkerboard -
Provides a mutator for a sprite factory property.
- SpriteFactoryAccessor.SpriteFactoryProperty<SF extends SpriteFactory<?,
?, ?>> - Interface in org.refcodes.checkerboard -
Provides a sprite factory property.
- Sprites<SPS extends Sprites<SPS,
S, IMG>, S, IMG> - Interface in org.refcodes.checkerboard -
The Interface Sprites.
- STATE_CHANGED - Enum constant in enum class org.refcodes.checkerboard.PlayerAction
- states() - Method in interface org.refcodes.checkerboard.Sprites
-
States.
- stationary() - Method in class org.refcodes.checkerboard.AbstractPlayer
- subscribeObserver(CheckerboardObserver<P, S>) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
T
- TOP - Enum constant in enum class org.refcodes.checkerboard.MooreNeighbourhood
- TOP - Enum constant in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
- TOP_LEFT - Enum constant in enum class org.refcodes.checkerboard.MooreNeighbourhood
- TOP_RIGHT - Enum constant in enum class org.refcodes.checkerboard.MooreNeighbourhood
- toString() - Method in class org.refcodes.checkerboard.AbstractCheckerboardEvent
- toString() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewerEvent
- toString() - Method in class org.refcodes.checkerboard.AbstractPlayer
- toString() - Method in class org.refcodes.checkerboard.AbstractPlayerEvent
- toString() - Method in class org.refcodes.checkerboard.ChangePlayerPositionEvent
- toString() - Method in class org.refcodes.checkerboard.GridDimensionChangedEvent
- toString() - Method in class org.refcodes.checkerboard.GridPositionClickedEvent
- toString() - Method in class org.refcodes.checkerboard.PlayerDraggabilityChangedEvent
- toString() - Method in class org.refcodes.checkerboard.PlayerPositionChangedEvent
- toString() - Method in class org.refcodes.checkerboard.PlayerStateChangedEvent
- toString() - Method in class org.refcodes.checkerboard.PlayerVisibilityChangedEvent
- toString() - Method in class org.refcodes.checkerboard.ViewportDimensionChangedEvent
- toString() - Method in class org.refcodes.checkerboard.ViewportOffsetChangedEvent
- toTotalHeight() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
- toTotalWidth() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
U
- unsubscribeObserver(CheckerboardObserver<P, S>) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- UP - Enum constant in enum class org.refcodes.checkerboard.Direction
V
- valueOf(String) - Static method in enum class org.refcodes.checkerboard.CheckerboardAction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.refcodes.checkerboard.CheckerboardViewerAction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.refcodes.checkerboard.Direction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.refcodes.checkerboard.MooreNeighbourhood
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.refcodes.checkerboard.NeighbourhoodPositions
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.refcodes.checkerboard.PlayerAction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.refcodes.checkerboard.Rotation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.refcodes.checkerboard.CheckerboardAction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.refcodes.checkerboard.CheckerboardViewerAction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.refcodes.checkerboard.Direction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.refcodes.checkerboard.MooreNeighbourhood
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.refcodes.checkerboard.NeighbourhoodPositions
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.refcodes.checkerboard.PlayerAction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.refcodes.checkerboard.Rotation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in interface org.refcodes.checkerboard.Sprites
-
Values.
- values() - Static method in enum class org.refcodes.checkerboard.VonNeumannNeighbourhood
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VIEWPORT_DIMENSION_CHANGED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardViewerAction
- VIEWPORT_OFFSET_CHANGED - Enum constant in enum class org.refcodes.checkerboard.CheckerboardViewerAction
- ViewportDimensionChangedEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class ViewportDimensionChangedEvent.
- ViewportDimensionChangedEvent(int, int, int, int, int, int, CheckerboardViewer<P, S, ?>) - Constructor for class org.refcodes.checkerboard.ViewportDimensionChangedEvent
-
Instantiates a new viewport dimension changed event.
- ViewportOffsetChangedEvent<P extends Player<P,
S>, S> - Class in org.refcodes.checkerboard -
The Class ViewportOffsetChangedEvent.
- ViewportOffsetChangedEvent(int, int, int, int, CheckerboardViewer<P, S, ?>) - Constructor for class org.refcodes.checkerboard.ViewportOffsetChangedEvent
-
Instantiates a new viewport offset changed event.
- VISIBILITY_CHANGED - Enum constant in enum class org.refcodes.checkerboard.PlayerAction
- VON_NEUMANN - Enum constant in enum class org.refcodes.checkerboard.NeighbourhoodPositions
-
As of
VonNeumannNeighbourhood
. - VonNeumannNeighbourhood - Enum Class in org.refcodes.checkerboard
-
Definitions of the Von-Neumann neighbourhood.
W
- withBackgroundFactory(BF) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With background factory.
- withBackgroundFactory(BF) - Method in interface org.refcodes.checkerboard.BackgroundFactoryAccessor.BackgroundFactoryBuilder
-
Sets the background factory for the background factory property.
- withCheckerboard(Checkerboard<P, S>) - Method in interface org.refcodes.checkerboard.CheckerboardAccessor.CheckerboardBuilder
-
Sets the player for the player property.
- withColumnWidth(int) - Method in class org.refcodes.checkerboard.ConsoleCheckerboardViewer
- withDraggable() - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With draggable.
- withDraggable(boolean) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With draggable.
- withFieldDimension(int, int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With field dimension.
- withFieldDimension(int, int, int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With field dimension.
- withFieldDimension(Dimension) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With field dimension.
- withFieldDimension(FieldDimension) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With field dimension.
- withFieldGap(int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With field gap.
- withFieldHeight(int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With field height.
- withFieldWidth(int) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With field width.
- withGridDimension(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- withGridDimension(Dimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- withGridDimension(GridDimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- withGridHeight(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- withGridMode(GridMode) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- withGridWidth(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboard
- withHide() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With hide.
- withHide() - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With hide.
- withInitialize() - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With initialize.
- withInitialize() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With initialize.
- withMinViewportDimension(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With min viewport dimension.
- withMinViewportDimension(Dimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
- withMinViewportDimension(ViewportDimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With min viewport dimension.
- withMoveMode(MoveMode) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With move mode.
- withPlayer(P) - Method in interface org.refcodes.checkerboard.PlayerAccessor.PlayerBuilder
-
Sets the player for the player property.
- withPosition(int, int) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With position.
- withPosition(Position) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With position.
- withPositionX(int) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With position X.
- withPositionY(int) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With position Y.
- withScaleMode(ScaleMode) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With scale mode.
- withShow() - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With show.
- withShow() - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With show.
- withSprite(Relation<S, IMG>) - Method in interface org.refcodes.checkerboard.Sprites
-
With sprite.
- withSprite(S, IMG) - Method in interface org.refcodes.checkerboard.Sprites
-
With sprite.
- withSpriteFactory(SF) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With sprite factory.
- withSpriteFactory(SF) - Method in interface org.refcodes.checkerboard.SpriteFactoryAccessor.SpriteFactoryBuilder
-
Sets the sprite factory for the sprite factory property.
- withStationary() - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With stationary.
- withStatus(S) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With state.
- withViewportDimension(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport dimension.
- withViewportDimension(Dimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport dimension.
- withViewportDimension(ViewportDimension) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport dimension.
- withViewportHeight(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport height.
- withViewportOffset(int, int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport offset.
- withViewportOffset(Offset) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport offset.
- withViewportOffset(Position) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport offset.
- withViewportOffset(ViewportOffset) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport offset.
- withViewportOffsetX(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport offset X.
- withViewportOffsetY(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport offset Y.
- withViewportWidth(int) - Method in class org.refcodes.checkerboard.AbstractCheckerboardViewer
-
With viewport width.
- withVisible(boolean) - Method in class org.refcodes.checkerboard.AbstractGraphicalCheckerboardViewer
-
With visible.
- withVisible(boolean) - Method in class org.refcodes.checkerboard.AbstractPlayer
-
With visible.
_
- _checkerboard - Variable in class org.refcodes.checkerboard.AbstractCheckerboardViewer
All Classes and Interfaces|All Packages