Class GridPositionClickedEvent<P extends Player<P,S>,S>

java.lang.Object
org.refcodes.checkerboard.AbstractCheckerboardEvent<P,S>
org.refcodes.checkerboard.GridPositionClickedEvent<P,S>
Type Parameters:
P - the generic type
All Implemented Interfaces:
CheckerboardEvent<P,S>, org.refcodes.graphical.Position, org.refcodes.graphical.PosXAccessor, org.refcodes.graphical.PosYAccessor, org.refcodes.mixin.ActionAccessor<CheckerboardAction>, org.refcodes.mixin.SourceAccessor<Checkerboard<P,S>>, org.refcodes.observer.GenericActionEvent<CheckerboardAction,Checkerboard<P,S>>, org.refcodes.observer.GenericEvent<Checkerboard<P,S>>

public class GridPositionClickedEvent<P extends Player<P,S>,S> extends AbstractCheckerboardEvent<P,S> implements CheckerboardEvent<P,S>, org.refcodes.graphical.Position
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.refcodes.checkerboard.AbstractCheckerboardEvent

    AbstractCheckerboardEvent.AbstractPlayerCheckerboardEvent<P extends Player<P,S>,S>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor

    org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>

    Nested classes/interfaces inherited from interface org.refcodes.graphical.Position

    org.refcodes.graphical.Position.PositionBuilder<B extends org.refcodes.graphical.Position.PositionBuilder<B>>, org.refcodes.graphical.Position.PositionMutator, org.refcodes.graphical.Position.PositionProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.PosXAccessor

    org.refcodes.graphical.PosXAccessor.PosXBuilder<B extends org.refcodes.graphical.PosXAccessor.PosXBuilder<B>>, org.refcodes.graphical.PosXAccessor.PosXMutator, org.refcodes.graphical.PosXAccessor.PosXProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.PosYAccessor

    org.refcodes.graphical.PosYAccessor.PosYBuilder<B extends org.refcodes.graphical.PosYAccessor.PosYBuilder<B>>, org.refcodes.graphical.PosYAccessor.PosYMutator, org.refcodes.graphical.PosYAccessor.PosYProperty

    Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor

    org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CheckerboardAction
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GridPositionClickedEvent(int aPosX, int aPosY, Checkerboard<P,S> aSource)
    Instantiates a new position changed event.
    GridPositionClickedEvent(org.refcodes.graphical.Position aPosition, Checkerboard<P,S> aSource)
    Instantiates a new position changed event.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    int

    Methods inherited from class org.refcodes.checkerboard.AbstractCheckerboardEvent

    getAction, getSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.refcodes.mixin.ActionAccessor

    getAction

    Methods inherited from interface org.refcodes.graphical.Position

    toAddTo, toSubFrom

    Methods inherited from interface org.refcodes.mixin.SourceAccessor

    getSource
  • Field Details

  • Constructor Details

    • GridPositionClickedEvent

      public GridPositionClickedEvent(int aPosX, int aPosY, Checkerboard<P,S> aSource)
      Instantiates a new position changed event.
      Parameters:
      aPosX - the pos X
      aPosY - the pos Y
      aSource - The according source (origin).
    • GridPositionClickedEvent

      public GridPositionClickedEvent(org.refcodes.graphical.Position aPosition, Checkerboard<P,S> aSource)
      Instantiates a new position changed event.
      Parameters:
      aPosition - the position
      aSource - The according source (origin).
  • Method Details

    • getPositionX

      public int getPositionX()
      Specified by:
      getPositionX in interface org.refcodes.graphical.PosXAccessor
    • getPositionY

      public int getPositionY()
      Specified by:
      getPositionY in interface org.refcodes.graphical.PosYAccessor
    • toString

      public String toString()
      Overrides:
      toString in class AbstractCheckerboardEvent<P extends Player<P,S>,S>