Class AnimalRouletteDisplay1
java.lang.Object
com.csse3200.game.components.animal.AnimalRouletteDisplay1
- Direct Known Subclasses:
AirAnimalSelectionDisplay
,LandAnimalSelectionDisplay
,WaterAnimalSelectionDisplay
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CustomButton[]
protected com.badlogic.gdx.scenes.scene2d.ui.Image[]
-
Constructor Summary
ConstructorsConstructorDescriptionAnimalRouletteDisplay1
(com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin) -
Method Summary
Modifier and TypeMethodDescriptiongetAnimalDescription
(int index) com.badlogic.gdx.scenes.scene2d.ui.Image
String[]
com.badlogic.gdx.scenes.scene2d.ui.Image[]
getAnimalType
(int index) protected abstract String
com.badlogic.gdx.scenes.scene2d.ui.Skin
getSkin()
com.badlogic.gdx.scenes.scene2d.Stage
getStage()
protected void
void
updateAnimalImage
(String imagePath) void
updateBackground
(int animalIndex)
-
Field Details
-
animalImages
protected com.badlogic.gdx.scenes.scene2d.ui.Image[] animalImages -
animalButtons
-
-
Constructor Details
-
AnimalRouletteDisplay1
public AnimalRouletteDisplay1(com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
-
-
Method Details
-
getBackgroundImagePath
-
updateBackground
public void updateBackground(int animalIndex) -
updateAnimalImage
-
initializeAnimalImagesAndButtons
protected void initializeAnimalImagesAndButtons() -
getAnimalImagePaths
-
getAnimalDescription
-
getAnimalType
-
getAnimalImage
public com.badlogic.gdx.scenes.scene2d.ui.Image getAnimalImage() -
getBackButton
-
getLeftButton
-
getRightButton
-
getSkin
public com.badlogic.gdx.scenes.scene2d.ui.Skin getSkin() -
getStage
public com.badlogic.gdx.scenes.scene2d.Stage getStage() -
getAnimalImages
public com.badlogic.gdx.scenes.scene2d.ui.Image[] getAnimalImages() -
getAnimalButtons
-