Interface Clickable

All Superinterfaces:
Renderable
All Known Subinterfaces:
Actor, GameEntity, GroundItem, Interactable, ItemWidget, NPC, Player, SceneObject, WidgetChild
All Known Implementing Classes:
Tile

public interface Clickable extends Renderable
An entity that can be clicked on.
  • Method Details

    • click

      default boolean click()
      Left mouse click on the entity.
      Returns:
      true if the click succeeded, false otherwise
    • click

      boolean click(boolean rightClick)
      Click on the entity.
      Parameters:
      rightClick - true to use the right mouse button to click
      Returns:
      true if the click succeeded, false otherwise
    • hover

      boolean hover()
      Hover on the entity.
      Returns:
      true if the hover succeeded, false otherwise