Get the index by which the turn order is shifted, given this Direction. @return 1 or -1.
()
| 48 | * @return 1 or -1. |
| 49 | */ |
| 50 | public int getShift() { |
| 51 | if (this.isDefaultDirection()) { |
| 52 | return 1; |
| 53 | } |
| 54 | return -1; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Give the other Direction. |
no test coverage detected