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 voidbakeIteratorCache()rebuilds the reference list for fields which will be called for the depthsorting.voidcreateDepthList(java.util.LinkedList<AbstractGameObject> depthlist)Sorts the list of game objects.voidrenderSorted()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:AbstractSorterSorts the list of game objects.- Specified by:
createDepthListin classAbstractSorter
-
renderSorted
public void renderSorted()
Description copied from class:AbstractSorterRenders in sorted order- Specified by:
renderSortedin classAbstractSorter
-
bakeIteratorCache
public void bakeIteratorCache()
Description copied from class:AbstractSorterrebuilds the reference list for fields which will be called for the depthsorting.- Overrides:
bakeIteratorCachein classAbstractSorter
-
-