|
||||||||||
| 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.MapActors.Game_Map_MapObj
com.TeamHEC.LocomotionCommotion.MapActors.Game_Map_Station
public class Game_Map_Station
This class is the UI View for stations on the map.
| Field Summary | |
|---|---|
float |
offset
|
boolean |
owned
|
| Fields inherited from class com.TeamHEC.LocomotionCommotion.MapActors.Game_Map_MapObj |
|---|
actorX, actorY, highlighted, started, texture, toggleTexture1, toggleTexture2 |
| Constructor Summary | |
|---|---|
Game_Map_Station(Station station,
float actorX,
float actorY)
|
|
| Method Summary | |
|---|---|
Station |
getStation()
Returns the station |
void |
hideInfoBox()
hides the info box for a station |
void |
ownerChanged(Station station,
Player player)
Deprecated. please use update button method instead |
void |
setOwned(java.lang.Boolean b)
sets if a station is owned |
void |
showInfoBox(boolean faulty)
show the info box for a selected station |
void |
updateButton(Station station,
Player player)
Update the button texture according to owner and faults |
| Methods inherited from class com.TeamHEC.LocomotionCommotion.MapActors.Game_Map_MapObj |
|---|
draw, getRouteConnection, getRouteTrain, routeAvailable, setRouteAvailable, setRouteAvailable, showInfoBox, toggleHighlight |
| Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean owned
public float offset
| Constructor Detail |
|---|
public Game_Map_Station(Station station,
float actorX,
float actorY)
| Method Detail |
|---|
public Station getStation()
public void updateButton(Station station,
Player player)
updateButton in interface StationListenerstation - the station which has changed ownerplayer - the new owner of the station
public void ownerChanged(Station station,
Player player)
StationListener
ownerChanged in interface StationListenerstation - the station which has changed ownerplayer - the new owner of the stationpublic void showInfoBox(boolean faulty)
faulty - public void hideInfoBox()
hideInfoBox in class Game_Map_MapObjpublic void setOwned(java.lang.Boolean b)
b - set true if this station is owned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||