当前位置: 首页>>代码示例>>Python>>正文


Python CvAdvisorUtils.buildingBuiltFeats方法代码示例

本文整理汇总了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)))
开发者ID:Nightinggale,项目名称:Religion_and_Revolution_Extended,代码行数:12,代码来源:CvEventManager.py

示例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)))
开发者ID:enepomnyaschih,项目名称:MyMod,代码行数:22,代码来源:CvEventManager.py


注:本文中的CvAdvisorUtils.buildingBuiltFeats方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。