Class AnimalRouletteDisplay

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, Renderable, Comparable<Renderable>

public class AnimalRouletteDisplay extends UIComponent
  • Constructor Details

    • AnimalRouletteDisplay

      public AnimalRouletteDisplay()
  • Method Details

    • create

      public void create()
      Description copied from class: Component
      Called when the entity is created and registered. Initial logic such as calls to GetComponent should be made here, not in the constructor which is called before an entity is finished.
      Overrides:
      create in class UIComponent
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Description copied from class: RenderComponent
      Draw the renderable. Should be called only by the renderer, not manually.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - Batch to render to.
    • getSelectedAnimal

      public String getSelectedAnimal()
    • getCurrentAnimalIndex

      public int getCurrentAnimalIndex()
    • getLeftButton

      public CustomButton getLeftButton()
      Retrieve the left roulette button
      Returns:
      the left button
    • getRightButton

      public CustomButton getRightButton()
      Retrieve the right roulette button
      Returns:
      the right button