Exemplo n.º 1
0
 /// <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 ];
 }
Exemplo n.º 2
0
 /// <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 ];
 }
Exemplo n.º 3
0
 /// <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]);
 }
Exemplo n.º 4
0
 /// <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]);
 }
Exemplo n.º 5
0
 public MovementHelper Diagonal(DiagonalEnum direction, params Validator[] validators)
 {
     return(Collect(CubicHexCoord.DiagonalDiff(direction), validators: validators));
 }
Exemplo n.º 6
0
 DiagonalDiff(DiagonalEnum direction)
 {
     return(DIAGONALS[(int)direction]);
 }
Exemplo n.º 7
0
 Diagonal(DiagonalEnum direction)
 {
     return(this + DIAGONALS[(int)direction]);
 }