-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSquare.java
More file actions
56 lines (42 loc) · 2.7 KB
/
Copy pathSquare.java
File metadata and controls
56 lines (42 loc) · 2.7 KB
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
public class Square
{
private int xpos;
private int ypos;
private String player;
public Square(String player, int xpos, int ypos)
{
this.player = player;
this.xpos = xpos;
this.ypos = ypos;
}
public Square(int xpos, int ypos, String player)
{
this.xpos = xpos;
this.ypos = ypos;
this.player = player;
}
public void setXpos(int xpos)
{
this.xpos = xpos;
}
public int getXpos()
{
return this.xpos;
}
public void setYpos(int ypos)
{
this.ypos = ypos;
}
public int getYpos()
{
return this.ypos;
}
public void setPlayer(String player)
{
this.player = player;
}
public String getPlayer()
{
return this.player;
}
}