C# Class DivineRightGame.Managers.WorldGenerationManager

Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Свойство Type Description
CurrentStep string

Protected Properties

Свойство Type Description
isGenerating bool
regions DivineRightGame.Managers.HelperObjects.Region[]

Méthodes publiques

Méthode Description
ColoniseWorld ( ) : void

Drops a number of settlements within the world

CreateBandits ( ) : void

Create bandit camps

CreateDungeons ( ) : void
CreateOrcCitadels ( ) : void

Creates Citadels on the map Will colonise areas not claimed by humans.

DetermineBiomes ( ) : void

Determines the biomes for each tile from their traits

DetermineDesirability ( MapBlock block ) : int

Determines the Desirability of a particular global tile

DetermineDesirability ( ) : void

This determines the base desirability for all tile by examining the tile itself

GenerateRains ( ) : void

Generates the amount of rain in the world

GenerateResources ( ) : void

Generates a number of resources on the map

GenerateRoads ( ) : void

Generates the roads

GenerateTemperatures ( ) : void

Generates the temperatures of the world

GenerateWorld ( ) : void

Generates the global map

GetBlocksAroundPoint ( MapCoordinate centre, int radius ) : DRObjects.MapBlock[]

Returns a filled square around a particular point

GetCircleAroundPoint ( MapCoordinate centre, int radius ) : DRObjects.MapBlock[]

Gets a 'circle' of points 'radius' distance away from it

GetPointOnGaussianCurve ( double peak, double centre, double width, double x ) : double

Plots a gaussian curve, and returns the value of f(x) for the given x

GetRandomGaussian ( ) : double

Gets a random number on a gaussian distribution with a mean 0.0 and standard deviation 1.0

HarvestResources ( ) : void

Replaces certain resources with sites instead

MarkHillSlopes ( ) : void

Marks certain places as having large slopes

Private Methods

Méthode Description
AssignRegionSizes ( ) : void

Assigns each region a different height

AssignRegions ( ) : void

Assigns each location to a different region

CreateSettlement ( bool capital, Settlement settlement, MapBlock block, int owner ) : SettlementItem

Puts settlement items on a particular location pertianing to a particular settlement.

ErodeWorld ( ) : void

Erodes the world's elevation

GenerateBorder ( ) : void

Generates the border, and sets the elevation to underwater

GeneratePathfindingMap ( MapBlock map ) : ].byte[
GenerateRivers ( ) : void

Generates a number of rivers according to the maximum river count assigned

Initialisation ( ) : void

Initialises the World Map in preperation. Creates the regions with empty ones, and sets the default tile settings

RoughSmooth ( ) : void

Runs a rough Interpolation on the world

Method Details

ColoniseWorld() public static méthode

Drops a number of settlements within the world
public static ColoniseWorld ( ) : void
Résultat void

CreateBandits() public static méthode

Create bandit camps
public static CreateBandits ( ) : void
Résultat void

CreateDungeons() public static méthode

public static CreateDungeons ( ) : void
Résultat void

CreateOrcCitadels() public static méthode

Creates Citadels on the map Will colonise areas not claimed by humans.
public static CreateOrcCitadels ( ) : void
Résultat void

DetermineBiomes() public static méthode

Determines the biomes for each tile from their traits
public static DetermineBiomes ( ) : void
Résultat void

DetermineDesirability() public static méthode

Determines the Desirability of a particular global tile
public static DetermineDesirability ( MapBlock block ) : int
block DRObjects.MapBlock
Résultat int

DetermineDesirability() public static méthode

This determines the base desirability for all tile by examining the tile itself
public static DetermineDesirability ( ) : void
Résultat void

GenerateRains() public static méthode

Generates the amount of rain in the world
public static GenerateRains ( ) : void
Résultat void

GenerateResources() public static méthode

Generates a number of resources on the map
public static GenerateResources ( ) : void
Résultat void

GenerateRoads() public static méthode

Generates the roads
public static GenerateRoads ( ) : void
Résultat void

GenerateTemperatures() public static méthode

Generates the temperatures of the world
public static GenerateTemperatures ( ) : void
Résultat void

GenerateWorld() public static méthode

Generates the global map
public static GenerateWorld ( ) : void
Résultat void

GetBlocksAroundPoint() public static méthode

Returns a filled square around a particular point
public static GetBlocksAroundPoint ( MapCoordinate centre, int radius ) : DRObjects.MapBlock[]
centre MapCoordinate
radius int
Résultat DRObjects.MapBlock[]

GetCircleAroundPoint() public static méthode

Gets a 'circle' of points 'radius' distance away from it
public static GetCircleAroundPoint ( MapCoordinate centre, int radius ) : DRObjects.MapBlock[]
centre MapCoordinate
radius int
Résultat DRObjects.MapBlock[]

GetPointOnGaussianCurve() public static méthode

Plots a gaussian curve, and returns the value of f(x) for the given x
public static GetPointOnGaussianCurve ( double peak, double centre, double width, double x ) : double
peak double
centre double
width double
x double
Résultat double

GetRandomGaussian() public static méthode

Gets a random number on a gaussian distribution with a mean 0.0 and standard deviation 1.0
public static GetRandomGaussian ( ) : double
Résultat double

HarvestResources() public static méthode

Replaces certain resources with sites instead
public static HarvestResources ( ) : void
Résultat void

MarkHillSlopes() public static méthode

Marks certain places as having large slopes
public static MarkHillSlopes ( ) : void
Résultat void

Property Details

CurrentStep public_oe static_oe property

public static string CurrentStep
Résultat string

isGenerating protected_oe static_oe property

protected static bool isGenerating
Résultat bool

regions protected_oe static_oe property

protected static Region[],DivineRightGame.Managers.HelperObjects regions
Résultat DivineRightGame.Managers.HelperObjects.Region[]