C# Class HexNavigHelper, planet-survival

Show file Open project: gjrfytn/planet-survival

Public Methods

Method Description
Distance ( S32Vec2, coords1, S32Vec2, coords2, bool turnedHexes ) : ushort
GetNeighborMapCoords ( S32Vec2, pos, HexDirection direction ) : S32Vec2,
GetNeighborMapCoords ( S32Vec2, pos, TurnedHexDirection direction ) : S32Vec2,
IsMapCoordsAdjacent ( S32Vec2, coords1, S32Vec2, coords2, bool turnedHexes ) : bool

Определяет, прилегают ли к друг другу данные координаты.

Method Details

Distance() public static method

public static Distance ( S32Vec2, coords1, S32Vec2, coords2, bool turnedHexes ) : ushort
coords1 S32Vec2,
coords2 S32Vec2,
turnedHexes bool
return ushort

GetNeighborMapCoords() public static method

public static GetNeighborMapCoords ( S32Vec2, pos, HexDirection direction ) : S32Vec2,
pos S32Vec2,
direction HexDirection
return S32Vec2,

GetNeighborMapCoords() public static method

public static GetNeighborMapCoords ( S32Vec2, pos, TurnedHexDirection direction ) : S32Vec2,
pos S32Vec2,
direction TurnedHexDirection
return S32Vec2,

IsMapCoordsAdjacent() public static method

Определяет, прилегают ли к друг другу данные координаты.
public static IsMapCoordsAdjacent ( S32Vec2, coords1, S32Vec2, coords2, bool turnedHexes ) : bool
coords1 S32Vec2,
coords2 S32Vec2,
turnedHexes bool
return bool