public abstract class Hud
extends java.lang.Object
Constructor and Description |
---|
Hud(com.badlogic.gdx.scenes.scene2d.Stage stage,
com.jonathan.survivor.World world)
Accepts the stage where 2d widgets will be contained and drawn, and the world, where input events will be dispatched.
|
Modifier and Type | Method and Description |
---|---|
void |
addHudListener(HudListener hudListener)
Registers the listener where Hud events will be delegated.
|
void |
draw(float deltaTime)
Draws the Hud to the screen using the stage.
|
abstract void |
reset(float guiWidth,
float guiHeight)
Resets the widgets on the stage.
|
public Hud(com.badlogic.gdx.scenes.scene2d.Stage stage, com.jonathan.survivor.World world)
public void addHudListener(HudListener hudListener)
public void draw(float deltaTime)
public abstract void reset(float guiWidth, float guiHeight)