Package rekit.logic.gui
Class BackgroundElement
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.BackgroundElement
The standard background of the Game.
-
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundElement
(IScene scene, String imageSource) Create the background by scene and image. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Template method that will be called periodically after being added to aIScene
.Methods inherited from class rekit.logic.gui.GuiElement
getPos, getScene, getSize, isVisible, logicLoop, render, setPos, setVisible
-
Constructor Details
-
BackgroundElement
Create the background by scene and image.- Parameters:
scene
- the sceneimageSource
- the path to the image
-
-
Method Details
-
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.
-