Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Variables | |
tuple | ccp = VS.getCurrentPlayer() |
tuple | _tweaktuple = ('Squadron','Prime','Arc','Alpha','Aleph','Beta','Quadratis','Zeta','X','Plus','Blade','Delta','Dash','Xprime','Gamma','Hydris','Dual','Tri','Quad','Penta','Hex','Octo','Deca','Octate') |
def fg_util.AddShipsToFG | ( | fgname, | |
faction, | |||
typenumbertuple, | |||
starsystem | |||
) |
Definition at line 429 of file fg_util.py.
References debug.debug, FGSystem(), debug.info, MakeFGKey(), ShipListOffset(), and WriteStringList().
def fg_util.AllFactions | ( | ) |
Definition at line 61 of file fg_util.py.
def fg_util.AllFG | ( | faction) |
Definition at line 354 of file fg_util.py.
def fg_util.AllFGsInSystem | ( | faction, | |
system | |||
) |
Definition at line 491 of file fg_util.py.
References MakeStarSystemFactionFGKey(), and ReadStringList().
def fg_util.AllFlightgroups | ( | faction) |
def fg_util.AllShips | ( | faction, | |
offset = 1 |
|||
) |
Definition at line 843 of file fg_util.py.
def fg_util.BaseFG | ( | faction, | |
system | |||
) |
def fg_util.BaseFGInSystem | ( | faction, | |
system | |||
) |
def fg_util.BaseFGInSystemName | ( | system) |
Definition at line 488 of file fg_util.py.
def fg_util.CapshipInFG | ( | fg, | |
fac | |||
) |
Definition at line 552 of file fg_util.py.
References faction_ships.isCapital(), MakeFGKey(), PerShipDataSize(), and ShipListOffset().
def fg_util.CheckAllShips | ( | faction) |
Definition at line 849 of file fg_util.py.
References AllFGsInSystem(), AllFlightgroups(), debug.error, FGSystem(), and locale.str().
def fg_util.CheckFG | ( | fgname, | |
faction | |||
) |
Definition at line 275 of file fg_util.py.
References debug.debug, PerShipDataSize(), and ShipListOffset().
def fg_util.CountFactionShipsInSystem | ( | faction, | |
system | |||
) |
Definition at line 518 of file fg_util.py.
References debug.debug, debug.error, PerShipDataSize(), and ShipListOffset().
def fg_util.DefaultNumShips | ( | ) |
def fg_util.DeleteAllFG | ( | faction) |
Definition at line 366 of file fg_util.py.
References AllFG(), debug.debug, DeleteFG(), and SystemsWithFactionFGs().
def fg_util.DeleteAllFGFromAllSystems | ( | ) |
Definition at line 376 of file fg_util.py.
References AllFactions(), and DeleteAllFG().
def fg_util.DeleteFG | ( | fgname, | |
faction, | |||
deferaux = 0 |
|||
) |
def fg_util.DeleteLegacyFGLeftovers | ( | ) |
Definition at line 390 of file fg_util.py.
References universe.AllSystems(), DeleteLegacyFGs(), ShowProgress.setProgressBar(), and ShowProgress.setProgressMessage().
def fg_util.DeleteLegacyFGs | ( | sys) |
Definition at line 380 of file fg_util.py.
References DeleteFG(), MakeStarSystemFGKey(), ReadStringList(), and dospath.split().
def fg_util.FGsInSystem | ( | faction, | |
system | |||
) |
def fg_util.FGsLaunchedInCurrentSystem | ( | ) |
def fg_util.FGsLaunchedInCurrentSystemAsSet | ( | ) |
Definition at line 678 of file fg_util.py.
def fg_util.FGSystem | ( | fgname, | |
faction | |||
) |
def fg_util.filterLaunchedFGs | ( | fglist) |
def fg_util.GetDamageInFGPool | ( | fgname, | |
faction | |||
) |
def fg_util.getFgLeaderType | ( | fgname, | |
faction | |||
) |
Definition at line 866 of file fg_util.py.
References faction_ships.getRandomFighter(), and ShipsInFG().
def fg_util.GetRandomBaseName | ( | n, | |
faction | |||
) |
Definition at line 118 of file fg_util.py.
References debug.error, ReadBaseNameList(), and locale.str().
def fg_util.GetRandomFGNames | ( | numflightgroups, | |
faction | |||
) |
def fg_util.GetShipsInFG | ( | fgname, | |
faction | |||
) |
Definition at line 778 of file fg_util.py.
References DefaultNumShips(), debug.error, MakeFGKey(), PerShipDataSize(), vsrandom.random(), vsrandom.randrange(), and ShipListOffset().
def fg_util.HasLegacyFGFormat | ( | ) |
Definition at line 405 of file fg_util.py.
References universe.AllSystems(), and MakeStarSystemFGKey().
def fg_util.incr_by_abs | ( | num, | |
val | |||
) |
def fg_util.LandedShipsInFG | ( | fgname, | |
faction | |||
) |
Definition at line 544 of file fg_util.py.
References ShipsInFG().
def fg_util.LandShip | ( | fgname, | |
faction, | |||
typ, | |||
num = 1 |
|||
) |
Definition at line 840 of file fg_util.py.
References LaunchLandShip().
def fg_util.launchBase | ( | type, | |
num, | |||
faction, | |||
system, | |||
sig_units, | |||
numfighters | |||
) |
Definition at line 624 of file fg_util.py.
References debug.debug, seedrandom.interleave(), launchBaseStuck(), minIndex(), seedrandom.rand(), seedrandom.seed(), and seedrandom.seedstring().
def fg_util.launchBaseOrbit | ( | type, | |
faction, | |||
loc, | |||
orbitradius, | |||
orbitspeed, | |||
unit | |||
) |
Definition at line 578 of file fg_util.py.
References Vector.Add(), BaseFGInSystemName(), Vector.Mag(), Vector.Scale(), vsrandom.uniform(), and Vector.Vector().
def fg_util.launchBases | ( | sys) |
Definition at line 651 of file fg_util.py.
References launchBase(), universe.significantUnits(), and zeros().
def fg_util.launchBaseStuck | ( | type, | |
faction | |||
) |
Definition at line 616 of file fg_util.py.
def fg_util.LaunchLandShip | ( | fgname, | |
faction, | |||
typ, | |||
numlaunched = 1 |
|||
) |
Definition at line 807 of file fg_util.py.
References debug.debug, debug.error, PerShipDataSize(), ShipListOffset(), and locale.str().
def fg_util.LaunchShip | ( | fgname, | |
faction, | |||
typ, | |||
num = 1 |
|||
) |
Definition at line 837 of file fg_util.py.
def fg_util.launchSingleBase | ( | type, | |
faction, | |||
sig | |||
) |
Definition at line 606 of file fg_util.py.
References debug.debug.
def fg_util.launchUnits | ( | sys) |
Definition at line 701 of file fg_util.py.
References debug.debug, FGsInSystem(), filterLaunchedFGs(), faction_ships.getMaxFactions(), incr_by_abs(), debug.info, faction_ships.intToFaction(), launch_recycle.launch_types_around(), Vector.Mag(), vsrandom.randrange(), ShipsInFG(), universe.significantUnits(), and vsrandom.uniform().
def fg_util.ListToPipe | ( | tup) |
Definition at line 191 of file fg_util.py.
References MakeFactionKey(), MakeStarSystemFactionFGKey(), PerShipDataSize(), ShipListOffset(), locale.str(), and WriteStringList().
def fg_util.MakeFactionKey | ( | faction) |
Definition at line 40 of file fg_util.py.
References locale.str().
def fg_util.MakeFGKey | ( | fgname, | |
faction | |||
) |
Definition at line 43 of file fg_util.py.
References locale.str().
def fg_util.MakeStarSystemFactionFGKey | ( | starsystem, | |
faction | |||
) |
Definition at line 49 of file fg_util.py.
def fg_util.MakeStarSystemFGKey | ( | starsystem) |
Definition at line 46 of file fg_util.py.
References locale.str().
def fg_util.MaxNumBasesInSystem | ( | ) |
Definition at line 34 of file fg_util.py.
def fg_util.MaxNumFlightgroupsInSystem | ( | syst) |
Definition at line 22 of file fg_util.py.
def fg_util.maxTweakFGOffset | ( | ) |
Definition at line 151 of file fg_util.py.
def fg_util.minIndex | ( | vals, | |
indices | |||
) |
Definition at line 569 of file fg_util.py.
def fg_util.MinNumBasesInSystem | ( | ) |
Definition at line 37 of file fg_util.py.
def fg_util.MinNumFlightgroupsInSystem | ( | syst) |
Definition at line 28 of file fg_util.py.
def fg_util.NumAllFlightgroups | ( | faction) |
def fg_util.NumFactionFGsInSystem | ( | faction, | |
system | |||
) |
def fg_util.NumShipsInFG | ( | fgname, | |
faction | |||
) |
def fg_util.PerShipDataSize | ( | ) |
Definition at line 58 of file fg_util.py.
def fg_util.PurgeZeroShips | ( | faction) |
Definition at line 296 of file fg_util.py.
References debug.debug, and MakeFactionKey().
def fg_util.randDirection | ( | ) |
def fg_util.RandomFlightgroup | ( | faction) |
def fg_util.RandomShipIn | ( | fg, | |
fac | |||
) |
Definition at line 561 of file fg_util.py.
References MakeFGKey(), PerShipDataSize(), vsrandom.randrange(), and ShipListOffset().
def fg_util.ReadBaseNameList | ( | faction) |
Definition at line 71 of file fg_util.py.
References debug.debug, string.rstrip(), and vsrandom.shuffle().
def fg_util.ReadStringList | ( | cp, | |
key | |||
) |
Definition at line 168 of file fg_util.py.
def fg_util.RemoveShipFromFG | ( | fgname, | |
faction, | |||
type, | |||
numkill = 1 , |
|||
landed = 0 |
|||
) |
Definition at line 442 of file fg_util.py.
References debug.debug, DeleteFG(), debug.error, PerShipDataSize(), ShipListOffset(), and locale.str().
def fg_util.SetDamageInFGPool | ( | fgname, | |
faction, | |||
num | |||
) |
def fg_util.ShipListOffset | ( | ) |
Definition at line 55 of file fg_util.py.
def fg_util.ShipsInFG | ( | fgname, | |
faction, | |||
offset = 1 |
|||
) |
Definition at line 546 of file fg_util.py.
References MakeFGKey(), PerShipDataSize(), and ShipListOffset().
def fg_util.SortedAllShips | ( | faction, | |
offset = 1 |
|||
) |
def fg_util.SystemsWithFactionFGs | ( | faction) |
def fg_util.TransferFG | ( | fgname, | |
faction, | |||
tosys | |||
) |
def fg_util.TweakFGNames | ( | origfgnames) |
def fg_util.WriteStringList | ( | cp, | |
key, | |||
tup | |||
) |
Definition at line 154 of file fg_util.py.
def fg_util.zeros | ( | le) |
Definition at line 648 of file fg_util.py.
tuple _tweaktuple = ('Squadron','Prime','Arc','Alpha','Aleph','Beta','Quadratis','Zeta','X','Plus','Blade','Delta','Dash','Xprime','Gamma','Hydris','Dual','Tri','Quad','Penta','Hex','Octo','Deca','Octate') |
Definition at line 15 of file fg_util.py.
tuple ccp = VS.getCurrentPlayer() |
Definition at line 14 of file fg_util.py.