Package 

Class DigitalPanManager


  • 
    public final class DigitalPanManager<P extends Position2D<P>>
    
                        

    Manages panning towards a cardinal (N, S, E, W) or intercardinal (NE, NW, SE, SW) direction. When a direction is added, panning towards it begins and doesn't stop until the given direction is removed.

    • Method Summary

      Modifier and Type Method Description
      final Unit plusAssign(Direction2D direction) Inputs a movement towards a certain direction.
      final Unit minusAssign(Direction2D direction) Stops moving towards a certain direction.
      • Methods inherited from class it.unibo.alchemist.boundary.interactions.DigitalPanManager

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DigitalPanManager

        DigitalPanManager(Integer speed, Long period, <ERROR CLASS><P> wormhole, Function0<Unit> updates)
        Parameters:
        speed - The speed of each movement.
        period - Amount of time (milliseconds) between each movement.
        wormhole - The wormhole used to pan.
        updates - A runnable which will be called whenever a panning movement occurs.