Class WorldMapRenderComponent

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

public class WorldMapRenderComponent extends UIComponent
Renders the world map background
  • Constructor Details

    • WorldMapRenderComponent

      public WorldMapRenderComponent(com.badlogic.gdx.math.Vector2 worldSize)
      Constructor for the world map render component.
      Parameters:
      worldSize - the size of the world map
  • Method Details

    • draw

      protected 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.