Skip to content

Commit dd5efae

Browse files
author
xminks
committed
add class point
1 parent 816235a commit dd5efae

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

TicTacToeClient/src/Client/point.java

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
package Client;
7+
8+
/**
9+
* x je souřadnice, která vede vodorovně mřížkou
10+
* y je souřadnice, která vede svisle mřížkou
11+
* @author xminks
12+
*/
13+
public class point {
14+
15+
private final int x;
16+
private final int y;
17+
18+
public point(int x, int y) {
19+
this.x = x;
20+
this.y = y;
21+
}
22+
23+
public int getX() {
24+
return x;
25+
}
26+
27+
public int getY() {
28+
return y;
29+
}
30+
31+
}

0 commit comments

Comments
 (0)