本文整理汇总了Python中General.setMissionWaypoint方法的典型用法代码示例。如果您正苦于以下问题:Python General.setMissionWaypoint方法的具体用法?Python General.setMissionWaypoint怎么用?Python General.setMissionWaypoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类General
的用法示例。
在下文中一共展示了General.setMissionWaypoint方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: import General [as 别名]
# 或者: from General import setMissionWaypoint [as 别名]
def run():
print '--> mission New Frontiers - Raw Materials (6 of 7)'
if not station.openInventory():
return False
if not station.loadItem('mission_cargo'):
return False
if not station.closeInventory():
return False
if not station.undock():
return False
pilot.autopilot()
if not general.setMissionWaypoint():
return False
if not station.startConversation(agent):
return False
if not station.completeMission():
return False
if not station.undock():
return False
pilot.autopilot()
print '<-- mission New Frontiers - Raw Materials (6 of 7)\n'
return True
示例2: run
# 需要导入模块: import General [as 别名]
# 或者: from General import setMissionWaypoint [as 别名]
def run():
print '--> mission Technological Secrets 2'
# this is a transport mission
if not (station.openInventory() \
and station.loadItem('dna_sample') \
and station.closeInventory()):
return False
if not station.undock():
return False
pilot.autopilot()
if not general.setMissionWaypoint():
return False
if not station.startConversation(agent):
return False
if not station.completeMission():
return False
if not station.undock():
return False
pilot.autopilot()
print '<-- mission Technological Secrets 2\n'
return True
示例3: run
# 需要导入模块: import General [as 别名]
# 或者: from General import setMissionWaypoint [as 别名]
def run():
print 'mission bot begin.\n'
log('\n\nbot started\n')
while True:
if not station.startConversation(agent):
print 'Error: Could not find target agent.'
return False
mission = pic.extractTextR(panel.MissionName).strip()
missionType = ''
print mission
if mission in battle:
missionType = 'b'
elif mission in transport:
missionType = 't'
elif mission in skip:
if not station.declineMission():
return False
else:
continue
else:
print 'Error: Cant find bot for mission \'' + mission + '\'.'
return False
record(mission, 'begin')
if not station.acceptMission():
print 'Error: Accept mission failed.'
return False
# mouse.moveToP(panel.center(panel.Mission))
# result = findAtFull('x')
# if not result:
# return False
# mouse.leftClickAtP(result)
if not general.setMissionWaypoint(True):
print 'Error: Cant set mission waypoint.'
return False
if missionType == 'b':
if not runBattle(mission):
return False
elif missionType == 't':
if not runTransport(mission):
return False
record(mission, 'complete')
示例4: run
# 需要导入模块: import General [as 别名]
# 或者: from General import setMissionWaypoint [as 别名]
def run():
print '--> mission New Frontiers - Raw Materials (3 of 7)'
if not station.activateShip('shuttle'):
return False
if not station.undock():
return False
pilot.autopilot()
if not station.openInventory():
return False
if not station.loadItem('datacore'):
return False
if not station.closeInventory():
return False
if not general.setMissionWaypoint():
return False
if not station.undock():
return False
pilot.autopilot()
if not station.startConversation(agent):
return False
if not station.completeMission():
return False
if not station.activateShip('dominix'):
return False
print '<-- mission New Frontiers - Raw Materials (3 of 7)\n'
return True