public class TrainInfoUI extends Sprite
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> |
actors |
java.util.ArrayList<Connection> |
adjacent |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
name |
SpriteButton |
planRoute |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
routeRemaining |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
speed |
com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle |
style |
Train |
train |
| Constructor and Description |
|---|
TrainInfoUI() |
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> |
getActors() |
void |
highlightAdjacent()
Makes the adjacent MapObjs to the Train clickable to add to route...
|
void |
makeVisible(boolean v) |
void |
showLabel(Train train) |
void |
unhighlightAdjacent() |
act, draw, getPosition, getTexture, getX, getY, increaseX, increaseY, refreshBounds, setPosition, setTexture, setX, setYaddAction, 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, 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, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toStringpublic static com.badlogic.gdx.scenes.scene2d.ui.Label name
public static com.badlogic.gdx.scenes.scene2d.ui.Label speed
public static com.badlogic.gdx.scenes.scene2d.ui.Label routeRemaining
public com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style
public SpriteButton planRoute
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> actors
public Train train
public java.util.ArrayList<Connection> adjacent
public void highlightAdjacent()
public void unhighlightAdjacent()
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> getActors()
public void showLabel(Train train)
public void makeVisible(boolean v)