java.lang.Object
com.example.project.models.tiles.Tile
- Direct Known Subclasses:
EmptyTileSlot
,LetterTile
,UpgradeTile
Parent tile class for objects in the scene that are tiles. Upgrades and tiles.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GameSoundPlayer
static final int
corner radius (rounded corners).protected GameSoundPlayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongets the sound player that plays the click sound.abstract String
gets the fxml path.gets the hover sound player
-
Field Details
-
hoverSoundPlayer
-
ClackSoundPlayer
-
CORNER_RADIUS
public static final int CORNER_RADIUScorner radius (rounded corners).- See Also:
-
-
Constructor Details
-
Tile
public Tile()
-
-
Method Details
-
getFXMLPath
gets the fxml path.- Returns:
- string path.
-
getHoverSoundPlayer
gets the hover sound player- Returns:
- sound player
-
getClackSoundPlayer
gets the sound player that plays the click sound.- Returns:
- sound player.
-