Interface Renderable

All Superinterfaces:
Comparable<Renderable>
All Known Implementing Classes:
AchievementDisplay, AchievementPopup, AlphaTextureRenderComponent, AnimalRouletteDisplay, AnimationRenderComponent, AnimationRenderWithAudioComponent, CombatAnimationDisplay, CombatButtonDisplay, CombatExitDisplay, CombatInventoryDisplay, CombatStatsChangePopup, CombatStatsDisplay, GameAreaDisplay, GameOverLoseDisplay, InventoryDisplay, LightingEngine, LoadingDisplay, LoginRegisterDisplay, LootBoxOverlayComponent, MainGameExitDisplay, MainMenuDisplay, MazeGameAreaDisplay, MazePlayerScoreDisplay, MazePlayerStatsDisplay, MinigameLeaderboard, MiniMapDisplay, NotifManager, ParticleEffectRenderer, PauseDisplay, PerformanceDisplay, PlayerInventoryDisplay, PlayerStatsDisplay, PlayerStatsDisplay2, QuestDisplay, QuestPopup, QuickTimeEventDisplay, RenderComponent, SettingsMenu, SettingsMenuDisplay, StatDisplay, StoryDisplay, TerminalDisplay, TerrainComponent, TextureRenderComponent, TimeDisplay, UIComponent

public interface Renderable extends Comparable<Renderable>
Can be rendered onto the screen given a Sprite batch.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Layer to be rendered in.
    float
    Z index controls rendering order within a layer.
    void
    render(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
    Render the renderable.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • render

      void render(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Render the renderable. Should be called only by the renderer, not manually.
      Parameters:
      batch - Batch to render to.
    • getZIndex

      float getZIndex()
      Z index controls rendering order within a layer. Higher Z index is drawn on top.
      Returns:
      Z index
    • getLayer

      int getLayer()
      Layer to be rendered in. Higher layers will be rendered on top of lower layers.
      Returns:
      layer