Class BaseElement

java.lang.Object
gameelement.element.BaseElement
Direct Known Subclasses:
DewDropElement, HeartBerryElement, SparkEmberElement, StarDustElement

public abstract class BaseElement extends Object
Base model for every selectable element used in potion recipes.
  • Field Details

    • name

      protected String name
      Element display name.
    • imagePath

      protected String imagePath
      Element image resource path.
  • Constructor Details

    • BaseElement

      public BaseElement(String name, String imagePath)
      Creates an element with its display name and image resource path.
      Parameters:
      name - element name shown by the game
      imagePath - resource file used for the element image
  • Method Details

    • getName

      public String getName()
      Gets the element display name.
      Returns:
      element name
    • getImagePath

      public String getImagePath()
      Gets the image resource path for this element.
      Returns:
      image file path