Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
wrong_escort Class Reference
Inheritance diagram for wrong_escort:
escort_mission

Public Member Functions

def __init__
 
def Execute
 
- Public Member Functions inherited from escort_mission
def __init__
 
def initbriefing
 
def loopbriefing
 
def endbriefing
 
def Execute
 

Data Fields

 alternatesystems
 
 alternatevariable
 
 alternateflightgroups
 
 alternatetypes
 
 alternategreeting
 
 alternatefactions
 
 cp
 
- Data Fields inherited from escort_mission
 you
 
 role
 
 gametime
 
 adjsys
 
 var_to_set
 
 distfrombase
 
 faction
 
 escortee
 
 difficulty
 
 creds
 
 arrived
 

Additional Inherited Members

- Static Public Attributes inherited from escort_mission
tuple you = VS.Unit()
 
tuple escortee = VS.Unit()
 
int adjsys = 0
 
int arrived = 0
 
string mplay = "all"
 

Detailed Description

Definition at line 3 of file wrong_escort.py.

Constructor & Destructor Documentation

def __init__ (   self,
  factionname,
  missiondifficulty,
  distance_from_base,
  creds,
  numsysaway,
  jumps = (),
  var_to_set = '',
  dynfg = '',
  dyntype = '',
  alternatesystems = (),
  alternatefactions = (),
  alternateflightgroups = (),
  alternatetypes = (),
  alternategreeting = (),
  alternatevariable = 'diverted' 
)

Definition at line 4 of file wrong_escort.py.

References escort_mission.__init__().

4 
5  def __init__ (self,factionname,missiondifficulty,distance_from_base,creds,numsysaway,jumps=(),var_to_set='',dynfg='',dyntype='',alternatesystems=(),alternatefactions=(),alternateflightgroups=(),alternatetypes=(),alternategreeting=(),alternatevariable='diverted'):
6  escort_mission.escort_mission.__init__(self,factionname,missiondifficulty,0,0,distance_from_base,creds,0,numsysaway,jumps,var_to_set,dynfg,dyntype)
7  self.alternatesystems=alternatesystems
8  self.alternatevariable=alternatevariable
9  self.alternateflightgroups=alternateflightgroups
10  self.alternatetypes=alternatetypes
11  self.alternategreeting=alternategreeting
12  self.alternatefactions=alternatefactions
13  import quest
14  import VS
15  self.cp = VS.getCurrentPlayer()
quest.removeQuest(self.cp,alternatevariable,-1)

Member Function Documentation

def Execute (   self)

Definition at line 16 of file wrong_escort.py.

References wrong_escort.alternatefactions, wrong_escort.alternateflightgroups, wrong_escort.alternategreeting, wrong_escort.alternatesystems, wrong_escort.alternatetypes, wrong_escort.alternatevariable, wrong_escort.cp, ambush.cp, tail.cp, directions_mission.cp, escort_mission.escortee, escort_mission.Execute(), universe.greet(), quest.removeQuest(), defend.var_to_set, escort_local.var_to_set, escort_mission.var_to_set, bounty.var_to_set, and cargo_mission.var_to_set.

16 
17  def Execute(self):
19  sys = self.escortee.getUnitSystemFile()
20  if sys in self.alternatesystems:
21  for i in range(len(self.alternatesystems)):
22  if sys==self.alternatesystems[i]:
23  import quest
25  quest.removeQuest(self.cp,self.var_to_set,-1)
26  import VS
27  import launch
28  L = launch.Launch()
29  L.fg="Escorts"
30  L.faction=self.alternatefactions[i]
31  L.dynfg=self.alternateflightgroups[i]
32  L.type=self.alternatetypes[i]
33  L.ai="default"
34  L.num=6
35  L.minradius=3000.0
36  L.maxradius=4000.0
37  try:
38  L.minradius*=faction_ships.launch_distance_factor
39  L.minradius*=faction_ships.launch_distance_factor
40  except:
41  pass
42  launched=L.launch(self.escortee)
43  self.escortee.setFgDirective('f')
44  self.escortee.setFlightgroupLeader(launched)
45  self.escortee.setFactionName(self.alternatefactions[i])
46  import universe
47  universe.greet(self.alternategreeting[i],launched,VS.getPlayerX(self.cp))
48  VS.terminateMission(1)
49  return
50 
51 

Field Documentation

alternatefactions

Definition at line 11 of file wrong_escort.py.

alternateflightgroups

Definition at line 8 of file wrong_escort.py.

alternategreeting

Definition at line 10 of file wrong_escort.py.

alternatesystems

Definition at line 6 of file wrong_escort.py.

alternatetypes

Definition at line 9 of file wrong_escort.py.

alternatevariable

Definition at line 7 of file wrong_escort.py.

cp

Definition at line 14 of file wrong_escort.py.


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