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:
 Cullable
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final floatstatic final float - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionaddEffectIcon(Drawable icon) addMark(float coeff) booleanisEffectIconExists(Drawable icon) setBossName(String name) setFirstSmallBarColor(Color bgColor, Color barColor) setLabelsColor(Color color) setMainBarColor(Color bgColor, Color barColor) setMainHP(double current, double max) setSecondSmallBarColor(Color bgColor, 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, toStringMethods 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
 - 
nameLabel
 - 
iconImage
 - 
iconImageShadow
 - 
effectIconsTable
 - 
hpLabelCurrent
 - 
hpLabelMax
 - 
largeBarContainer
 - 
barBackgroundLarge
 - 
barLarge
 - 
smallBarOneContainer
 - 
barBackgroundSmallOne
 - 
barSmallOne
 - 
smallBarTwoContainer
 - 
barBackgroundSmallTwo
 - 
barSmallTwo
 - 
marksGroup
 
 - 
 - 
Constructor Details
- 
BossHpBar
public BossHpBar() 
 - 
 - 
Method Details
- 
setLabelsColor
 - 
setMainBarColor
 - 
setFirstSmallBarColor
 - 
setSecondSmallBarColor
 - 
setSmallBarsCount
- Parameters:
 count- 0..2
 - 
setBossName
 - 
getBossName
 - 
setIcon
 - 
setMainHP
 - 
setSmallBarOneProgress
 - 
setSmallBarTwoProgress
 - 
clearMarks
 - 
addMark
 - 
addEffectIcon
 - 
getEffectIcons
 - 
isEffectIconExists
 - 
clearEffectIcons
 
 -