Package rekit.logic.gui
Class LifeGui
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.LevelGuiElement
rekit.logic.gui.LifeGui
This
GuiElement
realizes a status view of the Player's
Lives.-
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class rekit.logic.gui.LevelGuiElement
getScene
Methods inherited from class rekit.logic.gui.GuiElement
getPos, getSize, isVisible, render, setPos, setVisible
-
Constructor Details
-
LifeGui
Create the status view for lives.- Parameters:
scene
- the scene
-
-
Method Details
-
logicLoop
public void logicLoop()Description copied from class:GuiElement
Template method that will be called periodically after being added to a
IScene
.Should be overwritten in sub classes for implementing custom logic, physics emulation, time-based actions, ...
- Overrides:
logicLoop
in classGuiElement
-
internalRender
Description copied from class:GuiElement
Template method that will be called periodically after being added to a
IScene
. Must be as performant as possible to keep the FPS low, since it will be called in every render-loop.Should be overwritten in sub classes for custom visualization using the
GameGrid
.- Specified by:
internalRender
in classGuiElement
- Parameters:
f
- theGameGrid
that represents the games field and supplies primitive drawing operations.
-