Class GameAreaDisplay

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

public class GameAreaDisplay extends UIComponent
Displays the player icon and a larger minimap frame based on the player's image corresponding to its kingdom.
  • Constructor Details

    • GameAreaDisplay

      public GameAreaDisplay(String gameAreaName)
      Constructs a GameAreaDisplay component.
      Parameters:
      gameAreaName - the name of the current game area to be displayed
  • Method Details

    • create

      public void create()
      Initializes the GameAreaDisplay component and calls addActors() to add actors to the stage.
      Overrides:
      create in class UIComponent
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Draws the UI component on the screen.
      Specified by:
      draw in class RenderComponent
      Parameters:
      batch - the SpriteBatch used to draw the component
    • dispose

      public void dispose()
      Disposes of assets used by this component, including the player icon texture and the title label.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class RenderComponent