Module org.refcodes.checkerboard
Package org.refcodes.checkerboard
Interface CheckerboardObserver<P extends Player<P,S>,S>
- Type Parameters:
P
- the generic typeS
- the generic type
- All Superinterfaces:
org.refcodes.observer.ObservableObserver<Checkerboard<P,
S>>
- All Known Subinterfaces:
CheckerboardViewer<P,
,S, CBV> GraphicalCheckerboardViewer<P,
S, IMG, SF, BF, CBV>
- All Known Implementing Classes:
AbstractCheckerboardViewer
,AbstractGraphicalCheckerboardViewer
,ConsoleCheckerboardViewer
public interface CheckerboardObserver<P extends Player<P,S>,S>
extends org.refcodes.observer.ObservableObserver<Checkerboard<P,S>>
An asynchronous update interface for receiving notifications about
Checkerboard information as the Checkerboard is constructed.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onChangePlayerPositionEvent
(ChangePlayerPositionEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onCheckerboardEvent
(CheckerboardEvent<P, S> aCheckerboardEvent) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onGridDimensionChangedEvent
(GridDimensionChangedEvent<P, S> aCheckerboardEvent) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onGridModeChangedEvent
(GridModeChangedEvent<P, S> aCheckerboardEvent) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onGridPositionClickedEvent
(GridPositionClickedEvent<P, S> aCheckerboardEvent) This method is called when a grid element of the checkerboard bas been clicked.void
onPlayerAddedEvent
(PlayerAddedEvent<P, S> aCheckerboardEvent) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onPlayerDraggabilityChangedEvent
(PlayerDraggabilityChangedEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onPlayerEvent
(PlayerEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onPlayerPositionChangedEvent
(PlayerPositionChangedEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onPlayerRemovedEvent
(PlayerRemovedEvent<P, S> aCheckerboardEvent) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onPlayerStateChangedEvent
(PlayerStateChangedEvent<P, S> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onPlayerVisibilityChangedEvent
(PlayerVisibilityChangedEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onViewportDimensionChangedEvent
(ViewportDimensionChangedEvent<P, S> aCheckerboardEvent) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.void
onViewportOffsetChangedEvent
(ViewportOffsetChangedEvent<P, S> aCheckerboardEvent) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.Methods inherited from interface org.refcodes.observer.ObservableObserver
onSubscribe, onUnsubscribe
-
Method Details
-
onCheckerboardEvent
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onPlayerAddedEvent
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onPlayerRemovedEvent
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onGridModeChangedEvent
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onGridDimensionChangedEvent
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onViewportOffsetChangedEvent
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onViewportDimensionChangedEvent
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onGridPositionClickedEvent
This method is called when a grid element of the checkerboard bas been clicked.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onPlayerEvent
This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aPlayerEvent
- the player eventaSource
- The according source (origin).
-
onChangePlayerPositionEvent
void onChangePlayerPositionEvent(ChangePlayerPositionEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) throws org.refcodes.exception.VetoExceptionThis method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aPlayerEvent
- the player eventaSource
- The according source (origin).- Throws:
org.refcodes.exception.VetoException
- the veto exception
-
onPlayerPositionChangedEvent
void onPlayerPositionChangedEvent(PlayerPositionChangedEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aPlayerEvent
- the player eventaSource
- The according source (origin).
-
onPlayerStateChangedEvent
void onPlayerStateChangedEvent(PlayerStateChangedEvent<P, S> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aPlayerEvent
- the player eventaSource
- The according source (origin).
-
onPlayerVisibilityChangedEvent
void onPlayerVisibilityChangedEvent(PlayerVisibilityChangedEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aPlayerEvent
- the player eventaSource
- The according source (origin).
-
onPlayerDraggabilityChangedEvent
void onPlayerDraggabilityChangedEvent(PlayerDraggabilityChangedEvent<P> aPlayerEvent, Checkerboard<P, S> aSource) This method is called when information about an Checkerboard which was previously requested using an asynchronous interface becomes available.- Parameters:
aPlayerEvent
- the player eventaSource
- The according source (origin).
-