com.TeamHEC.LocomotionCommotion.MapActors
Class Game_Map_Train

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.Actor
      extended by com.TeamHEC.LocomotionCommotion.MapActors.Game_Map_Train

public class Game_Map_Train
extends com.badlogic.gdx.scenes.scene2d.Actor


Field Summary
 boolean canMove
           
 int moveCounter
           
 
Constructor Summary
Game_Map_Train()
           
 
Method Summary
 void act(float delta)
           
 void clickedTrain()
          deals with being able to select a station under a train
 void createBlip(Train train)
          Creates the map blip for a train
 void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float alpha)
           
 void toggleHighlight(boolean highlighted)
          toggles the texture when a train is highlighted.
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
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

canMove

public boolean canMove

moveCounter

public int moveCounter
Constructor Detail

Game_Map_Train

public Game_Map_Train()
Method Detail

createBlip

public void createBlip(Train train)
Creates the map blip for a train

Parameters:
train -

clickedTrain

public void clickedTrain()
deals with being able to select a station under a train


toggleHighlight

public void toggleHighlight(boolean highlighted)
toggles the texture when a train is highlighted.

Parameters:
highlighted -

act

public void act(float delta)
Overrides:
act in class com.badlogic.gdx.scenes.scene2d.Actor

draw

public void draw(com.badlogic.gdx.graphics.g2d.Batch batch,
                 float alpha)
Overrides:
draw in class com.badlogic.gdx.scenes.scene2d.Actor