Class CellMouseIndicator

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

public class CellMouseIndicator extends AreaEntity
  • Constructor Details

    • CellMouseIndicator

      public CellMouseIndicator(Area area)
  • Method Details

    • getCurrentCells

      public List<DiscreteCoordinates> getCurrentCells()
      Description copied from interface: Interactable
      Get this Interactor's current occupying cells coordinates
      Returns:
      (List of DiscreteCoordinates). May be empty but not null
    • takeCellSpace

      public boolean takeCellSpace()
      Description copied from interface: Interactable
      Indicate if the current Interactable take the whole cell space or not i.e. only one Interactable which takeCellSpace can be in a cell (how many Interactable which don't takeCellSpace can also be in the same cell)
      Returns:
      (boolean)
    • isCellInteractable

      public boolean isCellInteractable()
      Returns:
      (boolean): true if this is able to have cell interactions
    • isViewInteractable

      public boolean isViewInteractable()
      Returns:
      (boolean): true if this is able to have view interactions
    • acceptInteraction

      public void acceptInteraction(AreaInteractionVisitor v, boolean isCellInteraction)
      Description copied from interface: Interactable
      Call directly the interaction on this if accepted
      Parameters:
      v - (AreaInteractionVisitor) : the visitor
    • update

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

      public void draw(Canvas canvas)
      Description copied from interface: Graphics
      Renders itself on specified canvas.
      Parameters:
      canvas - target, not null