public class PlayerImpl<S> extends org.refcodes.observer.impls.AbstractObservable<PlayerObserver<S>,PlayerEvent<S>> implements Player<S>
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.StateAccessor.StateBuilder<S,B extends org.refcodes.mixin.StateAccessor.StateBuilder<S,B>>, org.refcodes.mixin.StateAccessor.StateMutator<S>, org.refcodes.mixin.StateAccessor.StateProperty<S>org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B extends org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisiblePropertyorg.refcodes.graphical.DraggableAccessor.DraggableBuilder<B extends org.refcodes.graphical.DraggableAccessor.DraggableBuilder<B>>, org.refcodes.graphical.DraggableAccessor.DraggableMutator, org.refcodes.graphical.DraggableAccessor.DraggableProperty| Constructor and Description |
|---|
PlayerImpl(int aPosX,
int aPosY) |
PlayerImpl(org.refcodes.graphical.Position aPosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
draggable() |
protected boolean |
fireEvent(PlayerEvent<S> aEvent,
PlayerObserver<S> aObserver,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
int |
getPositionX() |
int |
getPositionY() |
S |
getState() |
void |
hide() |
boolean |
isDraggable() |
boolean |
isVisible() |
void |
setDraggable(boolean isDraggable) |
void |
setPosition(int aPosX,
int aPosY) |
void |
setPosition(org.refcodes.graphical.Position aPosition) |
void |
setPositionX(int aPosX) |
void |
setPositionY(int aPosY) |
void |
setState(S aState) |
void |
setVisible(boolean isVisible) |
void |
show() |
void |
stationary() |
String |
toString() |
Player<S> |
withDraggable() |
Player<S> |
withDraggable(boolean isDraggable) |
Player<S> |
withHide() |
Player<S> |
withPosition(int aPosX,
int aPosY) |
Player<S> |
withPosition(org.refcodes.graphical.Position aPosition) |
Player<S> |
withPositionX(int aPosX) |
Player<S> |
withPositionY(int aPosY) |
Player<S> |
withShow() |
Player<S> |
withState(S aState) |
Player<S> |
withStationary() |
Player<S> |
withVisible(boolean isVisible) |
clear, dispose, doHandleEventListenerException, fireEvent, getThreadPriority, hasObserverSubscription, isEmpty, setThreadPriority, size, subscribeObserver, unsubscribeObserverpublic PlayerImpl(int aPosX,
int aPosY)
public PlayerImpl(org.refcodes.graphical.Position aPosition)
public Player<S> withPosition(int aPosX, int aPosY) throws org.refcodes.exception.VetoException.VetoRuntimeException
public Player<S> withPosition(org.refcodes.graphical.Position aPosition) throws org.refcodes.exception.VetoException.VetoRuntimeException
public void setPosition(int aPosX,
int aPosY)
throws org.refcodes.exception.VetoException.VetoRuntimeException
setPosition in interface org.refcodes.graphical.Position.PositionMutatororg.refcodes.exception.VetoException.VetoRuntimeExceptionpublic void setPosition(org.refcodes.graphical.Position aPosition)
throws org.refcodes.exception.VetoException.VetoRuntimeException
setPosition in interface org.refcodes.graphical.Position.PositionMutatororg.refcodes.exception.VetoException.VetoRuntimeExceptionpublic Player<S> withPositionY(int aPosY) throws org.refcodes.exception.VetoException.VetoRuntimeException
public void setPositionY(int aPosY)
throws org.refcodes.exception.VetoException.VetoRuntimeException
setPositionY in interface org.refcodes.graphical.PosYAccessor.PosYMutatororg.refcodes.exception.VetoException.VetoRuntimeExceptionpublic Player<S> withPositionX(int aPosX) throws org.refcodes.exception.VetoException.VetoRuntimeException
public void setState(S aState)
setState in interface org.refcodes.mixin.StateAccessor.StateMutator<S>public void setPositionX(int aPosX)
setPositionX in interface org.refcodes.graphical.PosXAccessor.PosXMutatorpublic void setVisible(boolean isVisible)
setVisible in interface org.refcodes.graphical.VisibleAccessor.VisibleMutatorpublic void show()
show in interface org.refcodes.graphical.VisibleAccessor.VisibleMutatorpublic void hide()
hide in interface org.refcodes.graphical.VisibleAccessor.VisibleMutatorpublic boolean isVisible()
isVisible in interface org.refcodes.graphical.VisibleAccessorpublic void setDraggable(boolean isDraggable)
setDraggable in interface org.refcodes.graphical.DraggableAccessor.DraggableMutatorpublic void draggable()
draggable in interface org.refcodes.graphical.DraggableAccessor.DraggableMutatorpublic void stationary()
stationary in interface org.refcodes.graphical.DraggableAccessor.DraggableMutatorpublic boolean isDraggable()
isDraggable in interface org.refcodes.graphical.DraggableAccessorpublic int getPositionX()
getPositionX in interface org.refcodes.graphical.PosXAccessorpublic int getPositionY()
getPositionY in interface org.refcodes.graphical.PosYAccessorpublic S getState()
getState in interface org.refcodes.mixin.StateAccessor<S>protected boolean fireEvent(PlayerEvent<S> aEvent, PlayerObserver<S> aObserver, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) throws org.refcodes.exception.VetoException
fireEvent in class org.refcodes.observer.impls.AbstractObservable<PlayerObserver<S>,PlayerEvent<S>>org.refcodes.exception.VetoExceptionCopyright © 2016. All rights reserved.