com.TeamHEC.LocomotionCommotion.MapActors
Class Game_Map_Manager

java.lang.Object
  extended by com.TeamHEC.LocomotionCommotion.MapActors.Game_Map_Manager

public class Game_Map_Manager
extends java.lang.Object

Author:
Robert Precious/ Matthew Taylor Map Manager is used to 'manage' the map. It creates the map actors for the map. Handles routing UI and map/station information.

Field Summary
static SpriteButton abortRouteBtn
           
static SpriteButton cancelRouteBtn
           
static SpriteButton confirmRouteBtn
           
static boolean infoVisible
           
static int junctionTracker
           
static Sprite map
           
static int mapActors
           
static Sprite mapInfo
           
static int numberOfJunctions
           
static int numberOfStations
           
static Sprite planBackground
           
static com.badlogic.gdx.scenes.scene2d.ui.Label routeFuelCost
           
static com.badlogic.gdx.scenes.scene2d.ui.Label routeLength
           
static com.badlogic.gdx.scenes.scene2d.ui.Label routeRemaining
           
static Sprite routingModeWindow
           
static int stagestart
           
static Sprite stationInfo
           
static com.badlogic.gdx.scenes.scene2d.ui.Label stationLabelCost
           
static com.badlogic.gdx.scenes.scene2d.ui.Label stationLabelFuel
           
static com.badlogic.gdx.scenes.scene2d.ui.Label stationLabelName
           
static Game_Map_StationBtn stationSelect
           
static int stationTracker
           
 com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style
           
static com.badlogic.gdx.utils.Array<Game_Map_Train> trainBlips
           
static TrainInfoUI trainInfo
           
static SpriteButton undoLastRouteButton
           
 
Constructor Summary
Game_Map_Manager()
           
 
Method Summary
 void create(com.badlogic.gdx.scenes.scene2d.Stage stage)
           
static void enterRoutingMode()
          Enters routing mode
static void exitRoutingMode()
          Exits routing mode
static void hideInfoBox()
          hides the station info box
static void moveInfoBox(float x, float y, boolean faulty)
          moves the info box for a station
static void resetMap()
          resets the owners of all the stations
static void showInfoBox(boolean faulty)
          shows the station info box with repair if the station is faulty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

public static Sprite map

mapInfo

public static Sprite mapInfo

stationInfo

public static Sprite stationInfo

stationSelect

public static Game_Map_StationBtn stationSelect

trainInfo

public static TrainInfoUI trainInfo

infoVisible

public static boolean infoVisible

stagestart

public static int stagestart

mapActors

public static int mapActors

stationTracker

public static int stationTracker

numberOfStations

public static int numberOfStations

junctionTracker

public static int junctionTracker

numberOfJunctions

public static int numberOfJunctions

stationLabelFuel

public static com.badlogic.gdx.scenes.scene2d.ui.Label stationLabelFuel

stationLabelName

public static com.badlogic.gdx.scenes.scene2d.ui.Label stationLabelName

stationLabelCost

public static com.badlogic.gdx.scenes.scene2d.ui.Label stationLabelCost

style

public com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style

planBackground

public static Sprite planBackground

routingModeWindow

public static Sprite routingModeWindow

routeLength

public static com.badlogic.gdx.scenes.scene2d.ui.Label routeLength

routeRemaining

public static com.badlogic.gdx.scenes.scene2d.ui.Label routeRemaining

routeFuelCost

public static com.badlogic.gdx.scenes.scene2d.ui.Label routeFuelCost

confirmRouteBtn

public static SpriteButton confirmRouteBtn

undoLastRouteButton

public static SpriteButton undoLastRouteButton

abortRouteBtn

public static SpriteButton abortRouteBtn

cancelRouteBtn

public static SpriteButton cancelRouteBtn

trainBlips

public static com.badlogic.gdx.utils.Array<Game_Map_Train> trainBlips
Constructor Detail

Game_Map_Manager

public Game_Map_Manager()
Method Detail

create

public void create(com.badlogic.gdx.scenes.scene2d.Stage stage)

enterRoutingMode

public static void enterRoutingMode()
Enters routing mode


exitRoutingMode

public static void exitRoutingMode()
Exits routing mode


moveInfoBox

public static void moveInfoBox(float x,
                               float y,
                               boolean faulty)
moves the info box for a station

Parameters:
x -
y -
faulty -

hideInfoBox

public static void hideInfoBox()
hides the station info box


showInfoBox

public static void showInfoBox(boolean faulty)
shows the station info box with repair if the station is faulty

Parameters:
faulty -

resetMap

public static void resetMap()
resets the owners of all the stations