Class DraggableAreaEntity

All Implemented Interfaces:
Interactable, Acoustics, Actor, Draggable, Graphics, Updatable, Positionable

public abstract class DraggableAreaEntity extends AreaEntity implements Draggable
  • Constructor Details

  • Method Details

    • update

      public void update(float deltaTime)
      Description copied from interface: Updatable
      Simulates a single time step. Note: Need to be Override
      Specified by:
      update in interface Actor
      Specified by:
      update in interface Updatable
      Parameters:
      deltaTime - elapsed time since last update, in seconds, non-negative
    • getInitialPosition

      public DiscreteCoordinates getInitialPosition()
    • canDrag

      public boolean canDrag()
      Specified by:
      canDrag in interface Draggable
      Returns:
      (boolean): true if this is able to be drag
    • isDragging

      public boolean isDragging()
      Specified by:
      isDragging in interface Draggable
      Returns:
      (boolean): true if this is dragging
    • wantsDropInteraction

      public boolean wantsDropInteraction()
      Specified by:
      wantsDropInteraction in interface Draggable
      Returns:
      (boolean): true if this wants to be dropped
    • acknowledgeDrop

      public void acknowledgeDrop()
      Description copied from interface: Draggable
      acknowledge that a drop do happened
      Specified by:
      acknowledgeDrop in interface Draggable