getShiftY method

int getShiftY(
  1. Tile otherTile
)

Implementation

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

  return this.tileY % 2 + 2 * getParent()!.getShiftY(otherTile);
}