-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathKey.java
59 lines (45 loc) · 1.11 KB
/
Key.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
package game.component;
public class Key {
public boolean isKey_enter() {
return key_enter;
}
public void setKey_enter(boolean key_enter) {
this.key_enter = key_enter;
}
public boolean isKey_right() {
return key_right;
}
public void setKey_right(boolean key_right) {
this.key_right = key_right;
}
public boolean isKey_left() {
return key_left;
}
public void setKey_left(boolean key_left) {
this.key_left = key_left;
}
public boolean isKey_space() {
return key_space;
}
public void setKey_space(boolean key_space) {
this.key_space = key_space;
}
public boolean isKey_j() {
return key_j;
}
public void setKey_j(boolean key_j) {
this.key_j = key_j;
}
public boolean isKey_k() {
return key_k;
}
public void setKey_k(boolean key_k) {
this.key_k = key_k;
}
private boolean key_right;
private boolean key_left;
private boolean key_space;
private boolean key_j;
private boolean key_k;
private boolean key_enter;
}