Package org.refcodes.checkerboard
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:
ChangePositionEventImpl
,ClickedEventImpl
,DraggabilityChangedEventImpl
,PositionChangedEventImpl
,StateChangedEventImpl
,VisibilityChangedEventImpl
public abstract class AbstractPlayerEvent<P extends Player<P,?>> extends java.lang.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 java.lang.Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends java.lang.Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description AbstractPlayerEvent(PlayerAction aAction, P aSource)
Instantiates a new abstract player event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlayerAction
getAction()
P
getSource()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AbstractPlayerEvent
public AbstractPlayerEvent(PlayerAction aAction, P aSource)
Instantiates a new abstract player event.- Parameters:
aAction
- the actionaSource
- The according source (origin).
-
-
Method Detail
-
getAction
public PlayerAction getAction()
-
getSource
public P getSource()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-