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


Python Briefing.addShip方法代码示例

本文整理汇总了Python中Briefing.addShip方法的典型用法代码示例。如果您正苦于以下问题:Python Briefing.addShip方法的具体用法?Python Briefing.addShip怎么用?Python Briefing.addShip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Briefing的用法示例。


在下文中一共展示了Briefing.addShip方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: loopbriefing

# 需要导入模块: import Briefing [as 别名]
# 或者: from Briefing import addShip [as 别名]
 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,代码行数:29,代码来源:go_to_adjacent_systems.py

示例2: initbriefing

# 需要导入模块: import Briefing [as 别名]
# 或者: from Briefing import addShip [as 别名]
 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,代码行数:11,代码来源:go_somewhere_significant.py

示例3: initbriefing

# 需要导入模块: import Briefing [as 别名]
# 或者: from Briefing import addShip [as 别名]
 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,代码行数:16,代码来源:go_to_adjacent_systems.py


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