Private Methods | |
void | SetOwner (GALOBJ ownerobj) |
void | SetVisited (int visited) |
int | GetX () |
int | GetY () |
table | GetSuns () |
table | GetPlanets () |
table | GetShips () |
table | GetDocks () |
table | GetFactories () |
table | GetAsteroids () |
table | GetNebulas () |
table | GetCustomGalObj () |
table | GetGates () |
table | GetFlyingWares () |
GALOBJ | GetOwner () |
int | GetClass () |
int | IsClass (int cl) |
int | GetGType () |
int | GetType () |
int | GetObjectID () |
int | GetVisited () |
string | GetName () |
string | GetYourName () |
GALOBJ | GetEnvironment () |
GALOBJ | GetGateDirXY (int dirx, int diry) |
GALOBJ | GetNorthGate () |
GALOBJ | GetSouthGate () |
GALOBJ | GetWestGate () |
GALOBJ | GetEastGate () |
GALOBJ | GetGate (int gateid) |
int | GetGateIDs () |
int | GetPopulation () |
void | SetPopulation (int a_p) |
void | AddSun (GALOBJ sun) |
void | AddPlanet (GALOBJ planet) |
void | RemovePlanet (GALOBJ planet) |
void | AddDock (GALOBJ dock) |
void | RemoveDock (GALOBJ dock) |
void | AddFactory (GALOBJ factory) |
void | RemoveFactory (GALOBJ factory) |
void | AddAsteroid (GALOBJ asteroid) |
void | RemoveAsteroid (GALOBJ asteroid) |
void | AddNebula (GALOBJ nebula) |
void | RemoveNebula (GALOBJ nebula) |
void | AddCustomGalObj (GALOBJ gobject) |
void | RemoveCustomGalObj (GALOBJ gobject) |
void | AddGate (GALOBJ gate) |
void | RemoveGate (GALOBJ gate) |
void | AddShip (GALOBJ ship) |
void | RemoveShip (GALOBJ ship) |
void | AddFlyingWare (GALOBJ ware) |
void | RemoveFlyingWare (GALOBJ ware) |
int | FindShip (int a_raceid, int a_class, int a_subtype, int a_flags, int a_refobj, int a_maxdist, int a_num, int a_x, int a_y, int a_z) |
int | FindAsteroid (int a_restype, int a_minyield, int a_flags, int a_refobj, int a_maxdist, int a_num, int a_x, int a_y, int a_z) |
int | FindFlyingWare (int a_maintype, int a_subtype, int a_flags, int a_refobj, int a_maxdist, int a_num, int a_x, int a_y, int a_z) |
GALOBJ | FindStation (int a_raceid, int a_class, int a_type, int a_flags, GALOBJ a_refobj, int a_serial, int a_maxjumps) |
Private Attributes | |
int | sec_X |
int | sec_Y |
GALOBJ | sec_Owner |
table | sec_Ships |
table | sec_Planets |
table | sec_Suns |
table | sec_Docks |
table | sec_Factories |
table | sec_Asteroids |
int | sec_GalaxyCut |
int | sec_GateIDs |
BOOL | sec_Visited |
int | sec_Population |
table | sec_CustomGalObj |
|
adds a GALOBJ to the corresponding table
|
|
adds a GALOBJ to sec_CustomGalObj
|
|
adds a GALOBJ to the corresponding table
|
|
adds a GALOBJ to the corresponding table
|
|
adds a GALOBJ to the corresponding table
|
|
adds a GALOBJ to the corresponding table
|
|
adds a GALOBJ to the corresponding table
|
|
adds a GALOBJ to the corresponding table
|
|
adds a GALOBJ to the corresponding table
|
|
adds a GALOBJ to the corresponding table
|
|
find an asteroid
|
|
find a ware flying around in the sector
|
|
find a ship
|
|
find a station
|
|
returns sec_Asteroids
|
|
See Functions common in every object.
|
|
returns sec_CustomGalObj
|
|
returns sec_Docks
|
|
returns sec_EastGate
|
|
returns object that contains this object (in this case 0 because all other objects are in sectors)
|
|
returns sec_Factories
|
|
returns sec_FlyingWares
|
|
returns the gate with the ID of "gateid". gateid can be DIRECTION_* (0 to 5)
|
|
if dirx>0 function returns the eastgate, otherwise the westgate; same with diry and south/northgate
|
|
Return all existing warpgates as a bit mask. Use "GetGateIDs() & bitmask" to find out if a specific warpgate exists. BITMASKS: North Gate: 1<<DIRECTION_NORTH; South Gate: 1<<DIRECTION_SOUTH; West Gate: 1<<DIRECTION_WEST; East Gate: 1<<DIRECTION_EAST. For example: to get the northgate use "GetGateIDs() & 1<<DIRECTION_NORTH" |
|
returns sec_Gates
|
|
See Differences of in-game objects.
|
|
returns name of the sector
|
|
returns sec_Nebulas
|
|
returns sec_NorthGate
|
|
See Functions common in every object.
|
|
returns sec_Owner
|
|
returns sec_Planets
|
|
returns sec_Population
|
|
returns sec_Ships
|
|
returns sec_SouthGate
|
|
returns sec_Suns
|
|
See Differences of in-game objects.
|
|
returns sec_Visited
|
|
returns sec_WestGate
|
|
returns sec_X
|
|
returns sec_Y
|
|
same as GetName()
|
|
See Functions common in every object.
|
|
removes a GALOBJ from the corresponding table
|
|
removes a GALOBJ from sec_CustomGalObj
|
|
removes a GALOBJ from the corresponding table
|
|
removes a GALOBJ from the corresponding table
|
|
removes a GALOBJ from the corresponding table
|
|
removes a GALOBJ from sec_CustomGalObj
|
|
removes a GALOBJ from the corresponding table
|
|
removes a GALOBJ from the corresponding table
|
|
removes a GALOBJ from the corresponding table
|
|
sets the owner of this sector.
|
|
sets sec_Population
|
|
sets sec_Visited
|
|
OBJ_ASTEROID instances in this sector.
|
|
other objects than stations, ships, planets.., e.g wares
|
|
OBJ_DOCK instances in this sector.
|
|
OBJ_FACTORY instances in this sector.
|
|
which galaxy cut is being used
|
|
bitmask of gate ids
|
|
OBJ_RACE instance.
|
|
OBJ_PLANET instances in this sector.
|
|
population of the sector
|
|
OBJ_SHIP instances in this sector.
|
|
OBJ_SUN instances in this sector.
|
|
sector already known by player? (display in galaxy-map depends on this)
|
|
X-coordinate of sector in sector-map (0 <= x < SECTORS_X).
|
|
Y-coordinate of sector in sector-map (0 <= y < SECTORS_Y).
|