当前位置: 首页>>代码示例>>Python>>正文


Python Briefing类代码示例

本文整理汇总了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()
开发者ID:bsmr-games,项目名称:Privateer-Gemini-Gold,代码行数:8,代码来源:cargo_mission.py

示例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)
开发者ID:jowave,项目名称:Vegastrike-taose,代码行数:9,代码来源:go_somewhere_significant.py

示例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
开发者ID:ermo,项目名称:privateer_wcu,代码行数:27,代码来源:go_to_adjacent_systems.py

示例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())
开发者ID:ermo,项目名称:privateer_wcu,代码行数:14,代码来源:go_to_adjacent_systems.py

示例5: loopbriefing

 def loopbriefing(self):
     debug.info("loop briefing")
     Briefing.terminate();
开发者ID:ermo,项目名称:privateer_wcu,代码行数:3,代码来源:defend_drone.py

示例6: loopbriefing

 def loopbriefing(self):
     print "loop briefing"
     Briefing.terminate();
开发者ID:jowave,项目名称:Vegastrike-taose,代码行数:3,代码来源:escort_mission.py

示例7: loopbriefing

 def loopbriefing(self):
     print("loop briefing")
     Briefing.terminate()
开发者ID:vegastrike,项目名称:Assets-Production,代码行数:3,代码来源:total_jump.py

示例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)
开发者ID:boombador,项目名称:NewsBetter,代码行数:29,代码来源:main.py


注:本文中的Briefing类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。