本文整理汇总了Python中CvAdvisorUtils.endTurnFeats方法的典型用法代码示例。如果您正苦于以下问题:Python CvAdvisorUtils.endTurnFeats方法的具体用法?Python CvAdvisorUtils.endTurnFeats怎么用?Python CvAdvisorUtils.endTurnFeats使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CvAdvisorUtils
的用法示例。
在下文中一共展示了CvAdvisorUtils.endTurnFeats方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: onEndPlayerTurn
# 需要导入模块: import CvAdvisorUtils [as 别名]
# 或者: from CvAdvisorUtils import endTurnFeats [as 别名]
def onEndPlayerTurn(self, argsList):
'Called at the end of a players turn'
iGameTurn, iPlayer = argsList
if (gc.getGame().getElapsedGameTurns() == 1):
if (gc.getPlayer(iPlayer).isHuman()):
if (gc.getPlayer(iPlayer).canRevolution(0)):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_CHANGECIVIC)
popupInfo.addPopup(iPlayer)
CvAdvisorUtils.resetAdvisorNags()
CvAdvisorUtils.endTurnFeats(iPlayer)
示例2: onEndPlayerTurn
# 需要导入模块: import CvAdvisorUtils [as 别名]
# 或者: from CvAdvisorUtils import endTurnFeats [as 别名]
def onEndPlayerTurn(self, argsList):
'Called at the end of a players turn'
iGameTurn, iPlayer = argsList
CvAdvisorUtils.endTurnNags(iPlayer)
CvAdvisorUtils.endTurnFeats(iPlayer)