()
| 86 | } |
| 87 | |
| 88 | public boolean correctCoordinates() { |
| 89 | boolean changed = Position.bringInOrder(this.start, this.end); |
| 90 | if (this.start.x == this.end.x) { |
| 91 | this.end.x = this.end.x + 1; |
| 92 | changed = true; |
| 93 | } |
| 94 | if (this.start.y == this.end.y) { |
| 95 | this.end.y = this.end.y + 1; |
| 96 | changed = true; |
| 97 | } |
| 98 | if (this.start.z == this.end.z) { |
| 99 | this.end.z = this.end.z + 1; |
| 100 | changed = true; |
| 101 | } |
| 102 | return changed; |
| 103 | } |
| 104 | |
| 105 | } |