Class Firefly

  • All Implemented Interfaces:
    BoulderDashPlayer, org.refcodes.checkerboard.Player<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>, org.refcodes.command.Worker<BoulderDashBoard,java.lang.RuntimeException>, org.refcodes.component.Configurable<BoulderDashBoard>, org.refcodes.graphical.DraggableAccessor, org.refcodes.graphical.DraggableAccessor.DraggableBuilder<BoulderDashPlayer>, org.refcodes.graphical.DraggableAccessor.DraggableMutator, org.refcodes.graphical.DraggableAccessor.DraggableProperty, org.refcodes.graphical.Position, org.refcodes.graphical.Position.PositionBuilder<BoulderDashPlayer>, org.refcodes.graphical.Position.PositionMutator, org.refcodes.graphical.Position.PositionProperty, org.refcodes.graphical.PosXAccessor, org.refcodes.graphical.PosXAccessor.PosXBuilder<BoulderDashPlayer>, org.refcodes.graphical.PosXAccessor.PosXMutator, org.refcodes.graphical.PosXAccessor.PosXProperty, org.refcodes.graphical.PosYAccessor, org.refcodes.graphical.PosYAccessor.PosYBuilder<BoulderDashPlayer>, org.refcodes.graphical.PosYAccessor.PosYMutator, org.refcodes.graphical.PosYAccessor.PosYProperty, org.refcodes.graphical.VisibleAccessor, org.refcodes.graphical.VisibleAccessor.VisibleBuilder<BoulderDashPlayer>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty, org.refcodes.mixin.Disposable, org.refcodes.mixin.Loggable, org.refcodes.mixin.StateAccessor<org.refcodes.data.ext.boulderdash.BoulderDashStatus>, org.refcodes.mixin.StateAccessor.StateBuilder<org.refcodes.data.ext.boulderdash.BoulderDashStatus,BoulderDashPlayer>, org.refcodes.mixin.StateAccessor.StateMutator<org.refcodes.data.ext.boulderdash.BoulderDashStatus>, org.refcodes.mixin.StateAccessor.StateProperty<org.refcodes.data.ext.boulderdash.BoulderDashStatus>, org.refcodes.observer.Observable<org.refcodes.checkerboard.PlayerObserver<BoulderDashPlayer,org.refcodes.data.ext.boulderdash.BoulderDashStatus>>

    public class Firefly
    extends AbstractBoulderDashCrawler
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.component.Configurable

        org.refcodes.component.Configurable.ConfigureAutomaton<CTX extends java.lang.Object>, org.refcodes.component.Configurable.ConfigureBuilder<CTX extends java.lang.Object,B extends org.refcodes.component.Configurable.ConfigureBuilder<CTX,B>>
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.Disposable

        org.refcodes.mixin.Disposable.Disposedable
      • 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, org.refcodes.graphical.Position.PositionPropertyBuilder
      • 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.StateAccessor

        org.refcodes.mixin.StateAccessor.StateBuilder<S extends java.lang.Object,B extends org.refcodes.mixin.StateAccessor.StateBuilder<S,B>>, org.refcodes.mixin.StateAccessor.StateMutator<S extends java.lang.Object>, org.refcodes.mixin.StateAccessor.StateProperty<S extends java.lang.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
    • Field Summary

      • Fields inherited from interface org.refcodes.mixin.Loggable

        RUNTIME_LOGGER_CLASS, RUNTIME_LOGGER_FACTORY_CLASS, RUNTIME_LOGGER_FACTORY_METHOD
    • Constructor Summary

      Constructors 
      Constructor Description
      Firefly()
      Constructs the plain instance.
      Firefly​(int aPosX, int aPosY)
      Constructs the instance with the given coordinates.
    • Method Summary

      • Methods inherited from class org.refcodes.observer.AbstractObservable

        clear, dispose, doHandleEventListenerException, fireEvent, getThreadPriority, hasObserverSubscription, isEmpty, isObserversActive, observers, setObserversActive, setThreadPriority, size, subscribeObserver, unsubscribeObserver
      • Methods inherited from class org.refcodes.checkerboard.AbstractPlayer

        click, draggable, fireEvent, getPositionX, getPositionY, getState, hide, isDraggable, isVisible, setDraggable, setPosition, setPosition, setPositionX, setPositionY, setState, setVisible, show, stationary, toString, withDraggable, withDraggable, withHide, withPosition, withPosition, withPositionX, withPositionY, withShow, withState, withStationary, withVisible
      • Methods inherited from interface org.refcodes.component.Configurable

        initializeUnchecked
      • Methods inherited from interface org.refcodes.graphical.DraggableAccessor

        isDraggable
      • Methods inherited from interface org.refcodes.graphical.DraggableAccessor.DraggableBuilder

        withDraggable, withDraggable, withStationary
      • Methods inherited from interface org.refcodes.graphical.DraggableAccessor.DraggableMutator

        draggable, setDraggable, stationary
      • Methods inherited from interface org.refcodes.mixin.Loggable

        alert, alert, critical, critical, debug, error, info, notice, panic, trace, warn, warn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.refcodes.observer.Observable

        hasObserverSubscription, subscribeObserver, unsubscribeObserver
      • Methods inherited from interface org.refcodes.checkerboard.Player

        blink, click, moveDown, moveLeft, moveRight, moveUp, onChangePosition, onClicked, onDraggabilityChanged, onPositionChanged, onStateChanged, onVisibilityChanged
      • Methods inherited from interface org.refcodes.graphical.Position

        toAddTo, toSubFrom
      • Methods inherited from interface org.refcodes.graphical.Position.PositionBuilder

        withPosition, withPosition
      • Methods inherited from interface org.refcodes.graphical.Position.PositionMutator

        setPosition, setPosition
      • Methods inherited from interface org.refcodes.graphical.Position.PositionProperty

        addTo, subFrom
      • Methods inherited from interface org.refcodes.graphical.PosXAccessor

        getPositionX
      • Methods inherited from interface org.refcodes.graphical.PosXAccessor.PosXBuilder

        withPositionX
      • Methods inherited from interface org.refcodes.graphical.PosXAccessor.PosXMutator

        setPositionX
      • Methods inherited from interface org.refcodes.graphical.PosYAccessor

        getPositionY
      • Methods inherited from interface org.refcodes.graphical.PosYAccessor.PosYBuilder

        withPositionY
      • Methods inherited from interface org.refcodes.graphical.PosYAccessor.PosYMutator

        setPositionY
      • Methods inherited from interface org.refcodes.mixin.StateAccessor

        getState
      • Methods inherited from interface org.refcodes.mixin.StateAccessor.StateBuilder

        withState
      • Methods inherited from interface org.refcodes.mixin.StateAccessor.StateMutator

        setState
      • Methods inherited from interface org.refcodes.graphical.VisibleAccessor

        isVisible
      • Methods inherited from interface org.refcodes.graphical.VisibleAccessor.VisibleBuilder

        withHide, withShow, withVisible
      • Methods inherited from interface org.refcodes.graphical.VisibleAccessor.VisibleMutator

        hide, setVisible, show
    • Constructor Detail

      • Firefly

        public Firefly()
        Constructs the plain instance.
      • Firefly

        public Firefly​(int aPosX,
                       int aPosY)
        Constructs the instance with the given coordinates.
        Parameters:
        aPosX - The x-position for the instance being created.
        aPosY - The y-position for the instance being created.