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 Namespace Reference

Data Structures

class  total_jump
 

Functions

def Execute
 side = vsrandom.randrange(0,2) faction="confed" ai = vsrandom.randrange(0,2) if (ai==0): ai = "printhello.py" else: ai = "default" if (side==0): faction=faction_ships.get_enemy_of("confed") else: faction=faction_ships.get_friend_of("confed") launched = launch.launch_wave_around_unit ("Shadow",faction,faction_ships.getRandomFighter(faction),ai,vsrandom.randrange(1,10),100.0,2000.0,VS.getPlayer(),'') if (vsrandom.randrange(0,10)==0): launch.launch_wave_around_unit ("ShadowCap",faction,faction_ships.getRandomCapitol(faction),ai,1,2000.0,4000.0,VS.getPlayer(),'') More...
 
def initbriefing
 
def loopbriefing
 
def endbriefing
 

Variables

 waittime
 
 lasttime
 

Function Documentation

def total_jump.endbriefing (   self)

Definition at line 73 of file total_jump.py.

73 
74  def endbriefing(self):
75  print "ending briefing"
def total_jump.Execute (   self)

side = vsrandom.randrange(0,2) faction="confed" ai = vsrandom.randrange(0,2) if (ai==0): ai = "printhello.py" else: ai = "default" if (side==0): faction=faction_ships.get_enemy_of("confed") else: faction=faction_ships.get_friend_of("confed") launched = launch.launch_wave_around_unit ("Shadow",faction,faction_ships.getRandomFighter(faction),ai,vsrandom.randrange(1,10),100.0,2000.0,VS.getPlayer(),'') if (vsrandom.randrange(0,10)==0): launch.launch_wave_around_unit ("ShadowCap",faction,faction_ships.getRandomCapitol(faction),ai,1,2000.0,4000.0,VS.getPlayer(),'')

Definition at line 56 of file total_jump.py.

56 
57  def Execute (self):
58 # un=VS.getUnit(0);
59 # i=0
60 # while (un):
61 # print un.getName()
62 # i+=1
63 # un= VS.getUnit(i)
64  time = VS.GetGameTime()
65  if (time-self.lasttime>self.waittime):
66  self.launch_new_wave()
67  self.waittime=vsrandom.randrange(10.0,30.0)
self.lasttime=time
def total_jump.initbriefing (   self)

Definition at line 68 of file total_jump.py.

68 
69  def initbriefing(self):
print "ending briefing"
def total_jump.loopbriefing (   self)

Definition at line 70 of file total_jump.py.

70 
71  def loopbriefing(self):
72  print "loop briefing"
Briefing.terminate();

Variable Documentation

lasttime

Definition at line 67 of file total_jump.py.

waittime

Definition at line 66 of file total_jump.py.