-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgameObject.java
More file actions
57 lines (45 loc) · 883 Bytes
/
gameObject.java
File metadata and controls
57 lines (45 loc) · 883 Bytes
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
package pa2자바실;
public class gameObject {
private char type;
private char color;
private char target;
private int x;
private int y;
public gameObject(int x, int y, char type, char color, char target) {
setX(x);
setY(y);
this.type = type; //문자 이게 존나 중요하네
this.color = color; //색깔? 내생각엔 블랙 화이트 진영
this.target = target;// 선택후 나오는 별들
}
public char getType() {
return type;
}
public char getColor() {
return color;
}
public char getTarget() {
return target;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
public void setType(char type) {
this.type = type;
}
public void setColor(char color) {
this.color = color;
}
public void setTarget(char target) {
this.target = target;
}
public void setX(int x) {
this.x = x;
}
public void setY(int y) {
this.y = y;
}
}