C# Класс DivineRightGame.Managers.WorldGenerationManager

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
CurrentStep string

Защищенные свойства (Protected)

Свойство Тип Описание
isGenerating bool
regions DivineRightGame.Managers.HelperObjects.Region[]

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

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

Приватные методы

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

Описание методов

ColoniseWorld() публичный статический Метод

Drops a number of settlements within the world
public static ColoniseWorld ( ) : void
Результат void

CreateBandits() публичный статический Метод

Create bandit camps
public static CreateBandits ( ) : void
Результат void

CreateDungeons() публичный статический Метод

public static CreateDungeons ( ) : void
Результат void

CreateOrcCitadels() публичный статический Метод

Creates Citadels on the map Will colonise areas not claimed by humans.
public static CreateOrcCitadels ( ) : void
Результат void

DetermineBiomes() публичный статический Метод

Determines the biomes for each tile from their traits
public static DetermineBiomes ( ) : void
Результат void

DetermineDesirability() публичный статический Метод

Determines the Desirability of a particular global tile
public static DetermineDesirability ( MapBlock block ) : int
block DRObjects.MapBlock
Результат int

DetermineDesirability() публичный статический Метод

This determines the base desirability for all tile by examining the tile itself
public static DetermineDesirability ( ) : void
Результат void

GenerateRains() публичный статический Метод

Generates the amount of rain in the world
public static GenerateRains ( ) : void
Результат void

GenerateResources() публичный статический Метод

Generates a number of resources on the map
public static GenerateResources ( ) : void
Результат void

GenerateRoads() публичный статический Метод

Generates the roads
public static GenerateRoads ( ) : void
Результат void

GenerateTemperatures() публичный статический Метод

Generates the temperatures of the world
public static GenerateTemperatures ( ) : void
Результат void

GenerateWorld() публичный статический Метод

Generates the global map
public static GenerateWorld ( ) : void
Результат void

GetBlocksAroundPoint() публичный статический Метод

Returns a filled square around a particular point
public static GetBlocksAroundPoint ( MapCoordinate centre, int radius ) : DRObjects.MapBlock[]
centre MapCoordinate
radius int
Результат DRObjects.MapBlock[]

GetCircleAroundPoint() публичный статический Метод

Gets a 'circle' of points 'radius' distance away from it
public static GetCircleAroundPoint ( MapCoordinate centre, int radius ) : DRObjects.MapBlock[]
centre MapCoordinate
radius int
Результат DRObjects.MapBlock[]

GetPointOnGaussianCurve() публичный статический Метод

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
Результат double

GetRandomGaussian() публичный статический Метод

Gets a random number on a gaussian distribution with a mean 0.0 and standard deviation 1.0
public static GetRandomGaussian ( ) : double
Результат double

HarvestResources() публичный статический Метод

Replaces certain resources with sites instead
public static HarvestResources ( ) : void
Результат void

MarkHillSlopes() публичный статический Метод

Marks certain places as having large slopes
public static MarkHillSlopes ( ) : void
Результат void

Описание свойств

CurrentStep публичное статическое свойство

public static string CurrentStep
Результат string

isGenerating защищенное статическое свойство

protected static bool isGenerating
Результат bool

regions защищенное статическое свойство

protected static Region[],DivineRightGame.Managers.HelperObjects regions
Результат DivineRightGame.Managers.HelperObjects.Region[]