Interface CheckerboardObserver<P extends Player<P,S>,S>

Type Parameters:
P - the generic type
S - 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 Details

    • 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 event
      aSource - 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 event
      aSource - 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 event
      aSource - 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 event
      aSource - 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 event
      aSource - 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 event
      aSource - The according source (origin).