|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.TeamHEC.LocomotionCommotion.Goal.GoalMenu
public class GoalMenu
Field Summary | |
---|---|
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 Summary | |
---|---|
GoalMenu()
|
Method Summary | |
---|---|
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()
Adds all labels to stage |
void |
create(com.badlogic.gdx.scenes.scene2d.Stage stage)
|
static java.util.HashMap<java.lang.String,com.badlogic.gdx.scenes.scene2d.ui.Label> |
createLabels()
Creates the blank labels |
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 |
ticketMaker(java.lang.String type,
int reward,
java.lang.String from,
int startdate,
java.lang.String dest,
java.lang.String route)
Creates the string that make up the ticket information |
static java.lang.String |
ticketMaker(java.lang.String type,
int reward,
java.lang.String from,
int startdate,
java.lang.String dest,
java.lang.String route,
int turnLimit)
TicketMaker for time limited and combo goals |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public GoalMenu()
Method Detail |
---|
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, int startdate, java.lang.String dest, java.lang.String route)
type
- reward
- from
- startdate
- dest
- route
-
public static java.lang.String ticketMaker(java.lang.String type, int reward, java.lang.String from, int startdate, java.lang.String dest, java.lang.String route, int turnLimit)
type
- reward
- from
- startdate
- dest
- route
- turnLimit
-
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |