Skip to content

Commit

Permalink
comply with checkstyles
Browse files Browse the repository at this point in the history
  • Loading branch information
longj6 committed Nov 21, 2023
1 parent 2c77dcf commit 5e1160c
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/main/java/edu/rpi/legup/model/gameboard/GridBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,27 +75,34 @@ public void setCell(int x, int y, Element e, MouseEvent m) {
if (m.getButton() == MouseEvent.BUTTON1) {
if (clue.getData() < dimension.height) {
clue.setData(clue.getData() + 1);
} else {
}
else {
clue.setData(0);
}
} else {
}
else {
if (clue.getData() > 0) {
clue.setData(clue.getData() - 1);
} else {
}
else {
clue.setData(dimension.height);
}
}
} else { //x == dimension.width
}
else { //x == dimension.width
if (m.getButton() == MouseEvent.BUTTON1) {
if (clue.getData() < dimension.width) {
clue.setData(clue.getData() + 1);
} else {
}
else {
clue.setData(0);
}
} else {
}
else {
if (clue.getData() > 0) {
clue.setData(clue.getData() - 1);
} else {
}
else {
clue.setData(dimension.width);
}
}
Expand Down

0 comments on commit 5e1160c

Please sign in to comment.