Class GameScreen

java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.scenes.scene2d.Stage
All Implemented Interfaces:
com.badlogic.gdx.InputProcessor, com.badlogic.gdx.Screen, com.badlogic.gdx.utils.Disposable
Direct Known Subclasses:
SinglePlayerGameScreen

public abstract class GameScreen extends MapScreen
Extension of AbstractScreen with game utilities
  • Field Details

    • gameType

      protected GameScreen.GameType gameType
    • player

      public static Player player
    • playerId

      public int playerId
    • actionlog

      protected ActionLog actionlog
    • rootTable

      protected com.badlogic.gdx.scenes.scene2d.ui.Table rootTable
    • stats

      public GameStatistics stats
  • Constructor Details

    • GameScreen

      public GameScreen(MapData mapdata)
  • Method Details

    • getActionLog

      public ActionLog getActionLog()
    • getGameType

      public GameScreen.GameType getGameType()
    • getDragAndDrop

      public com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop getDragAndDrop()
    • calculateStatistics

      public void calculateStatistics(boolean completedSucessfully)
    • act

      public void act(float time)
      Overrides:
      act in class MapScreen
    • reveal

      public void reveal(int x, int y)
    • getDrawables

      public TreeSet<Drawable> getDrawables()
      Overrides:
      getDrawables in class MapScreen
    • draw

      public void draw()
      Overrides:
      draw in class MapScreen
    • itemsNear

      public com.badlogic.gdx.utils.Array<Item> itemsNear(com.badlogic.gdx.math.Circle circle)
    • itemsNear

      public com.badlogic.gdx.utils.Array<Item> itemsNear(com.badlogic.gdx.math.Vector2 center, float radius)