MCPcopy Create free account
hub / github.com/Card-Forge/forge / getShift

Method getShift

forge-game/src/main/java/forge/game/Direction.java:50–55  ·  view source on GitHub ↗

Get the index by which the turn order is shifted, given this Direction. @return 1 or -1.

()

Source from the content-addressed store, hash-verified

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.

Callers 2

getNextPlayerAfterMethod · 0.80

Calls 1

isDefaultDirectionMethod · 0.95

Tested by

no test coverage detected