public class HeartContainer
extends com.badlogic.gdx.scenes.scene2d.Actor
implements com.badlogic.gdx.utils.Disposable
Constructor and Description |
---|
HeartContainer(com.badlogic.gdx.assets.AssetManager assets,
int heartCount) |
Modifier and Type | Method and Description |
---|---|
void |
addHeart() |
void |
addHeart(int count) |
void |
damage(int lifes) |
void |
dispose() |
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float parentAlpha) |
void |
fullHeal() |
int |
getContainerWidth() |
int |
getLifes() |
int |
getTotalLifes() |
void |
heal(int lifes) |
void |
kill() |
void |
removeHeart() |
void |
removeHeart(int count) |
act, addAction, addCaptureListener, addListener, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, drawDebugBounds, fire, 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, hasParent, hit, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront, toString
public HeartContainer(com.badlogic.gdx.assets.AssetManager assets, int heartCount)
public void addHeart(int count)
public void removeHeart(int count)
public void addHeart()
public void removeHeart()
public void damage(int lifes)
public void heal(int lifes)
public void fullHeal()
public void kill()
public int getContainerWidth()
public int getLifes()
public int getTotalLifes()
public void dispose()
dispose
in interface com.badlogic.gdx.utils.Disposable
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)
draw
in class com.badlogic.gdx.scenes.scene2d.Actor