|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.badlogic.gdx.scenes.scene2d.Actor
com.TeamHEC.LocomotionCommotion.UI_Elements.Sprite
com.TeamHEC.LocomotionCommotion.Train.TrainInfoUI
public class TrainInfoUI
| Field Summary | |
|---|---|
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
|
| Fields inherited from class com.TeamHEC.LocomotionCommotion.UI_Elements.Sprite |
|---|
started |
| Constructor Summary | |
|---|---|
TrainInfoUI()
|
|
| Method Summary | |
|---|---|
com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> |
getActors()
Gets an arraylist for the actors |
void |
highlightAdjacent()
Makes the adjacent MapObjs to the Train clickable to add to route... |
void |
makeVisible(boolean v)
Sets if the train info is visible |
void |
showLabel(Train train)
Show the info label for a train |
void |
unhighlightAdjacent()
Unhighlights the connections adjacent to a train |
| Methods inherited from class com.TeamHEC.LocomotionCommotion.UI_Elements.Sprite |
|---|
act, draw, getPosition, getTexture, getX, getY, increaseX, increaseY, refreshBounds, setPosition, setTexture, setX, setY |
| Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor |
|---|
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, 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, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public TrainInfoUI()
| Method Detail |
|---|
public void highlightAdjacent()
public void unhighlightAdjacent()
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> getActors()
public void showLabel(Train train)
train - public void makeVisible(boolean v)
v - true if the train info is to be visible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||