Class BossHpBar

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
com.prineside.tdi2.ui.components.BossHpBar
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable

public final class BossHpBar extends com.badlogic.gdx.scenes.scene2d.Group
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.ui.Table
     
    static final float
     
     
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.ui.Image
     
    com.badlogic.gdx.scenes.scene2d.Group
     
    static final float
     
    com.badlogic.gdx.scenes.scene2d.Group
     
     
    com.badlogic.gdx.scenes.scene2d.Group
     
    com.badlogic.gdx.scenes.scene2d.Group
     
    static final float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addEffectIcon(com.badlogic.gdx.scenes.scene2d.utils.Drawable icon)
     
    addMark(float coeff)
     
     
     
     
    com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.utils.Drawable>
     
    boolean
    isEffectIconExists(com.badlogic.gdx.scenes.scene2d.utils.Drawable icon)
     
     
    setFirstSmallBarColor(com.badlogic.gdx.graphics.Color bgColor, com.badlogic.gdx.graphics.Color barColor)
     
    setIcon(com.badlogic.gdx.scenes.scene2d.utils.Drawable icon)
     
    setLabelsColor(com.badlogic.gdx.graphics.Color color)
     
    setMainBarColor(com.badlogic.gdx.graphics.Color bgColor, com.badlogic.gdx.graphics.Color barColor)
     
    setMainHP(double current, double max)
     
    setSecondSmallBarColor(com.badlogic.gdx.graphics.Color bgColor, com.badlogic.gdx.graphics.Color barColor)
     
    setSmallBarOneProgress(double coeff)
     
    setSmallBarsCount(int count)
     
    setSmallBarTwoProgress(double coeff)
     

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Group

    act, addActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, childrenChanged, clear, clear, clearChildren, clearChildren, computeTransform, debugAll, draw, drawChildren, drawDebug, drawDebugChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, removeActorAt, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toString

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor

    addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • WIDTH

      public static final float WIDTH
      See Also:
    • HEIGHT

      public static final float HEIGHT
      See Also:
    • MAIN_BAR_WIDTH

      public static final float MAIN_BAR_WIDTH
      See Also:
    • backgroundImage

      public com.badlogic.gdx.scenes.scene2d.ui.Image backgroundImage
    • nameLabel

      public LabelWithShadow nameLabel
    • iconImage

      public com.badlogic.gdx.scenes.scene2d.ui.Image iconImage
    • iconImageShadow

      public com.badlogic.gdx.scenes.scene2d.ui.Image iconImageShadow
    • effectIconsTable

      public com.badlogic.gdx.scenes.scene2d.ui.Table effectIconsTable
    • hpLabelCurrent

      public LabelWithShadow hpLabelCurrent
    • hpLabelMax

      public LabelWithShadow hpLabelMax
    • largeBarContainer

      public com.badlogic.gdx.scenes.scene2d.Group largeBarContainer
    • barBackgroundLarge

      public com.badlogic.gdx.scenes.scene2d.ui.Image barBackgroundLarge
    • barLarge

      public com.badlogic.gdx.scenes.scene2d.ui.Image barLarge
    • smallBarOneContainer

      public com.badlogic.gdx.scenes.scene2d.Group smallBarOneContainer
    • barBackgroundSmallOne

      public com.badlogic.gdx.scenes.scene2d.ui.Image barBackgroundSmallOne
    • barSmallOne

      public com.badlogic.gdx.scenes.scene2d.ui.Image barSmallOne
    • smallBarTwoContainer

      public com.badlogic.gdx.scenes.scene2d.Group smallBarTwoContainer
    • barBackgroundSmallTwo

      public com.badlogic.gdx.scenes.scene2d.ui.Image barBackgroundSmallTwo
    • barSmallTwo

      public com.badlogic.gdx.scenes.scene2d.ui.Image barSmallTwo
    • marksGroup

      public com.badlogic.gdx.scenes.scene2d.Group marksGroup
  • Constructor Details

    • BossHpBar

      public BossHpBar()
  • Method Details

    • setLabelsColor

      public BossHpBar setLabelsColor(com.badlogic.gdx.graphics.Color color)
    • setMainBarColor

      public BossHpBar setMainBarColor(com.badlogic.gdx.graphics.Color bgColor, com.badlogic.gdx.graphics.Color barColor)
    • setFirstSmallBarColor

      public BossHpBar setFirstSmallBarColor(com.badlogic.gdx.graphics.Color bgColor, com.badlogic.gdx.graphics.Color barColor)
    • setSecondSmallBarColor

      public BossHpBar setSecondSmallBarColor(com.badlogic.gdx.graphics.Color bgColor, com.badlogic.gdx.graphics.Color barColor)
    • setSmallBarsCount

      public BossHpBar setSmallBarsCount(int count)
      Parameters:
      count - 0..2
    • setBossName

      public BossHpBar setBossName(String name)
    • getBossName

      public String getBossName()
    • setIcon

      public BossHpBar setIcon(com.badlogic.gdx.scenes.scene2d.utils.Drawable icon)
    • setMainHP

      public BossHpBar setMainHP(double current, double max)
    • setSmallBarOneProgress

      public BossHpBar setSmallBarOneProgress(double coeff)
    • setSmallBarTwoProgress

      public BossHpBar setSmallBarTwoProgress(double coeff)
    • clearMarks

      public BossHpBar clearMarks()
    • addMark

      public BossHpBar addMark(float coeff)
    • addEffectIcon

      public BossHpBar addEffectIcon(com.badlogic.gdx.scenes.scene2d.utils.Drawable icon)
    • getEffectIcons

      public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.utils.Drawable> getEffectIcons()
    • isEffectIconExists

      public boolean isEffectIconExists(com.badlogic.gdx.scenes.scene2d.utils.Drawable icon)
    • clearEffectIcons

      public BossHpBar clearEffectIcons()