C# Class Hexagon

Implementation of hexagonal cell.
Inheritance: Cell
ファイルを表示 Open project: TheJP/GlobalGameJam2016 Class Usage Examples

Protected Properties

Property Type Description
_directions Vector3[]

Public Methods

Method Description
GetDistance ( Cell, other ) : int
GetNeighbours ( List cells ) : List

Protected Methods

Method Description
CubeToOffsetCoords ( Vector3 cubeCoords ) : Vector2

Method Details

CubeToOffsetCoords() protected method

protected CubeToOffsetCoords ( Vector3 cubeCoords ) : Vector2
cubeCoords Vector3
return Vector2

GetDistance() public method

public GetDistance ( Cell, other ) : int
other Cell,
return int

GetNeighbours() public method

public GetNeighbours ( List cells ) : List
cells List
return List

Property Details

_directions protected_oe static_oe property

protected static Vector3[] _directions
return Vector3[]