AnimalRouletteDisplay for Land, Water, and Air - UQcsse3200/2024-studio-2 GitHub Wiki
The AnimalRouletteDisplay1
class represents the user interface for selecting animals in the game. This class extends the AnimalRouletteDisplay1
and provides specific information about land/air/water animals, such as the background image and the animals available for selection.
Initialising Function Call
private void initializeDisplay();
This initializes the screen with an animal and its respective background.
Parameters:
stage
: The stage where the screen will be displayedskin
: The UI skin for styling the components
Methods
protected String getBackgroundImagePath();
Overrides the getBackgroundImagePath()
method from the AnimalRouletteDisplay1
class to return the path of the background image specific to the animal kingdom.
Returns:
String
- the file path for the land/water/air animal background image which returns the provided Background Image.
protected String[] getAnimalImagePaths();
Overrides the getAnimalImagePaths()
method from AnimalRouletteDisplay1
to provide the image paths for the animals available for selection in the current kingdom.
Returns:
String[]
- an array of file paths for land, air, and water animal images, including the current selections for each animal type.
Inherited Methods from AnimalRouletteDisplay
This class inherits the common functionality for selection screens from AnimalRouletteDisplay1
. This includes rendering, handling user inputs, and displaying animal options.