/// <summary> /// Returns a CubicHexCoord representing the diff between some hex and its diagonal in /// the given diagonal direction. /// </summary> /// <param name="direction">The diagonal direction to return a diff for.</param> /// <returns>A CubicHexCoord representing the diff between some hex and its diagonal in /// the given diagonal direction.</returns> public static CubicHexCoord DiagonalDiff( DiagonalEnum direction ) { return DIAGONALS[ (int)direction ]; }
/// <summary> /// Returns a CubicHexCoord representing the diagonal of this hex in the given diagonal /// direction. /// </summary> /// <param name="direction">The diagonal direction of the requested neighbor.</param> /// <returns>A CubicHexCoord representing the diagonal of this hex in the given diagonal /// direction.</returns> public CubicHexCoord Diagonal( DiagonalEnum direction ) { return this + DIAGONALS[ (int)direction ]; }
/// <summary> /// Returns a CubicHexCoord representing the diff between some hex and its diagonal in /// the given diagonal direction. /// </summary> /// <param name="direction">The diagonal direction to return a diff for.</param> /// <returns>A CubicHexCoord representing the diff between some hex and its diagonal in /// the given diagonal direction.</returns> public static CubicHexCoord DiagonalDiff(DiagonalEnum direction) { return(DIAGONALS[(int)direction]); }
/// <summary> /// Returns a CubicHexCoord representing the diagonal of this hex in the given diagonal /// direction. /// </summary> /// <param name="direction">The diagonal direction of the requested neighbor.</param> /// <returns>A CubicHexCoord representing the diagonal of this hex in the given diagonal /// direction.</returns> public CubicHexCoord Diagonal(DiagonalEnum direction) { return(this + DIAGONALS[(int)direction]); }
public MovementHelper Diagonal(DiagonalEnum direction, params Validator[] validators) { return(Collect(CubicHexCoord.DiagonalDiff(direction), validators: validators)); }
DiagonalDiff(DiagonalEnum direction) { return(DIAGONALS[(int)direction]); }
Diagonal(DiagonalEnum direction) { return(this + DIAGONALS[(int)direction]); }