本文整理汇总了Python中CvAdvisorUtils.buildingBuiltFeats方法的典型用法代码示例。如果您正苦于以下问题:Python CvAdvisorUtils.buildingBuiltFeats方法的具体用法?Python CvAdvisorUtils.buildingBuiltFeats怎么用?Python CvAdvisorUtils.buildingBuiltFeats使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CvAdvisorUtils
的用法示例。
在下文中一共展示了CvAdvisorUtils.buildingBuiltFeats方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: onBuildingBuilt
# 需要导入模块: import CvAdvisorUtils [as 别名]
# 或者: from CvAdvisorUtils import buildingBuiltFeats [as 别名]
def onBuildingBuilt(self, argsList):
'Building Completed'
pCity, iBuildingType = argsList
CvAdvisorUtils.buildingBuiltFeats(pCity, iBuildingType)
if (not self.__LOG_BUILDING):
return
CvUtil.pyPrint('%s was finished by Player %d Civilization %s'
%(gc.getBuildingInfo(iBuildingType).getDescription(), pCity.getOwner(), gc.getPlayer(pCity.getOwner()).getCivilizationDescription(0)))
示例2: onBuildingBuilt
# 需要导入模块: import CvAdvisorUtils [as 别名]
# 或者: from CvAdvisorUtils import buildingBuiltFeats [as 别名]
def onBuildingBuilt(self, argsList):
'Building Completed'
pCity, iBuildingType = argsList
game = gc.getGame()
if ((not gc.getGame().isNetworkMultiPlayer()) and (pCity.getOwner() == gc.getGame().getActivePlayer()) and isWorldWonderClass(gc.getBuildingInfo(iBuildingType).getBuildingClassType())):
# If this is a wonder...
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON_SCREEN)
popupInfo.setData1(iBuildingType)
popupInfo.setData2(pCity.getID())
popupInfo.setData3(0)
popupInfo.setText(u"showWonderMovie")
popupInfo.addPopup(pCity.getOwner())
CvAdvisorUtils.buildingBuiltFeats(pCity, iBuildingType)
if (not self.__LOG_BUILDING):
return
CvUtil.pyPrint('%s was finished by Player %d Civilization %s'
%(PyInfo.BuildingInfo(iBuildingType).getDescription(), pCity.getOwner(), gc.getPlayer(pCity.getOwner()).getCivilizationDescription(0)))