public class Game_Map_Station extends Game_Map_MapObj implements StationListener
| Modifier and Type | Field and Description |
|---|---|
float |
offset |
actorX, actorY, highlighted, labelWidth, owned, started, texture, toggleTexture1, toggleTexture2| Constructor and Description |
|---|
Game_Map_Station(Station station,
float actorX,
float actorY) |
| 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() |
void |
hideInfoBox() |
void |
ownerChanged(Station station,
Player player)
Deprecated.
replaced with updateButton();
|
void |
setOwned(java.lang.Boolean b) |
void |
showInfoBox() |
void |
updateButton(Station station,
Player player) |
getRouteConnection, getRouteTrain, routeAvailable, setRouteAvailable, setRouteAvailable, toggleHighlightact, 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, toStringpublic Game_Map_Station(Station station, float actorX, float actorY)
public MapObj getMapObj()
getMapObj in class Game_Map_MapObjpublic com.badlogic.gdx.scenes.scene2d.ui.Label getLabel()
getLabel in class Game_Map_MapObjpublic void updateButton(Station station, Player player)
station - the station that this is the button forplayer - public void ownerChanged(Station station, Player player)
StationListenerownerChanged in interface StationListenerstation - the station which has changed ownerplayer - the new owner of the stationpublic void showInfoBox()
showInfoBox in class Game_Map_MapObjpublic void hideInfoBox()
hideInfoBox in class Game_Map_MapObjpublic void setOwned(java.lang.Boolean b)
setOwned in class Game_Map_MapObjpublic void draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha)
draw in class Game_Map_MapObj