C# Class Beyond_Beyaan.Planet

Afficher le fichier Open project: Beyonders/Beyond-Beyaan Class Usage Examples

Méthodes publiques

Méthode Description
AddRacePopulation ( Race whichRace, float amount ) : void
CheckIfShipBuilt ( int &amount ) : Ship
Colonize ( Empire whichEmpire ) : void
GetRacePopulation ( Race whichRace ) : float
Planet ( string name, Random r, StarSystem system ) : System
Planet ( string name, string type, int maxPop, Empire owner, StarSystem system, Random r ) : System
RemoveRace ( Race whichRace ) : void
RemoveRacePopulation ( Race whichRace, float amount ) : void
SetCleanup ( ) : void
SetHomeworld ( Empire owner, Random r ) : void
SetOutputAmount ( OUTPUT_TYPE outputType, int amount, bool forceChange ) : void
UpdateOutputs ( ) : void
UpdatePlanet ( ) : void

Private Methods

Méthode Description
CalculateRaceGrowth ( Race race ) : float
CalculateTotalPopGrowth ( ) : float
GetPointsExcludingSelectedTypeAndLockedTypes ( OUTPUT_TYPE type ) : int
SetValues ( string name, string type, int maxPop, StarSystem system, Empire empire, Random r ) : void

Method Details

AddRacePopulation() public méthode

public AddRacePopulation ( Race whichRace, float amount ) : void
whichRace Beyond_Beyaan.Data_Modules.Race
amount float
Résultat void

CheckIfShipBuilt() public méthode

public CheckIfShipBuilt ( int &amount ) : Ship
amount int
Résultat Ship

Colonize() public méthode

public Colonize ( Empire whichEmpire ) : void
whichEmpire Empire
Résultat void

GetRacePopulation() public méthode

public GetRacePopulation ( Race whichRace ) : float
whichRace Race
Résultat float

Planet() public méthode

public Planet ( string name, Random r, StarSystem system ) : System
name string
r Random
system StarSystem
Résultat System

Planet() public méthode

public Planet ( string name, string type, int maxPop, Empire owner, StarSystem system, Random r ) : System
name string
type string
maxPop int
owner Empire
system StarSystem
r Random
Résultat System

RemoveRace() public méthode

public RemoveRace ( Race whichRace ) : void
whichRace Race
Résultat void

RemoveRacePopulation() public méthode

public RemoveRacePopulation ( Race whichRace, float amount ) : void
whichRace Race
amount float
Résultat void

SetCleanup() public méthode

public SetCleanup ( ) : void
Résultat void

SetHomeworld() public méthode

public SetHomeworld ( Empire owner, Random r ) : void
owner Empire
r Random
Résultat void

SetOutputAmount() public méthode

public SetOutputAmount ( OUTPUT_TYPE outputType, int amount, bool forceChange ) : void
outputType OUTPUT_TYPE
amount int
forceChange bool
Résultat void

UpdateOutputs() public méthode

public UpdateOutputs ( ) : void
Résultat void

UpdatePlanet() public méthode

public UpdatePlanet ( ) : void
Résultat void