Package de.extio.spacecraft.shared.bo
Class ClientDrawEntitySupport
- java.lang.Object
-
- de.extio.spacecraft.shared.bo.ClientDrawEntitySupport
-
public final class ClientDrawEntitySupport extends Object
Support business object to draw entities on tiles with all of their layers and complexity
-
-
Constructor Summary
Constructors Constructor Description ClientDrawEntitySupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddrawEntity(AbstractEntity entity, CoordI2 absPosition, CoordI2 relPosition, RenderingBoLayer baseLayer_, ClientSelectionUtils clientSelectionUtils_, List<RenderingBo> drawEntityBoList_, boolean showSelection, boolean selectionZebraEffect, boolean showStatusIcons, List<RenderingBo> renderingBo)Generates all RenderingBo to draw an entity
-
-
-
Method Detail
-
drawEntity
public static void drawEntity(AbstractEntity entity, CoordI2 absPosition, CoordI2 relPosition, RenderingBoLayer baseLayer_, ClientSelectionUtils clientSelectionUtils_, List<RenderingBo> drawEntityBoList_, boolean showSelection, boolean selectionZebraEffect, boolean showStatusIcons, List<RenderingBo> renderingBo)
Generates all RenderingBo to draw an entity- Parameters:
entity- The entity to drawabsPosition- Optional Absolute draw positionrelPosition- Optional Relative draw positionbaseLayer_- Optional Base layer to draw. Default is RenderingBoLayer.UI0_0. This would usually result in UI0_0, UI0_1 and UI0_2 used.clientSelectionUtils_- Optional optimization, pass null or clientSelectionUtils. Should be cached by invoker when executing in a batch. Only needed if showSelection is true.drawEntityBoList_- Optional optimization, pass null or an ArrayList here. drawEntity() will clear it first. Should be cached by invoker when executing in a batch.showSelection- Show DrawTileHighlightRenderingBo if entity is selectedselectionZebraEffect- Display DrawTileHighlightRenderingBo in zebra mode if entity is selected, otherwise in normal mode. Only relevant if showSelection is active.showStatusIcons- Display status iconsrenderingBo- in/out Resulting RenderingBo instances will be added to this list
-
-