Class DepthValueSort
- java.lang.Object
-
- com.bombinggames.wurfelengine.core.sorting.AbstractSorter
-
- com.bombinggames.wurfelengine.core.sorting.DepthValueSort
-
public class DepthValueSort extends AbstractSorter
-
-
Field Summary
-
Fields inherited from class com.bombinggames.wurfelengine.core.sorting.AbstractSorter
camera, gameView, iteratorCache
-
-
Constructor Summary
Constructors Constructor Description DepthValueSort(Camera camera)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bakeIteratorCache()
rebuilds the reference list for fields which will be called for the depthsorting.void
createDepthList(java.util.LinkedList<AbstractGameObject> depthlist)
Sorts the list of game objects.void
renderSorted()
Renders in sorted order-
Methods inherited from class com.bombinggames.wurfelengine.core.sorting.AbstractSorter
getTopLevel, handleMessage, updateCacheIfOutdated
-
-
-
-
Constructor Detail
-
DepthValueSort
public DepthValueSort(Camera camera)
-
-
Method Detail
-
createDepthList
public void createDepthList(java.util.LinkedList<AbstractGameObject> depthlist)
Description copied from class:AbstractSorter
Sorts the list of game objects.- Specified by:
createDepthList
in classAbstractSorter
-
renderSorted
public void renderSorted()
Description copied from class:AbstractSorter
Renders in sorted order- Specified by:
renderSorted
in classAbstractSorter
-
bakeIteratorCache
public void bakeIteratorCache()
Description copied from class:AbstractSorter
rebuilds the reference list for fields which will be called for the depthsorting.- Overrides:
bakeIteratorCache
in classAbstractSorter
-
-