本文整理汇总了Python中Ship.approachFor方法的典型用法代码示例。如果您正苦于以下问题:Python Ship.approachFor方法的具体用法?Python Ship.approachFor怎么用?Python Ship.approachFor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ship
的用法示例。
在下文中一共展示了Ship.approachFor方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: import Ship [as 别名]
# 或者: from Ship import approachFor [as 别名]
def run():
print "--> mission The Black Market Hub"
if not ship.enableDefense():
return False
if not overview.activateAccelerationGate():
return False
# pocket 1
if not drones.launchSmall():
return False
ship.enableAfterburn()
overview.seekAndDestory()
if not drones.back():
return False
if not overview.activateAccelerationGate():
return False
# pocket 2
if not overview.switchTo("lcs"):
return False
if not overview.lockTarget("docked_bestower", 1):
return False
ship.approachFor(5)
ship.enableAfterburn()
if not drones.launchSmall():
return False
ship.fireOnce()
drones.engage()
overview.switchTo("battle")
while not overview.pickCargo():
time.sleep(1)
drones.back()
print "<-- mission The Black Market Hub\n"
return True
示例2: run
# 需要导入模块: import Ship [as 别名]
# 或者: from Ship import approachFor [as 别名]
def run():
print '--> mission The Missing Canvoy'
ship.enableDefense()
if not overview.activateAccelerationGate():
return False
if not overview.switchTo('lcs'):
return False
if not overview.lockTarget('powerful_em', 1):
return False
ship.enableAfterburn()
ship.approachFor(120)
if not drones.launchSmall():
return False
ship.fireOnce()
drones.engage()
print 'wait for 80 sec'
time.sleep(80)
if not overview.lockTarget('lesser_drone_hive', 1):
return False
ship.approachFor(60)
ship.fireOnce()
drones.engage()
while not overview.pickCargo():
time.sleep(2)
while overview.pickCargo():
pass
if not drones.back():
return False
print '<-- mission The Missing Canvoy\n'
return True
示例3: run
# 需要导入模块: import Ship [as 别名]
# 或者: from Ship import approachFor [as 别名]
def run():
print '--> mission Unauthorized Military Presence'
if not ship.enableDefense():
return False
if not general.openMissionDetails():
return False
ship.enableAfterburn()
if not overview.activateAccelerationGate():
return False
if not overview.switchTo('battle'):
return False
if not overview.lockTarget('guristas_personnel'):
return False
if not ship.enableAfterburn():
return False
if not ship.approachFor(240):
return False
if not overview.lockTarget('guristas_personnel', 20):
return False
if not drones.launchSmall():
return False
if not ship.fireOnce():
return False
if not drones.engage():
return False
# mission item is in wreck
while not findAtMissionDetails('v'):
# collect
overview.pickWreck()
if not general.missionObjectiveComplete():
return False
# sometimes we already has millitans
# but the mission is not complete until all enemy dies
overview.seekAndDestory()
# just in case
overview.pickTarget('guristas_personnel')
if not drones.back():
return False
print '<-- mission Unauthorized Military Presence\n'
return True
示例4: run
# 需要导入模块: import Ship [as 别名]
# 或者: from Ship import approachFor [as 别名]
def run():
print '--> mission New Frontiers - Raw Materials (1 of 7)'
if not ship.enableDefense():
return False
if not general.openMissionDetails():
return False
if not drones.launchSmall():
return False
if not overview.switchTo('mine'):
return
if not overview.lockTarget('green_arisite', 1):
return False
ship.enableAfterburn()
ship.approachFor(70)
ship.mine()
begin = time.time()
while not findAtMissionDetails('v') and time.time() - begin > 130:
overview.lockTarget('green_arisite', 20)
ship.mine()
begin = time.time()
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission New Frontiers - Raw Materials (1 of 7)\n'
return True
示例5: run
# 需要导入模块: import Ship [as 别名]
# 或者: from Ship import approachFor [as 别名]
def run():
print '--> mission Intercept The Sabateurs'
if not ship.enableDefense():
return False
if not drones.launchSmall():
return False
overview.seekAndDestory()
if not drones.back():
return False
ship.enableAfterburn()
if not overview.activateAccelerationGate():
return False
# pocket 1
# main enemies are 90km away
# approach for 85 secs
# mean while clean up nearby enemy
drones.launchSmall()
if not overview.switchTo('battle'):
return False
if not overview.lockEnemy(20):
return False
ship.fireOnce()
if not overview.lockTarget('transport', 1):
return False
ship.enableAfterburn()
ship.approachFor(85)
# wait for stop
begin = time.time()
while time.time() - begin < 20:
ship.stop()
key.pressEx(sc.Unlock)
mouse.moveToP(panel.center(panel.Drones))
mouse.wheel(-100)
while findAtDrones('fighting'):
time.sleep(10)
drones.back()
# use sentry to destory all the smalls
for i in range(6):
overview.lockTarget('s', 1)
drones.launchSentry()
begin = time.time()
while overview.lockTarget('s', 1) and time.time() - begin < 130:
ship.fireOnce()
drones.engage()
drones.back()
# do the rest
ship.fireOnce()
drones.launchSmall()
overview.seekAndDestory()
while not overview.pickCargo():
pass
drones.back()
print '<-- mission Intercept The Sabateurs\n'
return True
示例6: run
# 需要导入模块: import Ship [as 别名]
# 或者: from Ship import approachFor [as 别名]
def run():
print '--> mission New Frontiers - Raw Materials (2 of 7)'
if not ship.enableDefense():
return False
ship.enableAfterburn()
if not overview.activateAccelerationGate():
return False
print 'pocket 1'
if not overview.switchTo('battle'):
return False
if not drones.launchSentry():
return False
if not overview.lockTarget('drone_energy', 25):
return False
drones.engage()
time.sleep(160)
if not drones.back():
return False
mouse.moveTo(100, 100)
result = findAtDrones('sentry')
if result:
mouse.leftClickAtP(result)
if not drones.launchSmall():
return False
ship.enableAfterburn()
overview.seekAndDestory()
if not overview.switchTo('lcs'):
return False
if not overview.lockTarget('delainens', 1):
return False
ship.approachFor(30)
drones.engage()
overview.switchTo('battle')
while not overview.pickCargo():
pass
while overview.pickCargo():
pass
overview.seekAndDestory()
if not drones.back():
return False
print '<-- mission New Frontiers - Raw Materials (2 of 7)\n'
return True