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>
,ConsoleCheckerboardViewer<P,S>
,GraphicalCheckerboardViewer<P,S,IMG,SF,BF,CBV>
- All Known Implementing Classes:
AbstractCheckerboardViewer
,AbstractGraphicalCheckerboardViewer
,ConsoleCheckerboardViewerImpl
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onChangePositionEvent(ChangePositionEvent<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
onDraggabilityChangedEvent(DraggabilityChangedEvent<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
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
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
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
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
onPositionChangedEvent(PositionChangedEvent<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
onStateChangedEvent(StateChangedEvent<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
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.void
onVisibilityChangedEvent(VisibilityChangedEvent<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.
-
-
-
Method Detail
-
onCheckerboardEvent
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.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onPlayerAddedEvent
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.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onPlayerRemovedEvent
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.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onGridModeChangedEvent
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.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onGridDimensionChangedEvent
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.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onViewportOffsetChangedEvent
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.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onViewportDimensionChangedEvent
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.- Parameters:
aCheckerboardEvent
- the checkerboard event
-
onPlayerEvent
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.- Parameters:
aPlayerEvent
- the player eventaSource
- The according source (origin).
-
onChangePositionEvent
void onChangePositionEvent(ChangePositionEvent<P> aPlayerEvent, Checkerboard<P,S> aSource) throws org.refcodes.exception.VetoException
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).- Throws:
org.refcodes.exception.VetoException
- the veto exception
-
onPositionChangedEvent
void onPositionChangedEvent(PositionChangedEvent<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).
-
onStateChangedEvent
void onStateChangedEvent(StateChangedEvent<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).
-
onVisibilityChangedEvent
void onVisibilityChangedEvent(VisibilityChangedEvent<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).
-
onDraggabilityChangedEvent
void onDraggabilityChangedEvent(DraggabilityChangedEvent<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).
-
-