Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
Launch Class Reference

Public Member Functions

def __init__
 
def Preprocess
 

Data Fields

 fg
 
 dynfg
 
 type
 
 num
 
 minradius
 
 maxradius
 
 useani
 
 logo
 
 faction
 
 ai
 
 numwaves
 
 pos
 
 fgappend
 
 forcetype
 
 capitalp
 

Detailed Description

Definition at line 101 of file launch.py.

Constructor & Destructor Documentation

def __init__ (   self)

Definition at line 102 of file launch.py.

103  def __init__ (self):
104  self.fg='Shadow'
105  self.dynfg=''
106  self.type='nova'
107  self.num=1
108  self.minradius=100.0
109  self.maxradius=200.0
110  self.useani=1
111  self.logo=''
112  self.faction='neutral'
113  self.ai='default'
114  self.numwaves=1
115  self._preprocess=0
116  self._nr_ships=0
117  self.pos=(0,0,0)
118  self.fgappend=''
119  self.forcetype=False;
self.capitalp=0

Member Function Documentation

def Preprocess (   self)

Definition at line 120 of file launch.py.

References Launch._dyn_nr_ships, Launch._nr_ships, Launch._preprocess, debug.debug, Launch.dynfg, debug.error, SystemInformation.faction, ShipTracker.faction, go_to_adjacent_systems.faction, Launch.faction, ClearFactionRecord.faction, PushRelation.faction, PopRelation.faction, LaunchWingmen.faction, ChangeSystemOwner.faction, ChangeShipOwners.faction, faction_ships.factionToInt(), Launch.fg, Launch.forcetype, faction_ships.getRandomFighterInt(), Launch.num, CargoSpaceCondition.num, AtMostActiveMissionsCondition.num, AtLeastActiveMissionsCondition.num, LaunchWingmen.num, fg_util.ShipsInFG(), locale.str(), ShipTracker.type, Message.type, Launch.type, CargoSpaceCondition.type, URLopener.type, Request.type, MiniFieldStorage.type, and FieldStorage.type.

121  def Preprocess (self):
122  self._preprocess=1
123  self._dyn_nr_ships=[]
124  self._nr_ships=self.num
125  import faction_ships
126  if self.dynfg!='':
127  import fg_util
128  tn=fg_util.ShipsInFG(self.dynfg,self.faction)
129  debug.debug('dynamic launching from '+str(tn)+' from flightgroup '+self.dynfg + ' faction '+ self.faction)
130  knum=0
131  if (tn!=[] and self.type!=''):
132  for i in range (len(tn)):
133  if (tn[i][0]==self.type):
134  knum=tn[i][1]
135  if (knum>self.num):
136  knum=self.num
137  self._dyn_nr_ships=[(self.type,knum)]
138  del tn[i]
break

Field Documentation

ai

Definition at line 112 of file launch.py.

capitalp

Definition at line 119 of file launch.py.

dynfg

Definition at line 104 of file launch.py.

faction

Definition at line 111 of file launch.py.

fg

Definition at line 103 of file launch.py.

fgappend

Definition at line 117 of file launch.py.

forcetype

Definition at line 118 of file launch.py.

logo

Definition at line 110 of file launch.py.

maxradius

Definition at line 108 of file launch.py.

minradius

Definition at line 107 of file launch.py.

num

Definition at line 106 of file launch.py.

numwaves

Definition at line 113 of file launch.py.

pos

Definition at line 116 of file launch.py.

type

Definition at line 105 of file launch.py.

useani

Definition at line 109 of file launch.py.


The documentation for this class was generated from the following file: