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

Public Member Functions

def __init__
 
def Execute
 
def LaunchedEnemies
 
- Public Member Functions inherited from bounty
def SetVar
 
def __init__
 
def AdjLocation
 
def Win
 
def Lose
 
def LaunchedEnemies
 
def Execute
 
def initbriefing
 
def loopbriefing
 
def endbriefing
 

Data Fields

 helpertype
 
 numhelpers
 
 helperfg
 
 upgrades
 
- Data Fields inherited from bounty
 firsttime
 
 newship
 
 dynfg
 
 mplay
 
 var_to_set
 
 istarget
 
 obj
 
 curiter
 
 arrived
 
 faction
 
 difficulty
 
 runaway
 
 greetingText
 
 cred
 
 you
 
 enemy
 
 adjsys
 
 dockable_unit
 
 displayLocation
 

Detailed Description

Definition at line 3 of file bounty_leader.py.

Constructor & Destructor Documentation

def __init__ (   self,
  minnumsystemsaway,
  maxnumsystemsaway,
  creds,
  run_away,
  shipdifficulty,
  tempfaction,
  jumps = (),
  var_to_set = '',
  dynfg = '',
  dyntype = "",
  displayLocation = 1,
  dynhelperfg = '',
  dynhelpertype = '',
  greetingText = ['It appears we have something in common,
  privateer,
  My,
  name,
  may,
  be,
  on,
  your,
  list,
  but,
  now,
  your,
  name,
  is,
  on,
  mine,
  leader_upgrades = [],
  dockable_unit = False 
)

Definition at line 4 of file bounty_leader.py.

References bounty.__init__().

4 
5  def __init__ (self,minnumsystemsaway, maxnumsystemsaway, creds, run_away, shipdifficulty, tempfaction,jumps=(),var_to_set='',dynfg='',dyntype="",displayLocation=1,dynhelperfg='',dynhelpertype='',greetingText=['It appears we have something in common, privateer.','My name may be on your list, but now your name is on mine.'],leader_upgrades=[],dockable_unit=False):
6  bounty.bounty.__init__(self,minnumsystemsaway,maxnumsystemsaway,creds,run_away,0,tempfaction,jumps,var_to_set,dynfg,dyntype,displayLocation,greetingText,dockable_unit)
7  self.helpertype=dynhelpertype
8  self.numhelpers=shipdifficulty
9  self.helperfg=dynhelperfg
self.upgrades=leader_upgrades

Member Function Documentation

def Execute (   self)

Definition at line 10 of file bounty_leader.py.

References bounty.Execute().

10 
11  def Execute(self):
bounty.bounty.Execute(self)
def LaunchedEnemies (   self,
  significant 
)

Definition at line 12 of file bounty_leader.py.

References SystemInformation.faction, ambush.faction, bounty.faction, ShipTracker.faction, go_to_adjacent_systems.faction, Launch.faction, ClearFactionRecord.faction, PushRelation.faction, PopRelation.faction, LaunchWingmen.faction, ChangeSystemOwner.faction, ChangeShipOwners.faction, faction_ships.getRandomFighter(), bounty_leader.helperfg, bounty_leader.helpertype, bounty.LaunchedEnemies(), bounty_leader.numhelpers, locale.str(), bounty_leader.upgrades, go_to_adjacent_systems.you, and bounty.you.

12 
13  def LaunchedEnemies(self,significant):
14  bounty.bounty.LaunchedEnemies(self,significant)
15  import launch
16  L = launch.Launch()
17  L.fg="Shadow"
18  L.dynfg=self.helperfg
19  L.faction = self.faction
20  if type(self.helpertype)==type(""):
21  L.type = self.helpertype
22  else:
23  L.type = self.helpertype[0]
24  L.faction=self.helpertype[1]
25  if L.type=="":
26  L.type=faction_ships.getRandomFighter(L.faction)
27  L.ai = "default"
28  L.num=self.numhelpers
29  L.minradius=3000.0
30  L.maxradius = 4000.0
31  try:
32  L.minradius*=faction_ships.launch_distance_factor
33  L.maxradius*=faction_ships.launch_distance_factor
34  except:
35  pass
36  if (self.numhelpers):
37  tempship=L.launch(significant)
38  tempship.SetTarget(self.you)
39  for u in self.upgrades:
40  args=(u,0,0,False)
41  if (type(u) is list or type (u) is tuple):
42  if (len(u)>3):
43  args=u
44  elif (len(u)>2):
45  args=(u[0],u[1],u[2],False)
46  elif (len(u)>1):
47  args=(u[0],u[1],0,False)
48  else:
49  args=(u[0],0,0,False)
self.enemy.upgrade(str(args[0]),int(args[1]),int(args[2]),1,args[3])

Field Documentation

helperfg

Definition at line 8 of file bounty_leader.py.

helpertype

Definition at line 6 of file bounty_leader.py.

numhelpers

Definition at line 7 of file bounty_leader.py.

upgrades

Definition at line 9 of file bounty_leader.py.


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