Class UpgradeTile

java.lang.Object
com.example.project.models.tiles.Tile
com.example.project.models.tiles.UpgradeTile

public class UpgradeTile extends Tile
Represents the upgrade tiles sold at the shop.
  • Constructor Details

    • UpgradeTile

      public UpgradeTile(String name, String description, String imagePath)
      public constructor.
      Parameters:
      name - name.
      description - description
      imagePath - image path.
  • Method Details

    • getName

      public String getName()
      gets the name.
      Returns:
      return name.
    • getDescription

      public String getDescription()
      gets the description.
      Returns:
      description.
    • getCost

      public double getCost()
      gets the cost
      Returns:
      retusn cost.
    • getAbilityImagePath

      public String getAbilityImagePath()
      gets ability image path.
      Returns:
      returns loaded Image for this tile.
    • getFXMLPath

      public String getFXMLPath()
      Description copied from class: Tile
      gets the fxml path.
      Specified by:
      getFXMLPath in class Tile
      Returns:
      string path.