Class WeatherIconDisplay

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

public class WeatherIconDisplay extends UIComponent
  • Constructor Details

    • WeatherIconDisplay

      public WeatherIconDisplay()
  • Method Details

    • create

      public void create()
      Creates weather icon object for the display.
      Overrides:
      create in class UIComponent
    • update

      public void update()
      Checks the status of the weather each time update is called.
      Overrides:
      update in class Component
    • dispose

      public void dispose()
      Removes the weather icon from the screen when called.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent
    • getTimer

      public Timer getTimer()
      Getter method to get the timer object associated with the WeatherDisplay.
      Returns:
      Timer object.
    • getWeatherIcon

      public WeatherIcon getWeatherIcon()
      Getter method to get the WeatherIcon associated with the object.
      Returns:
      WeatherIcon object.
    • getTimerCountdown

      public com.badlogic.gdx.scenes.scene2d.ui.Label getTimerCountdown()
      Getter method to get the timer countdown associated with the object.
      Returns:
      Label timer-countdown.
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Draws to the terminal.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - SpriteBatch batch