public class ExplorationHud extends Hud
Modifier and Type | Field and Description |
---|---|
static com.badlogic.gdx.graphics.Color |
ARROW_BUTTON_COLOR
Stores the color of the arrow buttons.
|
static float |
ARROW_BUTTON_X_OFFSET
Stores the offsets of both arrow buttons.
|
static float |
ARROW_BUTTON_Y_OFFSET |
static float |
BACKPACK_BUTTON_X_OFFSET
Stores the offsets of the backpack button.
|
static float |
BACKPACK_BUTTON_Y_OFFSET |
static float |
BACKPACK_HIT_BOX_SCALE
Holds the scale of the backpack button's hit box.
|
static float |
PAUSE_BUTTON_X_OFFSET
Stores the offset of the pause button.
|
static float |
PAUSE_BUTTON_Y_OFFSET |
static float |
PAUSE_HIT_BOX_SCALE
Holds the scale of the pause button's hit box.
|
Constructor and Description |
---|
ExplorationHud(com.badlogic.gdx.scenes.scene2d.Stage stage,
com.jonathan.survivor.World world)
Accepts the stage where 2d widgets will be drawn and placed, and the world, which will receive information about
button presses.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float deltaTime)
Draws the Hud to the screen using the stage.
|
void |
reset(float guiWidth,
float guiHeight)
Called when the stage must be reset to draw the widgets contained in this class.
|
addHudListener
public static final float ARROW_BUTTON_X_OFFSET
public static final float ARROW_BUTTON_Y_OFFSET
public static final com.badlogic.gdx.graphics.Color ARROW_BUTTON_COLOR
public static final float BACKPACK_BUTTON_X_OFFSET
public static final float BACKPACK_BUTTON_Y_OFFSET
public static final float BACKPACK_HIT_BOX_SCALE
public static final float PAUSE_BUTTON_X_OFFSET
public static final float PAUSE_BUTTON_Y_OFFSET
public static final float PAUSE_HIT_BOX_SCALE
public ExplorationHud(com.badlogic.gdx.scenes.scene2d.Stage stage, com.jonathan.survivor.World world)
public void draw(float deltaTime)
Hud