Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Hex Move(Hex.Direction, int)

Declaration

public Hex Move(
    Hex.Direction dir,
    int amount = 1
)

Summary

Returns the hex tile reached by moving in the specified direction.

Parameters

Hex.Directiondir Direction to move in.
intamount Number of tiles to move. Default is 1.

Exceptions

  • System.ArgumentOutOfRangeException
    The value of dir is not a valid HexDirection enum value.