Module org.refcodes.checkerboard
Package org.refcodes.checkerboard
Class StateChangedEvent<P extends Player<P,S>,S>
java.lang.Object
org.refcodes.checkerboard.AbstractPlayerEvent<P>
org.refcodes.checkerboard.StateChangedEvent<P,S>
- Type Parameters:
P
- the generic typeS
- The state if the player (dead, alive, strong, weak, king, queen, PacMan, ghost, fire, wood, water, strong queen, weak king, etc).
- All Implemented Interfaces:
PlayerEvent<P>
,org.refcodes.mixin.ActionAccessor<PlayerAction>
,org.refcodes.mixin.SourceAccessor<P>
,org.refcodes.mixin.StatusAccessor<S>
,org.refcodes.observer.GenericActionEvent<PlayerAction,
,P> org.refcodes.observer.GenericEvent<P>
public class StateChangedEvent<P extends Player<P,S>,S>
extends AbstractPlayerEvent<P>
implements PlayerEvent<P>, org.refcodes.mixin.StatusAccessor<S>
The class StateChangedEvent.
-
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>
Nested classes/interfaces inherited from interface org.refcodes.mixin.StatusAccessor
org.refcodes.mixin.StatusAccessor.StatusBuilder<S extends Object,
B extends org.refcodes.mixin.StatusAccessor.StatusBuilder<S, B>>, org.refcodes.mixin.StatusAccessor.StatusMutator<S extends Object>, org.refcodes.mixin.StatusAccessor.StatusProperty<S extends Object> -
Field Summary
-
Constructor Summary
ConstructorDescriptionStateChangedEvent
(S aState, S aPrecedingState, P aSource) Instantiates a new state changed event. -
Method Summary
Methods inherited from class org.refcodes.checkerboard.AbstractPlayerEvent
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.mixin.SourceAccessor
getSource
-
Field Details
-
ACTION
-
-
Constructor Details
-
StateChangedEvent
Instantiates a new state changed event.- Parameters:
aState
- the stateaPrecedingState
- the preceding stateaSource
- The according source (origin).
-
-
Method Details