public class Game_Map_MapObj
extends com.badlogic.gdx.scenes.scene2d.Actor
Modifier and Type | Field and Description |
---|---|
float |
actorX |
float |
actorY |
boolean |
highlighted |
int |
labelWidth |
float |
offset |
boolean |
owned |
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) |
com.badlogic.gdx.scenes.scene2d.ui.Label |
getLabel() |
MapObj |
getMapObj() |
Connection |
getRouteConnection() |
Train |
getRouteTrain() |
void |
hideInfoBox() |
boolean |
routeAvailable() |
void |
setOwned(java.lang.Boolean b) |
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, 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 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 boolean owned
public int labelWidth
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 void setOwned(java.lang.Boolean b)
public com.badlogic.gdx.scenes.scene2d.ui.Label getLabel()
public MapObj getMapObj()
public boolean routeAvailable()
public void setRouteAvailable(boolean available)
public void setRouteAvailable(Train train, Connection connection)
public Train getRouteTrain()
public Connection getRouteConnection()
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