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

Public Member Functions

def __init__
 
def launch_new_wave
 

Data Fields

 lasttime
 
 waittime
 

Detailed Description

Definition at line 9 of file total_jump.py.

Constructor & Destructor Documentation

def __init__ (   self)

Definition at line 10 of file total_jump.py.

10 
11  def __init__(self):
12  VS.SetDifficulty(.1)
13  self.lasttime=-1000
self.waittime=5.0

Member Function Documentation

def launch_new_wave (   self)

Definition at line 14 of file total_jump.py.

References vsrandom.randrange(), and universe.significantUnits().

14 
15  def launch_new_wave(self):
16  un = VS.getPlayer()
17  if (vsrandom.randrange(0,4)==0):
18  if (un):
19  currentsystem = VS.getSystemFile()
20  numadj=VS.GetNumAdjacentSystems(currentsystem)
21  if (numadj):
22  cursys=VS.GetAdjacentSystem(currentsystem,vsrandom.randrange(0,numadj))
23  else:
24  cursys = 'enigma_sector/heavens_gate'
25  print "TJ: jumping to "+cursys
26  un.JumpTo(cursys)
27  else:
28  print "TJ: jumping to [ERROR: you are null]"
29  return
30  else:
32  if len(siglist)==0:
33  print "TJ: siglist empty"
34  return
35  sig=siglist[vsrandom.randrange(0,len(siglist))]
36  if (not sig):
37  print "TJ: sig null"
38  return
39  print "TJ: autopiloting to "+sig.getName()
40  un.AutoPilotTo(sig,True)
41  un.SetTarget(sig)

Field Documentation

lasttime

Definition at line 12 of file total_jump.py.

waittime

Definition at line 13 of file total_jump.py.


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