|
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 VisibleReturns 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 OwnedByMeReturns true if the StarSystem is owned by the Player that the Brain is controlling. public Point Locationpublic 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 AutoScannersReturns true if the Brain has turned on auto-build Scanners for this StarSystem. public bool AutoShieldsReturns true if the Brain has turned on auto-build Shields for this StarSystem. public bool AutoStarShipReturns true if the Brain has turned on auto-build StarShips for this StarSystem. public StarShipDescriptor AutoStarShipTypeReturns a StarShipDescriptor object that describes the type of StarShip being auto-built at the StarSystem. public StarShipType BonusShipTypeReturns 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 BonusValueReturns 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 IsCapitalReturns true if the StarSystem is a Player's Capital. public bool JumpGateCreatedReturns true if the Brain has created a JumpGate at this StarSystem. public string NameReturns the name of the StarSystem. public string OwnerReturns 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 OwnerIntReturns 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 ResourcesReturns the amount of Resources currently held at the StarSystem. public int ScannersReturns the number of Scanners at the StarSystem. public int ShieldsReturns the number of Shields at the StarSystem. public int ValueReturns the StarSystem's Value. The Value determines how quickly the StarSystem produces Resources. |