public class Game_Map_MapObj
extends com.badlogic.gdx.scenes.scene2d.Actor
Modifier and Type | Field and Description |
---|---|
float |
actorX |
float |
actorY |
boolean |
highlighted |
float |
offset |
boolean |
started |
com.badlogic.gdx.graphics.Texture |
texture |
com.badlogic.gdx.graphics.Texture |
toggleTexture1 |
com.badlogic.gdx.graphics.Texture |
toggleTexture2 |
Constructor and Description |
---|
Game_Map_MapObj(float x,
float y,
com.badlogic.gdx.graphics.Texture texture,
com.badlogic.gdx.graphics.Texture toggleTexture2) |
Modifier and Type | Method and Description |
---|---|
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha) |
Connection |
getRouteConnection() |
Train |
getRouteTrain() |
void |
hideInfoBox() |
protected void |
onClicked() |
boolean |
routeAvailable() |
void |
setRouteAvailable(boolean available) |
void |
setRouteAvailable(Train train,
Connection connection) |
void |
showInfoBox() |
void |
toggleHighlight(boolean highlighted) |
act, 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, getX, getY, 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, setX, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront, toString
public com.badlogic.gdx.graphics.Texture texture
public com.badlogic.gdx.graphics.Texture toggleTexture1
public com.badlogic.gdx.graphics.Texture toggleTexture2
public float actorX
public float actorY
public boolean started
public boolean highlighted
public float offset
public Game_Map_MapObj(float x, float y, com.badlogic.gdx.graphics.Texture texture, com.badlogic.gdx.graphics.Texture toggleTexture2)
public void showInfoBox()
public void hideInfoBox()
public boolean routeAvailable()
public void setRouteAvailable(boolean available)
public void setRouteAvailable(Train train, Connection connection)
public Train getRouteTrain()
public Connection getRouteConnection()
protected void onClicked()
public void toggleHighlight(boolean highlighted)
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float alpha)
draw
in class com.badlogic.gdx.scenes.scene2d.Actor