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 intGENERAL_FORM_PADDINGThe standard level of padding, specified in pixels, to be used for formActorelements being used in extensions of theOverlayprivate com.badlogic.gdx.scenes.scene2d.Stagestage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddActor(com.badlogic.gdx.scenes.scene2d.Actor actor)Adds anActorto theOverlayvoiddispose()Releases all resources used by theOverlayvoidrender(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)Renders the currentOverlayto 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 formActorelements 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 anActorto theOverlay- Parameters:
actor- The element to add to theStage- See Also:
Actor
-
dispose
public void dispose()
Releases all resources used by theOverlay- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
-