本文整理汇总了Python中Briefing类的典型用法代码示例。如果您正苦于以下问题:Python Briefing类的具体用法?Python Briefing怎么用?Python Briefing使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Briefing类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: loopbriefing
def loopbriefing(self):
brief_you=self.adjsys.loopbriefing()
if (brief_you != -1):
VS.IOmessage(0,"cargo mission","briefing","Once there, you must drop the cargo off at a specified unit")
if (self.briefgametime==0):
self.briefgametime = VS.GetGameTime()
elif ((VS.GetGameTime()-self.briefgametime)>5):
Briefing.terminate()
示例2: initbriefing
def initbriefing (self):
self.mytime = VS.GetGameTime();
faction=self.you.getFactionName();
name=self.you.getName()
self.brief_you=Briefing.addShip(name,faction,(40.0,0.0,80.0))
faction=self.significantun.getFactionName()
name = self.significantun.getName()
self.brief_sig=Briefing.addShip(name,faction,(-40,0.0,8000.0))
Briefing.enqueueOrder (self.brief_you,(-30,0.0,7900.0),5.0)
示例3: loopbriefing
def loopbriefing(self):
size=len(self.JumpPoints())
time = VS.GetGameTime()
Briefing.setCamPosition((1.6*(time-self.begintime)*self.brief_stage,0.0,0.0))
if (((time-self.begintime)>=5.0) and self.added_warp):
self.jump_ani=Briefing.addShip("brief_warp",self.faction,(20.0*(self.brief_stage),self.rnd_y,79.5+self.rnd_y))
self.added_warp=0
if (((time-self.begintime)>=6.0)):
if (self.jump_ani!=0):
Briefing.removeShip(self.jump_ani)
self.jump_ani=0
if ((size==self.brief_stage) and ((time-self.begintime)>=6.0)):
self.brief_stage=size+1
self.added_warp=0
self.time=0.0
elif ((self.brief_stage>size) and ((time-self.begintime)>=11.0)):
return self.brief_you
elif (((time-self.begintime)>=6.0) and (self.brief_stage<size)):
self.added_warp=1
self.rnd_y=(vsrandom.random()*40.0-20.0)
Briefing.addShip("brief_jump",self.faction,(20.0*(self.brief_stage+1),self.rnd_y,79.6+self.rnd_y))
Briefing.enqueueOrder (self.brief_you,(20.0*(self.brief_stage+1) ,self.rnd_y,80.0+self.rnd_y) , 5.0)
self.begintime=time
myname=self.JumpPoints() [self.brief_stage]
VS.IOmessage (0,"cargo mission","briefing","You must go to the '%s' jump point" % (myname))
self.brief_stage+=1
return -1
示例4: initbriefing
def initbriefing(self):
self.jump_ani=0
self.rnd_y=0.0
self.added_warp=1
self.brief_stage=0
self.begintime= VS.GetGameTime()-6.0
debug.info("starting briefing")
if (self.you.isNull()):
Briefing.terminate()
return
self.faction=self.you.getFactionName()
name=self.you.getName()
self.brief_you=Briefing.addShip(name,self.faction,(0.0,0.0,80.0))
VS.IOmessage (0,"go_to_adjacent_system","briefing","You must go to the %s system. In order to get there, you must follow this route that we have planned out for you." % self.DestinationSystem())
示例5: loopbriefing
def loopbriefing(self):
debug.info("loop briefing")
Briefing.terminate();
示例6: loopbriefing
def loopbriefing(self):
print "loop briefing"
Briefing.terminate();
示例7: loopbriefing
def loopbriefing(self):
print("loop briefing")
Briefing.terminate()
示例8: len
from Briefing import *
import ConfigParser
import os
import pprint
if len(sys.argv) > 1 :
cc = int(sys.argv[1])
else :
cc = 0
cfg = ConfigParser.ConfigParser()
cfg.read("top.conf")
brief = Briefing(cfg, cc)
brief.readTheme()
brief.parseTheme()
brief.readContent()
html = brief.printBriefingHTML()
briefingFile = brief.getFileName()
f = open(briefingFile, "w")
f.write(html)
f.close()
# get archive dir, create it if not existent
if not os.path.exists(brief.archiveDir):
os.makedirs(brief.archiveDir)
os.chdir(brief.archiveDir)