C# 클래스 Hexagon

Implementation of hexagonal cell.
상속: Cell
파일 보기 프로젝트 열기: TheJP/GlobalGameJam2016 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_directions Vector3[]

공개 메소드들

메소드 설명
GetDistance ( Cell, other ) : int
GetNeighbours ( List cells ) : List

보호된 메소드들

메소드 설명
CubeToOffsetCoords ( Vector3 cubeCoords ) : Vector2

메소드 상세

CubeToOffsetCoords() 보호된 메소드

protected CubeToOffsetCoords ( Vector3 cubeCoords ) : Vector2
cubeCoords Vector3
리턴 Vector2

GetDistance() 공개 메소드

public GetDistance ( Cell, other ) : int
other Cell,
리턴 int

GetNeighbours() 공개 메소드

public GetNeighbours ( List cells ) : List
cells List
리턴 List

프로퍼티 상세

_directions 보호되어 있는 정적으로 프로퍼티

protected static Vector3[] _directions
리턴 Vector3[]