Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
privateer.py
Go to the documentation of this file.
1 from trading import trading
2 from random_encounters import random_encounters
3 from difficulty import difficulty
4 import dynamic_universe
5 #from garbage_collect import garbage_collect
6 import VS
7 import Director
8 import Briefing
9 import ShowProgress
11  def Execute(self):
12  pass
13  #VS.hideSplashScreen()
14  #ShowProgress.deactivateProgressScreen('loading')
15 
16 class privateer (Director.Mission):
17  loops=()
18 
19  def __init__ (self,sigdis, detectiondis, gendis, minships, genships, fighterprob, enemyprob, capprob, credits_to_maximize_difficulty, capdist):#negative garbage collect dist disables that feature
20  Director.Mission.__init__(self)
21  self.loops=(difficulty (credits_to_maximize_difficulty),
22  random_encounters (sigdis, detectiondis, gendis, minships,genships,fighterprob,enemyprob,capprob,capdist),
23  trading (),
24  dynamic_universe,
25  #garbage_collect (),
26  hideProgress())
27 
28  def Execute(self): #this execute function should not need to be changed...
29  if VS.networked():
30  import client
32  return # Do not want to do anything to get out of sync.
33  for i in self.loops:
34  i.Execute()
35  def initbriefing(self):
36  print "ending briefing"
37  def loopbriefing(self):
38  print "loop briefing"
39  Briefing.terminate();
40  def endbriefing(self):
41  print "ending briefing"
42 
43 #def initstarsystem():
44 # random_encounters.initstarsystem() #??? that isn't there