P - the generic typePlayerEvent<P>, PositionChangedEvent<P>, org.refcodes.graphical.Position, org.refcodes.graphical.PosXAccessor, org.refcodes.graphical.PosYAccessor, org.refcodes.graphical.Vector, org.refcodes.graphical.VectorXAccessor, org.refcodes.graphical.VectorYAccessor, org.refcodes.mixin.ActionAccessor<PlayerAction>, org.refcodes.mixin.SourceAccessor<P>, org.refcodes.observer.GenericActionEvent<PlayerAction,P>, org.refcodes.observer.GenericEvent<P>public class PositionChangedEventImpl<P extends Player<P,?>> extends AbstractPlayerEvent<P> implements PositionChangedEvent<P>
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>org.refcodes.graphical.Position.PositionBuilder<B extends org.refcodes.graphical.Position.PositionBuilder<B>>, org.refcodes.graphical.Position.PositionMutator, org.refcodes.graphical.Position.PositionProperty, org.refcodes.graphical.Position.PositionPropertyBuilderorg.refcodes.graphical.PosXAccessor.PosXBuilder<B extends org.refcodes.graphical.PosXAccessor.PosXBuilder<B>>, org.refcodes.graphical.PosXAccessor.PosXMutator, org.refcodes.graphical.PosXAccessor.PosXPropertyorg.refcodes.graphical.PosYAccessor.PosYBuilder<B extends org.refcodes.graphical.PosYAccessor.PosYBuilder<B>>, org.refcodes.graphical.PosYAccessor.PosYMutator, org.refcodes.graphical.PosYAccessor.PosYPropertyorg.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>org.refcodes.graphical.Vector.VectorBuilder<B extends org.refcodes.graphical.Vector.VectorBuilder<B>>, org.refcodes.graphical.Vector.VectorMutator, org.refcodes.graphical.Vector.VectorProperty, org.refcodes.graphical.Vector.VectorPropertyBuilderorg.refcodes.graphical.VectorXAccessor.VectorXBuilder<B extends org.refcodes.graphical.VectorXAccessor.VectorXBuilder<B>>, org.refcodes.graphical.VectorXAccessor.VectorXMutator, org.refcodes.graphical.VectorXAccessor.VectorXPropertyorg.refcodes.graphical.VectorYAccessor.VectorYBuilder<B extends org.refcodes.graphical.VectorYAccessor.VectorYBuilder<B>>, org.refcodes.graphical.VectorYAccessor.VectorYMutator, org.refcodes.graphical.VectorYAccessor.VectorYPropertyACTION| Constructor | Description |
|---|---|
PositionChangedEventImpl(int aPosX,
int aPosY,
int aPrePosX,
int aPrePosY,
P aSource) |
Instantiates a new position changed event.
|
PositionChangedEventImpl(org.refcodes.graphical.Position aPosition,
org.refcodes.graphical.Position aPrecedingPosition,
P aSource) |
Instantiates a new position changed event.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getPositionX() |
|
int |
getPositionY() |
|
org.refcodes.graphical.Position |
getPrecedingPosition() |
Gets the preceding position.
|
int |
getVectorX() |
|
int |
getVectorY() |
|
String |
toString() |
getAction, getSourcepublic PositionChangedEventImpl(int aPosX,
int aPosY,
int aPrePosX,
int aPrePosY,
P aSource)
aPosX - the pos XaPosY - the pos YaPrePosX - the pre pos XaPrePosY - the pre pos YaSource - The according source (origin).public PositionChangedEventImpl(org.refcodes.graphical.Position aPosition,
org.refcodes.graphical.Position aPrecedingPosition,
P aSource)
aPosition - the positionaPrecedingPosition - the preceding positionaSource - The according source (origin).public org.refcodes.graphical.Position getPrecedingPosition()
getPrecedingPosition in interface PositionChangedEvent<P extends Player<P,?>>public int getPositionX()
getPositionX in interface org.refcodes.graphical.PosXAccessorpublic int getPositionY()
getPositionY in interface org.refcodes.graphical.PosYAccessorpublic int getVectorX()
getVectorX in interface org.refcodes.graphical.VectorXAccessorpublic int getVectorY()
getVectorY in interface org.refcodes.graphical.VectorYAccessorCopyright © 2018. All rights reserved.