Class GameOverWindow
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.rendering.RenderComponent
com.csse3200.game.ui.UIComponent
com.csse3200.game.components.gameover.GameOverWindow
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,Renderable
,Comparable<Renderable>
Class to create and display a window when the game ends. This should probably be changed for a
custom dialog.
-
Field Summary
Fields inherited from class com.csse3200.game.ui.UIComponent
skin, stage
Fields inherited from class com.csse3200.game.rendering.RenderComponent
colour
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.csse3200.game.ui.UIComponent
getLayer, getZIndex
Methods inherited from class com.csse3200.game.rendering.RenderComponent
compareTo, getColour, render, setColour
Methods inherited from class com.csse3200.game.components.Component
earlyUpdate, getEntity, getPriority, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate
-
Constructor Details
-
GameOverWindow
public GameOverWindow()
-
-
Method Details
-
create
public void create()Creates the game over window.- Overrides:
create
in classUIComponent
-
update
public void update()Checks the status of the popup display -
dispose
public void dispose()Frees the memory.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classRenderComponent
-
draw
protected void draw(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) Draws a sprite batch.- Specified by:
draw
in classRenderComponent
- Parameters:
batch
- Batch to render to.
-