C# Class DivineRightGame.Managers.HelperObjects.Region

Represents a region on the world map
Afficher le fichier Open project: Haedrian/Divine-Right Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

IsNeighbour() public méthode

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
Résultat bool

IsNeighbour() public méthode

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
Résultat bool

Region() public méthode

public Region ( ) : System
Résultat System