getShiftX method

int getShiftX(
  1. Tile otherTile
)

Implementation

int getShiftX(Tile otherTile) {
  if (this == otherTile) {
    return 0;
  }

  return this.tileX % 2 + 2 * getParent()!.getShiftX(otherTile);
}