C# Class Beyond_Beyaan.Planet

Datei anzeigen Open project: Beyonders/Beyond-Beyaan Class Usage Examples

Public Methods

Method 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

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

public AddRacePopulation ( Race whichRace, float amount ) : void
whichRace Beyond_Beyaan.Data_Modules.Race
amount float
return void

CheckIfShipBuilt() public method

public CheckIfShipBuilt ( int &amount ) : Ship
amount int
return Ship

Colonize() public method

public Colonize ( Empire whichEmpire ) : void
whichEmpire Empire
return void

GetRacePopulation() public method

public GetRacePopulation ( Race whichRace ) : float
whichRace Race
return float

Planet() public method

public Planet ( string name, Random r, StarSystem system ) : System
name string
r Random
system StarSystem
return System

Planet() public method

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

RemoveRace() public method

public RemoveRace ( Race whichRace ) : void
whichRace Race
return void

RemoveRacePopulation() public method

public RemoveRacePopulation ( Race whichRace, float amount ) : void
whichRace Race
amount float
return void

SetCleanup() public method

public SetCleanup ( ) : void
return void

SetHomeworld() public method

public SetHomeworld ( Empire owner, Random r ) : void
owner Empire
r Random
return void

SetOutputAmount() public method

public SetOutputAmount ( OUTPUT_TYPE outputType, int amount, bool forceChange ) : void
outputType OUTPUT_TYPE
amount int
forceChange bool
return void

UpdateOutputs() public method

public UpdateOutputs ( ) : void
return void

UpdatePlanet() public method

public UpdatePlanet ( ) : void
return void