Package fr.formiko.kokcinelo.view
Class Hud
java.lang.Object
fr.formiko.kokcinelo.tools.KScreen
fr.formiko.kokcinelo.view.Hud
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Game Hud that display player/game stats.
- Since:
- 0.1
- Version:
- 2.3
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()floatcom.badlogic.gdx.scenes.scene2d.StagegetStage()booleanisTimeUp()voidsetGameTime(float gameTime) Set the game time.voidsetPlayerScore(int value) voidupdate(float dt) Update Component that need to be update on time.Methods inherited from class fr.formiko.kokcinelo.tools.KScreen
displayPerf, getCloseButton, getDefautSkin, getDefautSkin, getFPSRacio, getRacio, getRacioHeight, getRacioWidth, needResize
-
Constructor Details
-
Hud
public Hud(com.badlogic.gdx.graphics.g2d.SpriteBatch sb) Main constructor- Parameters:
sb- SpriteBatch to use
-
-
Method Details
-
getStage
public com.badlogic.gdx.scenes.scene2d.Stage getStage() -
setPlayerScore
public void setPlayerScore(int value) -
getGameTime
public float getGameTime() -
setGameTime
public void setGameTime(float gameTime) Set the game time. -
isTimeUp
public boolean isTimeUp() -
update
public void update(float dt) Update Component that need to be update on time.- Parameters:
dt- Delta time that occure since last update
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-