aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/fr/umlv/java/wallj/board/TileVec2.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/fr/umlv/java/wallj/board/TileVec2.java')
-rw-r--r--src/main/java/fr/umlv/java/wallj/board/TileVec2.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/board/TileVec2.java b/src/main/java/fr/umlv/java/wallj/board/TileVec2.java
index 26deb0c..8d713d5 100644
--- a/src/main/java/fr/umlv/java/wallj/board/TileVec2.java
+++ b/src/main/java/fr/umlv/java/wallj/board/TileVec2.java
@@ -19,6 +19,12 @@ public final class TileVec2 {
19 of(-1, 0), 19 of(-1, 0),
20 of(0, 1), 20 of(0, 1),
21 of(1, 0)); 21 of(1, 0));
22 private final int col, row;
23
24 private TileVec2(int col, int row) {
25 this.col = col;
26 this.row = row;
27 }
22 28
23 /** 29 /**
24 * @param col the column 30 * @param col the column
@@ -37,13 +43,6 @@ public final class TileVec2 {
37 return new TileVec2((int) (v.x / TILE_DIM), (int) (v.y / TILE_DIM)); 43 return new TileVec2((int) (v.x / TILE_DIM), (int) (v.y / TILE_DIM));
38 } 44 }
39 45
40 private final int col, row;
41
42 private TileVec2(int col, int row) {
43 this.col = col;
44 this.row = row;
45 }
46
47 /** 46 /**
48 * @return the column 47 * @return the column
49 */ 48 */