Interface Interactor


public interface Interactor
Represents Interactor object (i.e. it can interact with some Interactable)
See Also:
  • Method Details

    • getCurrentCells

      List<DiscreteCoordinates> getCurrentCells()
      Get this Interactor's current occupying cells coordinates
      Returns:
      (List of DiscreteCoordinates). May be empty but not null
    • getFieldOfViewCells

      List<DiscreteCoordinates> getFieldOfViewCells()
      Get this Interactor's current field of view cells coordinates
      Returns:
      (List of DiscreteCoordinates). May be empty but not null
    • wantsCellInteraction

      boolean wantsCellInteraction()
      Returns:
      (boolean): true if this require cell interaction
    • wantsViewInteraction

      boolean wantsViewInteraction()
      Returns:
      (boolean): true if this require view interaction
    • interactWith

      void interactWith(Interactable other, boolean isCellInteraction)
      Do this Interactor interact with the given Interactable The interaction is implemented on the interactor side !
      Parameters:
      other - (Interactable). Not null
      isCellInteraction - True if this is a cell interaction