Package com.prineside.tdi2.ui.components
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
FieldsModifier and TypeFieldDescriptioncom.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 -
Method Summary
Modifier and TypeMethodDescriptionaddEffectIcon
(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) setBossName
(String name) 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, clear, clear, clearChildren, clearChildren, debugAll, draw, drawDebug, findActor, getChild, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, removeActorAt, setCullingArea, setDebug, 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, 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, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
-
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
-
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
-
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
-
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
- Parameters:
count
- 0..2
-
setBossName
-
getBossName
-
setIcon
-
setMainHP
-
setSmallBarOneProgress
-
setSmallBarTwoProgress
-
clearMarks
-
addMark
-
addEffectIcon
-
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
-