本文整理汇总了Python中Briefing.removeShip方法的典型用法代码示例。如果您正苦于以下问题:Python Briefing.removeShip方法的具体用法?Python Briefing.removeShip怎么用?Python Briefing.removeShip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Briefing
的用法示例。
在下文中一共展示了Briefing.removeShip方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: loopbriefing
# 需要导入模块: import Briefing [as 别名]
# 或者: from Briefing import removeShip [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