Class AbstractPlayerEvent<P extends Player<P,?>>

java.lang.Object
org.refcodes.checkerboard.AbstractPlayerEvent<P>
Type Parameters:
P - the generic type
All Implemented Interfaces:
PlayerEvent<P>, org.refcodes.mixin.ActionAccessor<PlayerAction>, org.refcodes.mixin.SourceAccessor<P>, org.refcodes.observer.GenericActionEvent<PlayerAction,P>, org.refcodes.observer.GenericEvent<P>
Direct Known Subclasses:
ChangePlayerPositionEvent, PlayerClickedEvent, PlayerDraggabilityChangedEvent, PlayerPositionChangedEvent, PlayerStateChangedEvent, PlayerVisibilityChangedEvent

public abstract class AbstractPlayerEvent<P extends Player<P,?>> extends Object implements PlayerEvent<P>
The Class AbstractPlayerEvent.
  • Nested Class Summary

    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.mixin.SourceAccessor

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

    Constructors
    Constructor
    Description
    AbstractPlayerEvent(PlayerAction aAction, P aSource)
    Instantiates a new abstract player event.
  • Method Summary

    Modifier and Type
    Method
    Description

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AbstractPlayerEvent

      public AbstractPlayerEvent(PlayerAction aAction, P aSource)
      Instantiates a new abstract player event.
      Parameters:
      aAction - the action
      aSource - The according source (origin).
  • Method Details

    • getAction

      public PlayerAction getAction()
      Specified by:
      getAction in interface org.refcodes.mixin.ActionAccessor<P extends Player<P,?>>
    • getSource

      public P getSource()
      Specified by:
      getSource in interface org.refcodes.mixin.SourceAccessor<P extends Player<P,?>>
    • toString

      public String toString()
      Overrides:
      toString in class Object