C# Class DivineRightGame.Managers.HelperObjects.Region

Represents a region on the world map
Datei anzeigen Open project: Haedrian/Divine-Right Class Usage Examples

Public Methods

Method Description
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

Method Details

IsInRegion() public method

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

IsNeighbour() public method

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
return bool

IsNeighbour() public method

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
return bool

Region() public method

public Region ( ) : System
return System