C# Class Beyond_Beyaan.StarSystem

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

Public Properties

Property Type Description
OwnerPercentage float>.Dictionary

Public Methods

Method Description
AddEmpireExplored ( Empire empire ) : void
IsThisSystemExploredByEmpire ( Empire empire ) : bool
SetHomeworld ( Empire empire, Planet &homePlanet, Random r ) : void
StarSystem ( string name, int id, int x, int y, Color color, string description, Random r ) : System
StarSystem ( string name, int id, int x, int y, Color color, string description, int minPlanets, int maxPlanets, Random r ) : System
SystemHavePlanetOwnedByEmpire ( Empire empire ) : bool
UpdateOwners ( ) : void

Private Methods

Method Description
UpdateDominantEmpire ( ) : void

Method Details

AddEmpireExplored() public method

public AddEmpireExplored ( Empire empire ) : void
empire Empire
return void

IsThisSystemExploredByEmpire() public method

public IsThisSystemExploredByEmpire ( Empire empire ) : bool
empire Empire
return bool

SetHomeworld() public method

public SetHomeworld ( Empire empire, Planet &homePlanet, Random r ) : void
empire Empire
homePlanet Planet
r System.Random
return void

StarSystem() public method

public StarSystem ( string name, int id, int x, int y, Color color, string description, Random r ) : System
name string
id int
x int
y int
color Color
description string
r System.Random
return System

StarSystem() public method

public StarSystem ( string name, int id, int x, int y, Color color, string description, int minPlanets, int maxPlanets, Random r ) : System
name string
id int
x int
y int
color Color
description string
minPlanets int
maxPlanets int
r System.Random
return System

SystemHavePlanetOwnedByEmpire() public method

public SystemHavePlanetOwnedByEmpire ( Empire empire ) : bool
empire Empire
return bool

UpdateOwners() public method

public UpdateOwners ( ) : void
return void

Property Details

OwnerPercentage public_oe property

public Dictionary OwnerPercentage
return float>.Dictionary