StarSystemInfo Class

The StarSystemInfo class represents the information about a StarSystem that is available to your Brain.  For StarSystems within your Brain's Scanner range, all of the properties are available.  If the StarSystem is not within range (Visible property is false), many values will return zero or false.  Your Brain accesses a list of StarSystemInfo objects via its StarSystems property.

General Properties

These properties are available to all StarSystemInfo objects.

public bool Visible
Returns whether the StarSystem is currently in your Brain's current range of visibility; either within Scanner range or adjacent to one of the Brain's StarSystems or StarShips.

public bool OwnedByMe
Returns true if the StarSystem is owned by the Player that the Brain is controlling.

public Point Location
public
int X
public
int Y
These properties provide access to the StarSystem's location.

Descriptive Properties

These properties will return correct values only if the StarSystem is Visible to your Brain.  Non-Visible StarSystems will return zero or false, depending on the property return type.

public bool AutoScanners
Returns true if the Brain has turned on auto-build Scanners for this StarSystem.

public bool AutoShields
Returns true if the Brain has turned on auto-build Shields for this StarSystem.

public bool AutoStarShip
Returns true if the Brain has turned on auto-build StarShips for this StarSystem.

public StarShipDescriptor AutoStarShipType
Returns a StarShipDescriptor object that describes the type of StarShip being auto-built at the StarSystem.

public StarShipType BonusShipType
Returns the StarShipType of the StarSystem's StarShip bonus, if any.  If the StarSystem does not have a StarShip bonus, this property returns StarShipType.WarShip.

public double BonusValue
Returns the StarShip bonus value possessed by the StarSystem, if any.  The value can range from 0 to 100 (0 indicating no bonus), and represents the amount of a percentage discount the Brain gets when building StarShips at this StarSystem that match the BonusShipType.

public bool IsCapital
Returns true if the StarSystem is a Player's Capital.

public bool JumpGateCreated
Returns true if the Brain has created a JumpGate at this StarSystem.

public string Name
Returns the name of the StarSystem.

public string Owner
Returns the name of the Player that owns the StarSystem.  If the StarSystem is not Visible, or independent, the property returns a blank string.

public int OwnerInt
Returns an integer index value of the owner of the StarSystem.  This ranges from 0 the Number of Players - 1.  If the StarSystem is not Visible, or it is independent, the method returns -1.

public int Resources
Returns the amount of Resources currently held at the StarSystem.

public int Scanners
Returns the number of Scanners at the StarSystem.

public int Shields
Returns the number of Shields at the StarSystem.

public int Value
Returns the StarSystem's Value.  The Value determines how quickly the StarSystem produces Resources.