public class GoalActor
extends com.badlogic.gdx.scenes.scene2d.Actor
| Modifier and Type | Field and Description |
|---|---|
int |
index |
| Constructor and Description |
|---|
GoalActor(int actorY,
int actorX,
boolean empty,
Goal goal) |
| Modifier and Type | Method and Description |
|---|---|
void |
act(float delta) |
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha) |
Goal |
getGoal() |
int |
getIndex() |
float |
getX() |
float |
getY() |
boolean |
isEmpty() |
boolean |
isOwnedgoal() |
boolean |
isPlanRouteButtonVisible() |
void |
refreshBounds() |
void |
setEmpty(java.lang.Boolean empty)
When we set empty we set the value AND change the texture to the relevant texture;
|
void |
setGoal(Goal goal) |
void |
setIndex(int i) |
void |
setOwnedgoal(boolean ownedgoal) |
void |
setPlanRouteButtonVisible(boolean planRouteButtonVisible) |
void |
setX(float x) |
void |
setY(float y) |
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, getY, getZIndex, hasParent, hit, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, 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, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront, toStringpublic GoalActor(int actorY,
int actorX,
boolean empty,
Goal goal)
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha)
draw in class com.badlogic.gdx.scenes.scene2d.Actorpublic void act(float delta)
act in class com.badlogic.gdx.scenes.scene2d.Actorpublic boolean isEmpty()
public void setEmpty(java.lang.Boolean empty)
empty - - Boolean for whether or not the Goal Actor has an assigned goal.public void setGoal(Goal goal)
public Goal getGoal()
public void setX(float x)
setX in class com.badlogic.gdx.scenes.scene2d.Actorpublic void setY(float y)
setY in class com.badlogic.gdx.scenes.scene2d.Actorpublic float getX()
getX in class com.badlogic.gdx.scenes.scene2d.Actorpublic float getY()
getY in class com.badlogic.gdx.scenes.scene2d.Actorpublic int getIndex()
public void setIndex(int i)
public boolean isPlanRouteButtonVisible()
public void setPlanRouteButtonVisible(boolean planRouteButtonVisible)
public boolean isOwnedgoal()
public void setOwnedgoal(boolean ownedgoal)
public void refreshBounds()