Class Overlay
- java.lang.Object
-
- bytemusketeers.heslingtonhustle.ui.Overlay
-
- All Implemented Interfaces:
Drawable
,com.badlogic.gdx.utils.Disposable
- Direct Known Subclasses:
GameOverMenu
,HeadsUpDisplay
,PauseMenu
public abstract class Overlay extends java.lang.Object implements Drawable
- Author:
- ENG1 Team 23 (Cohort 3)
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
GENERAL_FORM_PADDING
The standard level of padding, specified in pixels, to be used for formActor
elements being used in extensions of theOverlay
private com.badlogic.gdx.scenes.scene2d.Stage
stage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addActor(com.badlogic.gdx.scenes.scene2d.Actor actor)
Adds anActor
to theOverlay
void
dispose()
Releases all resources used by theOverlay
void
render(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
Renders the currentOverlay
to the givenSpriteBatch
-
-
-
Field Detail
-
GENERAL_FORM_PADDING
static final int GENERAL_FORM_PADDING
The standard level of padding, specified in pixels, to be used for formActor
elements being used in extensions of theOverlay
- See Also:
- Constant Field Values
-
stage
private final com.badlogic.gdx.scenes.scene2d.Stage stage
- See Also:
addActor(Actor)
,render(SpriteBatch)
-
-
Method Detail
-
addActor
void addActor(com.badlogic.gdx.scenes.scene2d.Actor actor)
Adds anActor
to theOverlay
- Parameters:
actor
- The element to add to theStage
- See Also:
Actor
-
dispose
public void dispose()
Releases all resources used by theOverlay
- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
-