-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainMain.java
91 lines (78 loc) · 1.95 KB
/
MainMain.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*Whatcom Community College - Winter 2019
CS240 Data Structures and Algorithm Analysis
Professor Ryan Parsons
AUTHORS: Adib Thaqif, Andrew Jacobi, Donald Strong, and Micah Miller*/
public class MainMain
{
private static int round=1;
private static int eventCounter=0;
private static int[]aspectValues=new int[2];
public static void main(String[]args)
{
while(!isGameOver(round, aspectValues))
{
while(!isRoundOver(eventCounter))
{
//play();
round=round++;
}
}
}
public static void play()
{
//ChoicesManager();
//viewHighScore();
//save();
//quit();
eventCounter=eventCounter++;
}
public static void save()
{
//if(keyPress=='s')
//
}
public static void quit()
{
/*if(keyPress=='q')
return isGameOver=true;
*/
}
public static void viewHighScore()
{
}
public static boolean isGameOver(int round,int[]aspectValue)
{
if(round == 1)
{
return true;
}else if(aspectValue[0]<=25||aspectValue[1]<=25||aspectValue[2]<=25){
return true;
}else{
return false;
}
}
public static boolean isRoundOver(int eventCounter)
{
if(eventCounter==eventCounter*round)
{
return true;
}else{
return false;
}
}
public static void aspectMax(int[]aspectValues)
{
boolean x=false;
while(aspectValues[0]>=80||aspectValues[1]>=80||aspectValues[2]>=80)
{
System.out.println("One of your aspects is too high.\n" +
"If it remains at that height another one of your aspects will decrease.");
x=true;
if(x=true)
{
aspectValues[0]=aspectValues[0]-8;
}
}
x=false;
}
}