C# 클래스 DivineRightGame.Managers.HelperObjects.Region

Represents a region on the world map
파일 보기 프로젝트 열기: Haedrian/Divine-Right 1 사용 예제들

공개 메소드들

메소드 설명
IsInRegion ( MapBlock block ) : bool

Returns true if the current block is in the region

IsNeighbour ( MapBlock block ) : bool

Returns true if this block is a distance of 1 away from any of the blocks in this region

IsNeighbour ( Region region ) : bool

Returns true if this region is adjacent to this region. That is they have at least one pair of adjacent tiles

Region ( ) : System

메소드 상세

IsInRegion() 공개 메소드

Returns true if the current block is in the region
public IsInRegion ( MapBlock block ) : bool
block DRObjects.MapBlock
리턴 bool

IsNeighbour() 공개 메소드

Returns true if this block is a distance of 1 away from any of the blocks in this region
public IsNeighbour ( MapBlock block ) : bool
block DRObjects.MapBlock
리턴 bool

IsNeighbour() 공개 메소드

Returns true if this region is adjacent to this region. That is they have at least one pair of adjacent tiles
public IsNeighbour ( Region region ) : bool
region Region
리턴 bool

Region() 공개 메소드

public Region ( ) : System
리턴 System