|
||||||||||
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
public class Game_Map_MapObj
Field Summary | |
---|---|
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 Summary | |
---|---|
Game_Map_MapObj(float x,
float y,
com.badlogic.gdx.graphics.Texture texture,
com.badlogic.gdx.graphics.Texture toggleTexture2)
|
Method Summary | |
---|---|
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float alpha)
|
Connection |
getRouteConnection()
Gets the route connection |
Train |
getRouteTrain()
gets the train on the route |
void |
hideInfoBox()
|
boolean |
routeAvailable()
get if the route is availible |
void |
setRouteAvailable(boolean available)
Sets if the route is availible |
void |
setRouteAvailable(Train train,
Connection connection)
sets the route and of the route is availible |
void |
showInfoBox()
|
void |
toggleHighlight(boolean highlighted)
toggles if an onject is highlighted |
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 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
Constructor Detail |
---|
public Game_Map_MapObj(float x, float y, com.badlogic.gdx.graphics.Texture texture, com.badlogic.gdx.graphics.Texture toggleTexture2)
Method Detail |
---|
public void showInfoBox()
public void hideInfoBox()
public boolean routeAvailable()
public void setRouteAvailable(boolean available)
available
- public void setRouteAvailable(Train train, Connection connection)
train
- connection
- public Train getRouteTrain()
public Connection getRouteConnection()
public void toggleHighlight(boolean highlighted)
highlighted
- public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float alpha)
draw
in class com.badlogic.gdx.scenes.scene2d.Actor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |