API:CSector
From STNE Wiki
| Scripting Portal | Contents | API Reference | Index |
|---|
With the CSector Class, one can directly access to the actual game data, as it displays a Sector of the universe.
How to create such a Var:
Var sector As New CSector(211,222);
You can define its properties by using coordinates, this will lead the game to use the Standard-Galaxy-Map. Second possibility:
Var sector As New CSector(11111);
Every single Sector has an ID, you can use it. And third possibility: If you want to select a Sector on another map, e.g. an event-map
Var map As New SMap(map-id); Var sector As New CSector(x-coord,y-coord,map);
This Class has no Functions, but a bunch of Properties
| Property | Description | Value |
|---|---|---|
| Coordinates | The coordinates of this Sector | Returns an SPoint |
| Habitable | Needs Testing, Guess: Tests for Radioactivity | Returns an Boolean |
| isColoniseable | Tests if a player could found a Colony in the Sector | Returns an Boolean |
| isColony | Tests if there is a Colony in this Sector | Returns an Boolean:True if the test passes |
| isFreeSpace | Needs Testing, Guess: Tests for Space Stations and Colonies | Returns an Boolean |
| SectorID | Returns the Sector-ID, this is one of few ways acquiring these | Returns an Integer |
| RegionID | Needs Testing, Guess: Returns IDs for Setllers-Space/Federation or Klingon Territory | Returns an Integer |
| Type | Returns the Type of this Field: e.g. Quantum Singularity or Standard Planet | Returns an EGalaxyMapItemType |
| TypeName | Returns the Name of the .Type Property | Returns an String |