本文整理汇总了Python中General.missionObjectiveComplete方法的典型用法代码示例。如果您正苦于以下问题:Python General.missionObjectiveComplete方法的具体用法?Python General.missionObjectiveComplete怎么用?Python General.missionObjectiveComplete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类General
的用法示例。
在下文中一共展示了General.missionObjectiveComplete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission The Space Telescope'
if not ship.enableDefense():
return False
if not overview.activateAccelerationGate():
return False
if not overview.switchTo('lcs'):
return False
if not overview.lockTarget('guristas_space', 15):
return False
if not drones.launchSmall():
return False
ship.fireOnce()
drones.engage()
if not general.openMissionDetails():
return False
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission The Space Telescope\n'
return True
示例2: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission What Comes Around Goes Around'
if not ship.enableDefense():
return False
if not drones.launchSmall():
return False
result = None
begin = time.time()
while not result and time.time() - begin < 5:
time.sleep(0.2)
result = findAtFull('close')
if result:
mouse.leftClickAtP(result)
if not general.openMissionDetails():
return False
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission What Comes Around Goes Around\n'
return True
示例3: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission The Guristas Spies'
if not ship.enableDefense():
return False
if not overview.activateAccelerationGate():
return False
if not drones.launchSmall():
return False
if not general.openMissionDetails():
return False
overview.seekAndDestory()
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission The Guristas Spies\n'
return True
示例4: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission Retribution'
if not ship.enableDefense():
return False
if not overview.activateAccelerationGate():
return False
if not overview.switchTo('lcs'):
return False
if not overview.lockTarget('guristas_outpost', 5):
return False
if not general.openMissionDetails():
return False
if not drones.launchSentry():
return False
ship.fireOnce()
drones.engage()
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission Retribution\n'
return True
示例5: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission Break Their Will'
if not ship.enableDefense():
return False
if not overview.switchTo('lcs'):
return False
if not overview.lockTarget('repair_station'):
return False
if not general.openMissionDetails():
return False
if not drones.launchSentry():
return False
if not drones.engage():
return False
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission Break Their Will\n'
return True
示例6: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission New Frontiers - Asnendanne (7 of 7)'
if not ship.enableDefense():
return False
if not general.openMissionDetails():
return False
ship.enableAfterburn()
if not overview.activateAccelerationGate():
return False
print 'pocket 1'
if not drones.launchSmall():
return False
overview.seekAndDestory()
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission New Frontiers - Asnendanne (7 of 7)\n'
return True
示例7: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print "--> mission Intercept the Pirate Smugglers"
result = None
begin = time.time()
while not result and time.time() - begin < 5:
time.sleep(0.2)
result = findAtFull("close")
if result:
mouse.leftClickAtP(result)
if not ship.enableDefense():
return False
if not drones.launchSmall():
return False
if not general.openMissionDetails():
return False
ship.enableAfterburn()
overview.seekAndDestory()
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print "<-- mission Intercept the Pirate Smugglers\n"
return True
示例8: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission Deadly Arrival'
if not ship.enableDefense():
return False
if not overview.switchTo('lco'):
return False
if not overview.lockTarget('ruined_structure'):
return False
if not ship.approach():
return False
if not ship.enableAfterburn():
return False
if not general.openMissionDetails():
return False
if not general.missionObjectiveComplete():
return False
print '<-- mission Deadly Arrival\n'
return True
示例9: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [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
示例10: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission Eliminate the Pirate Campers'
if not ship.enableDefense():
return False
if not drones.launchSentry():
return False
if not overview.switchTo('battle'):
return False
begin = time.time()
result = None
while not result and time.time() - begin < 5:
result = findAtFull('close')
if result:
mouse.leftClickAtP(result)
# kill small
count = 0
while count < 4:
result = overview.lockTarget('s', 1)
if result:
count += 1
begin = time.time()
while time.time() - begin < 120:
overview.lockTarget('s', 1)
ship.fireOnce()
drones.engage()
if not drones.back():
return False
# seek and destory
if not general.openMissionDetails():
return False
ship.enableAfterburn()
if not drones.launchSmall():
return False
overview.seekAndDestory()
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission Eliminate the Pirate Campers\n'
return True
示例11: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission Gone Berserk'
if not ship.enableDefense():
return False
if not drones.launchSmall():
return False
if not general.openMissionDetails():
return False
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission Gone Berserk\n'
return True
示例12: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission Technological Secrets 3'
if not ship.enableDefense():
return False
if not drones.launchSmall():
return False
if not general.openMissionDetails():
return False
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission Technological Secrets 3\n'
return True
示例13: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission Cut Throat Competition'
if not ship.enableDefense():
return False
if not drones.launchSmall():
return False
if not general.openMissionDetails():
return False
overview.seekAndDestory()
if not drones.back():
return False
if not overview.activateAccelerationGate():
return False
if not overview.switchTo('lcs'):
return False
if not overview.lockTarget('repair_outpost', 15):
return False
if not drones.launchSmall():
return False
ship.fireOnce()
drones.engage()
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission Cut Throat Competition\n'
return True
示例14: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [as 别名]
def run():
print '--> mission Success Comes At A Price'
if not ship.enableDefense():
return False
if not drones.launchSmall():
return False
if not general.openMissionDetails():
return False
overview.seekAndDestory()
if not general.missionObjectiveComplete():
return False
if not drones.back():
return False
print '<-- mission Success Comes At A Price\n'
return True
示例15: run
# 需要导入模块: import General [as 别名]
# 或者: from General import missionObjectiveComplete [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