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.
-
Interface Summary Interface Description BackgroundFactory<IMG,CBV extends GraphicalCheckerboardViewer<?,?,IMG,?,? extends BackgroundFactory<IMG,CBV>,CBV>> A factory for creating Background objects.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.BackgroundFactoryAccessor.BackgroundFactoryMutator<BF extends BackgroundFactory<?,?>> Provides a mutator for a background factory property.BackgroundFactoryAccessor.BackgroundFactoryProperty<BF extends BackgroundFactory<?,?>> Provides a background factory property.BackgroundFactoryAccessor.BackgroundFactoryPropertyBuilder<BF extends BackgroundFactory<?,?>> Provides a background factory property builder.ChangePositionEvent<P extends Player<P,?>> The Interface ChangePositionEvent.ChangePositionObserver<P extends Player<P,?>> Change position event observer.Checkerboard<P extends Player<P,S>,S> The Interface Checkerboard.CheckerboardAccessor<P extends Player<P,S>,S> 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.CheckerboardAccessor.CheckerboardMutator<P extends Player<P,S>,S> Provides a mutator for a player property.CheckerboardAccessor.CheckerboardProperty<P extends Player<P,S>,S> Provides a player property.CheckerboardEvent<P extends Player<P,S>,S> The Interface CheckerboardEvent.CheckerboardObserver<P extends Player<P,S>,S> 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>> The Interface CheckerboardViewer.CheckerboardViewerEvent<P extends Player<P,S>,S> The Interface CheckerboardViewerEvent.ClickedEvent<P extends Player<P,?>> The Interface StateChangedEvent.ClickedObserver<P extends Player<P,?>> Click event observer.ConsoleCheckerboardViewer<P extends Player<P,S>,S> Extends the interfaceCheckerboardViewer
with functionality required for console output.ConsoleSpriteFactory<S> DraggabilityChangedEvent<P extends Player<P,?>> The Interface DraggabilityChangedEvent.DraggabilityChangedObserver<P extends Player<P,?>> Draggability changed event observer.GraphicalCheckerboardViewer<P extends Player<P,S>,S,IMG,SF extends SpriteFactory<IMG,S,?>,BF extends BackgroundFactory<IMG,CBV>,CBV extends GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>> The Interface GraphicalCheckerboardViewer.GridDimensionChangedEvent<P extends Player<P,S>,S> The Interface GridDimensionChangedEvent.GridModeChangedEvent<P extends Player<P,S>,S> The Interface GridModeChangedEvent.Neighbourhood<S> Methods useful for working with neighborhoods related to cellular automatons, such as theVonNeumannNeighbourhood
or theMooreNeighbourhood
.Player<P extends Player<P,S>,S> APlayer
defines an actor (player) on a playground (checkerboard).PlayerAccessor<P extends Player<P,?>> Provides an accessor for a player property.PlayerAccessor.PlayerBuilder<P extends Player<P,?>,B extends PlayerAccessor.PlayerBuilder<P,B>> Provides a builder method for a player property returning the builder for applying multiple build operations.PlayerAccessor.PlayerMutator<P extends Player<P,?>> Provides a mutator for a player property.PlayerAccessor.PlayerProperty<P extends Player<P,?>> Provides a player property.PlayerAccessor.PlayerPropertyBuilder<P extends Player<P,?>> Provides a player property builder.PlayerAddedEvent<P extends Player<P,S>,S> The Interface PlayerAddedEvent.PlayerEvent<P extends Player<P,?>> Base definition of a player related event.PlayerObserver<P extends Player<P,S>,S> An asynchronous update interface for receiving notifications about Player information as the Player is constructed.PlayerRemovedEvent<P extends Player<P,S>,S> The Interface PlayerRemovedEvent.Players<P extends Player<P,?>> The Interface Players.PositionChangedEvent<P extends Player<P,?>> The Interface PositionChangedEvent.PositionChangedObserver<P extends Player<P,?>> Position changed event observer.SpriteFactory<IMG,S,CBV extends CheckerboardViewer<?,S,? extends CBV>> A factory for creating Sprite objects.SpriteFactoryAccessor<SF extends SpriteFactory<?,?,?>> 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.SpriteFactoryAccessor.SpriteFactoryMutator<SF extends SpriteFactory<?,?,?>> Provides a mutator for a sprite factory property.SpriteFactoryAccessor.SpriteFactoryProperty<SF extends SpriteFactory<?,?,?>> Provides a sprite factory property.SpriteFactoryAccessor.SpriteFactoryPropertyBuilder<SF extends SpriteFactory<?,?,?>> Provides a sprite factory property builder.Sprites<SPS extends Sprites<SPS,S,IMG>,S,IMG> The Interface Sprites.StateChangedEvent<P extends Player<P,S>,S> The Interface StateChangedEvent.StateChangedObserver<P extends Player<P,S>,S> State changed event observer.Taito<S> "...ViewportDimensionChangedEvent<P extends Player<P,S>,S> The Interface ViewportDimensionChangedEvent.ViewportOffsetChangedEvent<P extends Player<P,S>,S> The Interface ViewportOffsetChangedEvent.VisibilityChangedEvent<P extends Player<P,?>> The Interface VisibilityChangedEvent.VisibilityChangedObserver<P extends Player<P,?>> Visibility changed event observer. -
Class Summary Class Description AbstractCheckerboard<T extends Checkerboard<P,S>,P extends Player<P,S>,S> The Class CheckerboardImpl.AbstractCheckerboardEvent<P extends Player<P,S>,S> The Class AbstractCheckerboardEvent.AbstractCheckerboardEvent.AbstractPlayerCheckerboardEvent<P extends Player<P,S>,S> 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)
.AbstractCheckerboardViewerEvent<P extends Player<P,S>,S> The Class AbstractCheckerboardViewerEvent.AbstractGraphicalCheckerboardViewer<P extends Player<P,S>,S,IMG,SF extends SpriteFactory<IMG,S,?>,BF extends BackgroundFactory<IMG,CBV>,CBV extends GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>> The Class AbstractGraphicalCheckerboardViewer.AbstractPlayer<P extends Player<P,S>,S> The Class AbstractPlayer.AbstractPlayerEvent<P extends Player<P,?>> The Class AbstractPlayerEvent.ChangePositionEventImpl<P extends Player<P,?>> The Class ChangePositionEventImpl.CheckerboardImpl<P extends Player<P,S>,S> The Class CheckerboardImpl.ClickedEventImpl<P extends Player<P,?>> The Class ChangePositionEventImpl.ConsoleCheckerboardViewerImpl<P extends Player<P,S>,S> Most basic implementation of theCheckerboardViewer
interface printing the current checkerboard as good as it gets.DraggabilityChangedEventImpl<P extends Player<P,?>> The Class DraggabilityChangedEventImpl.GridDimensionChangedEventImpl<P extends Player<P,S>,S> The Class GridDimensionChangedEventImpl.GridModeChangedEventImpl<P extends Player<P,S>,S> The Class GridModeChangedEventImpl.PlayerAddedEventImpl<P extends Player<P,S>,S> The Class PlayerAddedEventImpl.PlayerRemovedEventImpl<P extends Player<P,S>,S> The Class PlayerRemovedEventImpl.PositionChangedEventImpl<P extends Player<P,?>> The Class PositionChangedEventImpl.StateChangedEventImpl<P extends Player<P,S>,S> The Class StateChangedEventImpl.TaitoImpl<S> The Class TaitoImpl.ViewportDimensionChangedEventImpl<P extends Player<P,S>,S> The Class ViewportDimensionChangedEventImpl.ViewportOffsetChangedEventImpl<P extends Player<P,S>,S> The Class ViewportOffsetChangedEventImpl.VisibilityChangedEventImpl<P extends Player<P,?>> The Class VisibilityChangedEventImpl. -
Enum Summary Enum Description CheckerboardAction The Enum CheckerboardAction.CheckerboardViewerAction The Enum CheckerboardViewerAction.MooreNeighbourhood Definitions of the Moore neighbourhood.NeighbourhoodPositions Returns thePosition
elements as of the accordingNeighbourhood
.PlayerAction The Enum PlayerAction.Rotation Rotation in terms of "clockwise" or "anti-clockwise".VonNeumannNeighbourhood Definitions of the Von-Neumann neighbourhood.