Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Functions | |
def | catInCatList |
def | adjustUnitCargo |
def | systemCargoDemand |
def | setFirstSaveData |
def | getAdjacentSystems |
def | getAdjacentSystemList |
def | getRandomJumppoint |
def | getJumppointList |
def | getMessagePlayer |
def | punish |
def | significantUnits |
def | GetNumSignificantsForSystem |
def | greet |
def init(): #(?) outstr=_string.new() current_system=_std.GetSystemName() last_system=_std.GetSystemName() old_system=_std.GetSystemName() system_map=_omap.new() _omap.set(system_map,current_system,current_system) More... | |
def | getDockedBase |
def | getDockedBaseName |
def | ReachableSystems |
def | AllSystems |
def | addTechLevel |
def universe.addTechLevel | ( | level, | |
addToBase = True |
|||
) |
Definition at line 229 of file universe.py.
References debug.debug, getDockedBase(), unit.getSignificant(), vsrandom.randrange(), locale.str(), and debug.warn.
def universe.adjustUnitCargo | ( | un, | |
cat, | |||
pr, | |||
qr | |||
) |
Definition at line 22 of file universe.py.
References catInCatList().
def universe.AllSystems | ( | ) |
Definition at line 223 of file universe.py.
References ReachableSystems().
def universe.catInCatList | ( | cat, | |
catlist | |||
) |
Definition at line 15 of file universe.py.
def universe.getAdjacentSystemList | ( | tothissystem) |
Definition at line 84 of file universe.py.
def universe.getAdjacentSystems | ( | currentsystem, | |
sysaway, | |||
jumps = () , |
|||
preferredfaction = '' |
|||
) |
returns a tuple in the format ("[lastsystem]",(system1,system2,system3,...))
Definition at line 56 of file universe.py.
References vsrandom.randrange().
def universe.getDockedBase | ( | ) |
Definition at line 195 of file universe.py.
def universe.getDockedBaseName | ( | ) |
def universe.getJumppointList | ( | ) |
Definition at line 99 of file universe.py.
def universe.getMessagePlayer | ( | un) |
def universe.GetNumSignificantsForSystem | ( | cursys) |
Definition at line 145 of file universe.py.
def universe.getRandomJumppoint | ( | ) |
def universe.greet | ( | greetingText, | |
enemy = None , |
|||
you = None |
|||
) |
def init(): #(?) outstr=_string.new() current_system=_std.GetSystemName() last_system=_std.GetSystemName() old_system=_std.GetSystemName() system_map=_omap.new() _omap.set(system_map,current_system,current_system)
def Execute(): jumped=false current_system=_std.GetSystemName() if(current_system!=last_system): // we have jumped _io.sprintf(outstr,"jumped from %s to %s",last_system,current_system) _io.message(0,"game","all",outstr) old_system=last_system last_system=_std.GetSystemName() jumped=true return jumped
Definition at line 169 of file universe.py.
References getMessagePlayer().
def universe.punish | ( | you, | |
faction, | |||
difficulty | |||
) |
Definition at line 115 of file universe.py.
References getMessagePlayer(), faction_ships.getRandomFighter(), and launch.launch_wave_around_unit().
def universe.ReachableSystems | ( | startingsys) |
def universe.setFirstSaveData | ( | player, | |
key, | |||
val | |||
) |
Definition at line 49 of file universe.py.
def universe.significantUnits | ( | ) |
def universe.systemCargoDemand | ( | category, | |
priceratio, | |||
quantratio, | |||
ships = 1 , |
|||
planets = 1 |
|||
) |