C# Класс DivineRightGame.Managers.HelperObjects.Region

Represents a region on the world map
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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