java.lang.Object
com.example.project.models.tiles.Tile
com.example.project.models.tiles.UpgradeTile
Represents the upgrade tiles sold at the shop.
-
Field Summary
Fields inherited from class com.example.project.models.tiles.Tile
ClackSoundPlayer, CORNER_RADIUS, hoverSoundPlayer
-
Constructor Summary
ConstructorsConstructorDescriptionUpgradeTile
(String name, String description, String imagePath) public constructor. -
Method Summary
Methods inherited from class com.example.project.models.tiles.Tile
getClackSoundPlayer, getHoverSoundPlayer
-
Constructor Details
-
UpgradeTile
public constructor.- Parameters:
name
- name.description
- descriptionimagePath
- image path.
-
-
Method Details
-
getName
gets the name.- Returns:
- return name.
-
getDescription
gets the description.- Returns:
- description.
-
getCost
public double getCost()gets the cost- Returns:
- retusn cost.
-
getAbilityImagePath
gets ability image path.- Returns:
- returns loaded Image for this tile.
-
getFXMLPath
Description copied from class:Tile
gets the fxml path.- Specified by:
getFXMLPath
in classTile
- Returns:
- string path.
-