Class Meeple<S>

java.lang.Object
org.refcodes.observer.AbstractObservable<PlayerObserver<P,S>,PlayerEvent<P>>
org.refcodes.checkerboard.AbstractPlayer<Meeple<S>,S>
org.refcodes.checkerboard.Meeple<S>
Type Parameters:
S - the generic type of the Meeple state.
All Implemented Interfaces:
Player<Meeple<S>,S>, org.refcodes.graphical.DraggableAccessor, org.refcodes.graphical.DraggableAccessor.DraggableBuilder<Meeple<S>>, org.refcodes.graphical.DraggableAccessor.DraggableMutator, org.refcodes.graphical.DraggableAccessor.DraggableProperty, org.refcodes.graphical.Position, org.refcodes.graphical.Position.PositionBuilder<Meeple<S>>, org.refcodes.graphical.Position.PositionMutator, org.refcodes.graphical.Position.PositionProperty, org.refcodes.graphical.PosXAccessor, org.refcodes.graphical.PosXAccessor.PosXBuilder<Meeple<S>>, org.refcodes.graphical.PosXAccessor.PosXMutator, org.refcodes.graphical.PosXAccessor.PosXProperty, org.refcodes.graphical.PosYAccessor, org.refcodes.graphical.PosYAccessor.PosYBuilder<Meeple<S>>, org.refcodes.graphical.PosYAccessor.PosYMutator, org.refcodes.graphical.PosYAccessor.PosYProperty, org.refcodes.graphical.VisibleAccessor, org.refcodes.graphical.VisibleAccessor.VisibleBuilder<Meeple<S>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty, org.refcodes.mixin.Disposable, org.refcodes.mixin.StatusAccessor<S>, org.refcodes.mixin.StatusAccessor.StatusBuilder<S,Meeple<S>>, org.refcodes.mixin.StatusAccessor.StatusMutator<S>, org.refcodes.mixin.StatusAccessor.StatusProperty<S>, org.refcodes.observer.Observable<PlayerObserver<Meeple<S>,S>>

public class Meeple<S> extends AbstractPlayer<Meeple<S>,S>
As the GraphicalCheckerboardViewer handles Player instances in terms of "sprites", the most basic directly usable Player type is the Meeple.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.graphical.DraggableAccessor

    org.refcodes.graphical.DraggableAccessor.DraggableBuilder<B extends org.refcodes.graphical.DraggableAccessor.DraggableBuilder<B>>, org.refcodes.graphical.DraggableAccessor.DraggableMutator, org.refcodes.graphical.DraggableAccessor.DraggableProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.Position

    org.refcodes.graphical.Position.PositionBuilder<B extends org.refcodes.graphical.Position.PositionBuilder<B>>, org.refcodes.graphical.Position.PositionMutator, org.refcodes.graphical.Position.PositionProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.PosXAccessor

    org.refcodes.graphical.PosXAccessor.PosXBuilder<B extends org.refcodes.graphical.PosXAccessor.PosXBuilder<B>>, org.refcodes.graphical.PosXAccessor.PosXMutator, org.refcodes.graphical.PosXAccessor.PosXProperty

    Nested classes/interfaces inherited from interface org.refcodes.graphical.PosYAccessor

    org.refcodes.graphical.PosYAccessor.PosYBuilder<B extends org.refcodes.graphical.PosYAccessor.PosYBuilder<B>>, org.refcodes.graphical.PosYAccessor.PosYMutator, org.refcodes.graphical.PosYAccessor.PosYProperty

    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>

    Nested classes/interfaces inherited from interface org.refcodes.graphical.VisibleAccessor

    org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B extends org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty
  • Constructor Summary

    Constructors
    Constructor
    Description
    Meeple(int aPosX, int aPosY)
    Instantiates a new Meeple.
    Meeple(org.refcodes.graphical.Position aPosition)
    Instantiates a new Meeple.
  • Method Summary

    Methods inherited from class org.refcodes.observer.AbstractObservable

    clear, dispose, doHandleEventListenerException, fireEvent, getThreadPriority, hasObserver, isEmpty, isObserversActive, observers, setObserversActive, setThreadPriority, size, subscribeObserver, unsubscribeObserver

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.refcodes.graphical.DraggableAccessor.DraggableProperty

    letDraggable

    Methods inherited from interface org.refcodes.observer.Observable

    hasObserver, subscribeObserver, unsubscribeObserver

    Methods inherited from interface org.refcodes.graphical.Position

    toAddTo, toSubFrom

    Methods inherited from interface org.refcodes.graphical.Position.PositionProperty

    addTo, letPosition, letPosition, subFrom

    Methods inherited from interface org.refcodes.graphical.PosXAccessor.PosXProperty

    letPositionX

    Methods inherited from interface org.refcodes.graphical.PosYAccessor.PosYProperty

    letPositionY

    Methods inherited from interface org.refcodes.mixin.StatusAccessor.StatusProperty

    letStatus

    Methods inherited from interface org.refcodes.graphical.VisibleAccessor.VisibleProperty

    letVisible
  • Constructor Details

    • Meeple

      public Meeple(int aPosX, int aPosY)
      Instantiates a new Meeple.
      Parameters:
      aPosX - the pos X
      aPosY - the pos Y
    • Meeple

      public Meeple(org.refcodes.graphical.Position aPosition)
      Instantiates a new Meeple.
      Parameters:
      aPosition - the position