Module org.refcodes.checkerboard
Package 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.
-
ClassDescriptionThe Class CheckerboardImpl.The Class AbstractCheckerboardEvent.The Class AbstractPlayerCheckerboardEvent.AbstractCheckerboardViewer<P extends Player<P,
S>, S, IMG, SF extends SpriteFactory<IMG, S, ?>, CBV extends CheckerboardViewer<P, S, CBV>> In order to provide aCheckerboard
, register an observer by invokingObservable.subscribeObserver(Object)
.The Class AbstractCheckerboardViewerEvent.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>> The Class AbstractGraphicalCheckerboardViewer.The Class AbstractPlayer.The Class AbstractPlayerEvent.BackgroundFactory<IMG>A factory for creating Background objects according to a given (checkerboard's)Raster
.BackgroundFactoryAccessor<BF extends BackgroundFactory<?>>Provides an accessor for a background factory property.BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF extends BackgroundFactory<?>,B extends BackgroundFactoryAccessor.BackgroundFactoryBuilder<BF, B>> Provides a builder method for a background factory property returning the builder for applying multiple build operations.Provides a mutator for a background factory property.Provides a background factory property.The Class ChangePlayerPositionEvent.Change position event observer.The Interface Checkerboard.Provides an accessor for a player property.CheckerboardAccessor.CheckerboardBuilder<P extends Player<P,S>, S, B extends CheckerboardAccessor.CheckerboardBuilder<P, S, B>> Provides a builder method for a player property returning the builder for applying multiple build operations.Provides a mutator for a player property.Provides a player property.The Enum CheckerboardAction.The Interface CheckerboardEvent.An asynchronous update interface for receiving notifications about Checkerboard information as the Checkerboard is constructed.The Interface CheckerboardViewer.The Enum CheckerboardViewerAction.The Interface CheckerboardViewerEvent.Extends the interfaceCheckerboardViewer
with functionality required for console output: Most basic implementation of theCheckerboardViewer
interface printing the current checkerboard as good as it gets.Definitions of the directions up, down, left and right.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>> The Interface GraphicalCheckerboardViewer.TheGraphicalPlayerState
defines properties required to process aPlayer
state change on aGraphicalCheckerboardViewer
.TheGridDimensionChangedEvent
event.The Class GridModeChangedEvent.TheGridPositionClickedEvent
event.Meeple<S>As theGraphicalCheckerboardViewer
handlesPlayer
instances in terms of "sprites", the most basic directly usablePlayer
type is theMeeple
.Definitions of the Moore neighbourhood.Methods useful for working with neighborhoods related to cellular automatons, such as theVonNeumannNeighbourhood
or theMooreNeighbourhood
.Returns thePosition
elements as of the accordingNeighbourhood
.APlayer
defines an actor (player) on a playground (checkerboard).Provides an accessor for a player property.Provides a builder method for a player property returning the builder for applying multiple build operations.Provides a mutator for a player property.Provides a player property.The Enum PlayerAction.The Class PlayerAddedEvent.ThePlayerClickedEvent
class.Click event observer.The Class PlayerDraggabilityChangedEvent.Draggability changed event observer.Base definition of a player related event.An asynchronous update interface for receiving notifications about Player information as the Player is constructed.ThePlayerPositionChangedEvent
event.Position changed event observer.The Class PlayerRemovedEvent.The Interface Players.The class PlayerStateChangedEvent.State changed event observer.The Class PlayerVisibilityChangedEvent.Visibility changed event observer.Rotation in terms of "clockwise" or "anti-clockwise".SpriteFactory<IMG,S, CBV extends CheckerboardViewer<?, S, ? extends CBV>> A factory for creating Sprite objects.Provides an accessor for a sprite factory property.SpriteFactoryAccessor.SpriteFactoryBuilder<SF extends SpriteFactory<?,?, ?>, B extends SpriteFactoryAccessor.SpriteFactoryBuilder<SF, B>> Provides a builder method for a sprite factory property returning the builder for applying multiple build operations.Provides a mutator for a sprite factory property.Provides a sprite factory property.The Interface Sprites.The Class ViewportDimensionChangedEvent.The Class ViewportOffsetChangedEvent.Definitions of the Von-Neumann neighbourhood.