Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Data Structures | |
class | playerdata |
Public Member Functions | |
def | __init__ |
def | AddPlayer |
def | NewSystemHousekeeping |
def | RestoreDroneMission |
def | CalculateSignificantDistance |
def | SetEnemyProb |
def | AsteroidNear |
def | TrueEnProb |
def | launch_near |
def | atLeastNInsignificantUnitsNear |
def | SetModeZero |
def | SetModeOne |
def | decideMode |
def | DifferentSystemP |
def | Execute |
Static Public Attributes | |
int | psum = 0 |
list | probs = [] |
tuple | faction = faction_ships.intToFaction(factionnum) |
tuple | num = fg_util.NumFactionFGsInSystem(faction,cursys) |
tuple | avg = float(num) |
int | fortress_level = 0 |
list | foretress_level = faction_ships.fortress_systems[cursys] |
tuple | rnd = vsrandom.random() |
int | p = 0 |
tuple | fglist = fg_util.FGsInSystem(faction,cursys) |
list | flightgroup = fglist[vsrandom.randrange(len(fglist))] |
tuple | typenumbers = fg_util.GetShipsInFG(flightgroup,faction) |
Definition at line 18 of file random_encounters.py.
def __init__ | ( | self, | |
sigdis, | |||
detectiondis, | |||
gendis, | |||
minnships, | |||
gennships, | |||
unitprob, | |||
enemyprob, | |||
capprob, | |||
capdist | |||
) |
Definition at line 45 of file random_encounters.py.
References debug.debug.
def AddPlayer | ( | self) |
Definition at line 67 of file random_encounters.py.
References random_encounters.det_distance, random_encounters.players, Campaign.players, and random_encounters.sig_distance.
def AsteroidNear | ( | self, | |
uni, | |||
how | |||
) |
def atLeastNInsignificantUnitsNear | ( | self, | |
uni, | |||
n | |||
) |
Definition at line 202 of file random_encounters.py.
def CalculateSignificantDistance | ( | self) |
Definition at line 93 of file random_encounters.py.
References debug.debug, random_encounters.det_distance, unit.minimumSigDistApart(), random_encounters.sig_distance, and random_encounters.sig_distance_table.
def decideMode | ( | self) |
Definition at line 238 of file random_encounters.py.
References random_encounters.cur_player, debug.debug, random_encounters.DifferentSystemP(), random_encounters.SetModeOne(), and random_encounters.SetModeZero().
def DifferentSystemP | ( | self) |
Definition at line 279 of file random_encounters.py.
References random_encounters.NewSystemHousekeeping().
def Execute | ( | self) |
Definition at line 286 of file random_encounters.py.
References random_encounters.AddPlayer(), random_encounters.cur_player, generate_dyn_universe.KeepUniverseGenerated(), random_encounters.players, Campaign.players, and dynamic_battle.UpdateCombatTurn().
def launch_near | ( | self, | |
un, | |||
forceLaunch = False |
|||
) |
Definition at line 137 of file random_encounters.py.
References debug.debug, faction_ships.getMaxFactions(), and random_encounters.probability_cache.
def NewSystemHousekeeping | ( | self, | |
oldsystem, | |||
newsystem | |||
) |
Definition at line 72 of file random_encounters.py.
References ShowProgress.activateProgressScreen(), random_encounters.CalculateSignificantDistance(), random_encounters.cur_player, ShowProgress.deactivateProgressScreen(), fg_util.launchBases(), fg_util.launchUnits(), news.newNews(), and random_encounters.RestoreDroneMission().
def RestoreDroneMission | ( | self) |
Definition at line 89 of file random_encounters.py.
References random_encounters.cur_player.
def SetEnemyProb | ( | self, | |
enp | |||
) |
Definition at line 113 of file random_encounters.py.
References random_encounters.enprob.
def SetModeOne | ( | self, | |
significant | |||
) |
Definition at line 224 of file random_encounters.py.
References random_encounters.NewSystemHousekeeping().
def SetModeZero | ( | self) |
Definition at line 217 of file random_encounters.py.
def TrueEnProb | ( | self, | |
enprob | |||
) |
|
static |
Definition at line 169 of file random_encounters.py.
capship_gen_distance |
Definition at line 49 of file random_encounters.py.
capship_prob |
Definition at line 60 of file random_encounters.py.
cur |
Definition at line 291 of file random_encounters.py.
cur_player |
Definition at line 61 of file random_encounters.py.
det_distance |
Definition at line 54 of file random_encounters.py.
enprob |
Definition at line 51 of file random_encounters.py.
|
static |
Definition at line 163 of file random_encounters.py.
|
static |
Definition at line 189 of file random_encounters.py.
fighterprob |
Definition at line 52 of file random_encounters.py.
|
static |
Definition at line 191 of file random_encounters.py.
|
static |
Definition at line 172 of file random_encounters.py.
|
static |
Definition at line 170 of file random_encounters.py.
gen_num_ships |
Definition at line 59 of file random_encounters.py.
generation_distance |
Definition at line 57 of file random_encounters.py.
min_num_ships |
Definition at line 58 of file random_encounters.py.
|
static |
Definition at line 164 of file random_encounters.py.
|
static |
Definition at line 183 of file random_encounters.py.
players |
Definition at line 56 of file random_encounters.py.
probability_cache |
Definition at line 65 of file random_encounters.py.
|
static |
Definition at line 161 of file random_encounters.py.
|
static |
Definition at line 160 of file random_encounters.py.
|
static |
Definition at line 182 of file random_encounters.py.
sig_distance |
Definition at line 55 of file random_encounters.py.
sig_distance_table |
Definition at line 62 of file random_encounters.py.
spawning |
Definition at line 63 of file random_encounters.py.
|
static |
Definition at line 192 of file random_encounters.py.