public class GoalMenu
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SpriteButton |
addGoalBtn |
static SpriteButton |
backBtn |
static Sprite |
backDrop |
static int |
col1 |
static int |
col2 |
static int |
col3 |
static java.util.ArrayList<GoalActor> |
createdGoals |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel1 |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel2 |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel3 |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel4 |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel5 |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel6 |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel7 |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel8 |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
gLabel9 |
static int |
goalActors |
static java.util.HashMap<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label> |
goalLabels |
static GoalActor |
newgoal1 |
static GoalActor |
newgoal2 |
static GoalActor |
newgoal3 |
static GoalActor |
newgoal4 |
static GoalActor |
newgoal5 |
static GoalActor |
newgoal6 |
static GoalActor |
newgoal7 |
static GoalActor |
newgoal8 |
static GoalActor |
newgoal9 |
static java.util.HashMap<java.lang.String,Goal> |
newgoals |
static int |
numberofGoalsOnScreen |
static boolean |
open |
static SpriteButton |
refreshGoalsBtn |
static int |
row1 |
static int |
row2 |
static int |
row3 |
static GoalActor |
selectedGoal |
static int |
stagestart |
static com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle |
style |
Constructor and Description |
---|
GoalMenu() |
Modifier and Type | Method and Description |
---|---|
static void |
AddGoalToScreen(java.util.ArrayList<Goal> goals)
Runs through the goals given finding them empty slots (by calling findEmptyGoalSlot) and adding them to the GoalMenu.
|
static void |
addLabelstoStage() |
void |
create(com.badlogic.gdx.scenes.scene2d.Stage stage) |
static java.util.HashMap<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label> |
createLabels() |
static void |
fillGoalScreen()
FillGoalScreen() fills the goal screen by running through 9 createRandomGoal calls and sends the array to Add Goal to Screen.
|
static int |
findEmptyGoalSlot(java.util.HashMap<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label> newgoalLabels) |
static java.lang.String |
getSpacing(int len) |
static java.lang.String |
ticketMaker(java.lang.String type,
int reward,
java.lang.String from,
java.lang.String startdate,
java.lang.String dest,
java.lang.String route) |
public static java.util.ArrayList<GoalActor> createdGoals
public static java.util.HashMap<java.lang.String,Goal> newgoals
public static java.util.HashMap<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label> goalLabels
public static GoalActor newgoal1
public static GoalActor newgoal2
public static GoalActor newgoal3
public static GoalActor newgoal4
public static GoalActor newgoal5
public static GoalActor newgoal6
public static GoalActor newgoal7
public static GoalActor newgoal8
public static GoalActor newgoal9
public static GoalActor selectedGoal
public static int stagestart
public static int goalActors
public static int row1
public static int row2
public static int row3
public static int col1
public static int col2
public static int col3
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel1
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel2
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel3
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel4
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel5
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel6
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel7
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel8
public static com.badlogic.gdx.scenes.scene2d.ui.Label gLabel9
public static com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style
public static boolean open
public static int numberofGoalsOnScreen
public static Sprite backDrop
public static SpriteButton backBtn
public static SpriteButton addGoalBtn
public static SpriteButton refreshGoalsBtn
public void create(com.badlogic.gdx.scenes.scene2d.Stage stage)
public static java.util.HashMap<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label> createLabels()
public static void addLabelstoStage()
public static java.lang.String ticketMaker(java.lang.String type, int reward, java.lang.String from, java.lang.String startdate, java.lang.String dest, java.lang.String route)
public static java.lang.String getSpacing(int len)
public static void AddGoalToScreen(java.util.ArrayList<Goal> goals)
goals
- -ArrayList of goals to be added to the GoalMenu.public static int findEmptyGoalSlot(java.util.HashMap<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label> newgoalLabels)
newgoalLabels
- - the current Goal labels.public static void fillGoalScreen()