Package rekit.logic.gui.parallax
Class HeapElement
java.lang.Object
rekit.logic.gameelements.GameElement
rekit.logic.gui.parallax.BackgroundElement
rekit.logic.gui.parallax.HeapElement
- All Implemented Interfaces:
Collidable
- Direct Known Subclasses:
HeapElementCloud
,HeapElementMountain
This class shall be extended by each heap element.
-
Nested Class Summary
Nested classes/interfaces inherited from interface rekit.logic.Collidable
Collidable.Optional
-
Field Summary
FieldsFields inherited from class rekit.logic.gui.parallax.BackgroundElement
backgroundZ, parent
Fields inherited from class rekit.logic.gameelements.GameElement
deleteMe, deltaTime, team, visible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract HeapElement
protected int
protected int
protected int
protected int
protected int
protected int
protected int
protected int
protected float
protected float
protected float
protected float
protected float
protected float
protected float
elemXMu()
protected float
protected float
elemYMu()
protected float
protected float
protected float
abstract void
Template method that will be called periodically after being added to aIScene
.Methods inherited from class rekit.logic.gui.parallax.BackgroundElement
addDamage, collidedWithSolid, getLives, getZHint
Methods inherited from class rekit.logic.gameelements.GameElement
checkCollision, create, destroy, getDeleteMe, getFrame, getPos, getScene, getSize, getTeam, getVel, getZ, init, isAddableToGroup, isVisible, killBoost, logicLoop, reactToCollision, render, setPos, setScene, setSize, setVel
-
Field Details
-
col
-
-
Constructor Details
-
HeapElement
-
-
Method Details
-
heapDistanceMu
protected float heapDistanceMu() -
heapDistanceSigma
protected float heapDistanceSigma() -
elemNumMu
protected float elemNumMu() -
elemNumSigma
protected float elemNumSigma() -
elemColRMu
protected int elemColRMu() -
elemColRSigma
protected int elemColRSigma() -
elemColGMu
protected int elemColGMu() -
elemColGSigma
protected int elemColGSigma() -
elemColBMu
protected int elemColBMu() -
elemColBSigma
protected int elemColBSigma() -
elemColAMu
protected int elemColAMu() -
elemColASigma
protected int elemColASigma() -
elemXMu
protected float elemXMu() -
elemXSigma
protected float elemXSigma() -
elemYMu
protected float elemYMu() -
elemYSigma
protected float elemYSigma() -
elemWidthMu
protected float elemWidthMu() -
elemWidthSigma
protected float elemWidthSigma() -
elemHeightMu
protected float elemHeightMu() -
elemHeightSigma
protected float elemHeightSigma() -
internalRender
Description copied from class:GameElement
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
.- Overrides:
internalRender
in classGameElement
- Parameters:
f
- theGameGrid
that represents the games field and supplies primitive drawing operations.
-
create
-