Class ClientDrawEntitySupport


  • public final class ClientDrawEntitySupport
    extends Object
    Support business object to draw entities on tiles with all of their layers and complexity
    • Constructor Detail

      • ClientDrawEntitySupport

        public ClientDrawEntitySupport()
    • 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 draw
        absPosition - Optional Absolute draw position
        relPosition - Optional Relative draw position
        baseLayer_ - 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 selected
        selectionZebraEffect - Display DrawTileHighlightRenderingBo in zebra mode if entity is selected, otherwise in normal mode. Only relevant if showSelection is active.
        showStatusIcons - Display status icons
        renderingBo - in/out Resulting RenderingBo instances will be added to this list