Interface Pickable

All Known Implementing Classes:
Dot, Energizer, Life

public interface Pickable
Defines the methods that any pickable item must have.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Method that allows us to know if the item has been picked or not.
    void
    setPicked(boolean picked)
    Sets the item as picked/unpicked.
  • Method Details

    • isPicked

      boolean isPicked()
      Method that allows us to know if the item has been picked or not.
      Returns:
      true if the item has been picked. Otherwise, false.
    • setPicked

      void setPicked(boolean picked)
      Sets the item as picked/unpicked.
      Parameters:
      picked - State: true if the item was picked. Otherwise, false.