public class CardActor
extends com.badlogic.gdx.scenes.scene2d.Actor
Constructor and Description |
---|
CardActor(com.badlogic.gdx.graphics.Texture texture,
int actorX,
int actorY,
boolean empty,
int slot) |
Modifier and Type | Method and Description |
---|---|
void |
act(float delta) |
void |
cardCollapse() |
void |
cardExpand() |
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha) |
Card |
getCard() |
int |
getSlot() |
com.badlogic.gdx.graphics.Texture |
getTexture() |
boolean |
isExpanded() |
void |
refreshBounds() |
void |
setActorY(float y) |
void |
setCard(Card card) |
void |
setEmpty(boolean b) |
boolean |
setexpanded(boolean open) |
void |
setSlot(int slot) |
void |
setTexture(com.badlogic.gdx.graphics.Texture texture) |
addAction, addCaptureListener, addListener, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, 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, hasParent, hit, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, 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, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString
public CardActor(com.badlogic.gdx.graphics.Texture texture, int actorX, int actorY, boolean empty, int slot)
public void refreshBounds()
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float alpha)
draw
in class com.badlogic.gdx.scenes.scene2d.Actor
public void act(float delta)
act
in class com.badlogic.gdx.scenes.scene2d.Actor
public boolean isExpanded()
public boolean setexpanded(boolean open)
public Card getCard()
public void setCard(Card card)
public void setTexture(com.badlogic.gdx.graphics.Texture texture)
public com.badlogic.gdx.graphics.Texture getTexture()
public int getSlot()
public void setSlot(int slot)
public void setActorY(float y)
public void setEmpty(boolean b)
public void cardExpand()
public void cardCollapse()