-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVariables.pde
52 lines (40 loc) · 1.04 KB
/
Variables.pde
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
/**
* Class whitch contains helper variables for drawing to the canvas
*
* Instead of calculateing these variables each render they are assetsed here
* for easy access
*/
public class Variables {
public int h;
public int w;
public int ch;
public int cw;
public boolean vote = false;
public boolean hasVoted = false;
public Round check = Round.TIE;
public boolean flip = false;
public boolean isFlippingHand = false;
public boolean isFlippingHandBack = false;
public boolean nextRound = false;
public int totalCorrect = 0;
public int currStreak = 0;
public int highestStreak = 0;
public int score = 0;
public int roundNum = 1;
public int roundMax = 8;
public int game = 1;
// TODO: Set to 8
// 7 Rounds of the game
public int games_max = 7;
public Game[] games = new Game[games_max];
public boolean transitioning = false;
public Player player;
public TransitionIn transIn;
public TransitionOut transOut;
public void _setup() {
h = height;
w = width;
ch = h / 2;
cw = w / 2;
}
}