public class Game_Map_Train
extends com.badlogic.gdx.scenes.scene2d.Actor
Modifier and Type | Field and Description |
---|---|
boolean |
canMove |
boolean |
instantMove |
int |
moveCounter |
Constructor and Description |
---|
Game_Map_Train() |
Modifier and Type | Method and Description |
---|---|
void |
act(float delta) |
void |
clickedTrain() |
void |
createBlip(Train train) |
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha) |
void |
notifyMovingFinished() |
void |
setInstantMove(boolean x)
sets whether or not a train should move to the end of this turn's movement instantly
Is reset to false after each turn
|
void |
toggleHighlight(boolean highlighted) |
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 boolean canMove
public int moveCounter
public boolean instantMove
public void createBlip(Train train)
public void clickedTrain()
public void toggleHighlight(boolean highlighted)
public void act(float delta)
act
in class com.badlogic.gdx.scenes.scene2d.Actor
public void setInstantMove(boolean x)
x
- public void notifyMovingFinished()
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float alpha)
draw
in class com.badlogic.gdx.scenes.scene2d.Actor