當前位置: 首頁>>代碼示例>>Python>>正文


Python PlayerUtil.getPlayer方法代碼示例

本文整理匯總了Python中PlayerUtil.getPlayer方法的典型用法代碼示例。如果您正苦於以下問題:Python PlayerUtil.getPlayer方法的具體用法?Python PlayerUtil.getPlayer怎麽用?Python PlayerUtil.getPlayer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PlayerUtil的用法示例。


在下文中一共展示了PlayerUtil.getPlayer方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: onReligionRejected

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onReligionRejected(argsList):
	#BugUtil.debug("DiplomacyUtil::onReligionRejected %s" %(str(argsList)))
	eTargetPlayer, eDemandPlayer, eReligion = argsList
	BugUtil.debug("DiplomacyUtil - %s rejects demand from %s to convert to %s",
			PlayerUtil.getPlayer(eTargetPlayer).getName(), 
			PlayerUtil.getPlayer(eDemandPlayer).getName(), 
			gc.getReligionInfo(eReligion).getDescription())
開發者ID:Alrik2002,項目名稱:Civ4-MMod,代碼行數:9,代碼來源:DiplomacyUtil.py

示例2: onEmbargoRejected

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onEmbargoRejected(argsList):
	#BugUtil.debug("DiplomacyUtil::onEmbargoRejected %s" %(str(argsList)))
	eTargetPlayer, eDemandPlayer, eVictim = argsList
	BugUtil.debug("DiplomacyUtil - %s rejects demand from %s to stop trading with %s",
			PlayerUtil.getPlayer(eTargetPlayer).getName(), 
			PlayerUtil.getPlayer(eDemandPlayer).getName(), 
			PlayerUtil.getPlayer(eVictim).getName())
開發者ID:Alrik2002,項目名稱:Civ4-MMod,代碼行數:9,代碼來源:DiplomacyUtil.py

示例3: onCivicRejected

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onCivicRejected(argsList):
	#BugUtil.debug("DiplomacyUtil::onCivicRejected %s" %(str(argsList)))
	eTargetPlayer, eDemandPlayer, eCivic = argsList
	BugUtil.debug("DiplomacyUtil - %s rejects demand from %s to switch to %s",
			PlayerUtil.getPlayer(eTargetPlayer).getName(), 
			PlayerUtil.getPlayer(eDemandPlayer).getName(), 
			gc.getCivicInfo(eCivic).getDescription())
開發者ID:Alrik2002,項目名稱:Civ4-MMod,代碼行數:9,代碼來源:DiplomacyUtil.py

示例4: onWarDemanded

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onWarDemanded(argsList):
	#BugUtil.debug("DiplomacyUtil::onWarDemanded %s" %(str(argsList)))
	eDemandPlayer, eTargetPlayer, eVictim = argsList
	BugUtil.debug("DiplomacyUtil - %s asks %s to declare war on %s",
			PlayerUtil.getPlayer(eDemandPlayer).getName(), 
			PlayerUtil.getPlayer(eTargetPlayer).getName(), 
			PlayerUtil.getPlayer(eVictim).getName())
開發者ID:Alrik2002,項目名稱:Civ4-MMod,代碼行數:9,代碼來源:DiplomacyUtil.py

示例5: onWarRejected

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onWarRejected(argsList):
	#BugUtil.debug("DiplomacyUtil::onWarRejected %s" %(str(argsList)))
	eTargetPlayer, eDemandPlayer, eVictim = argsList
	BugUtil.debug("DiplomacyUtil - %s rejects demand from %s to declare war on %s",
			PlayerUtil.getPlayer(eTargetPlayer).getName(), 
			PlayerUtil.getPlayer(eDemandPlayer).getName(), 
			PlayerUtil.getPlayer(eVictim).getName())
開發者ID:Alrik2002,項目名稱:Civ4-MMod,代碼行數:9,代碼來源:DiplomacyUtil.py

示例6: onDealRejected

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onDealRejected(argsList):
	#BugUtil.debug("DiplomacyUtil::onDealRejected %s" %(str(argsList)))
	eTargetPlayer, eOfferPlayer, pTrade = argsList
	BugUtil.debug("DiplomacyUtil - %s accepts trade offered by %s: %r",
			PlayerUtil.getPlayer(eTargetPlayer).getName(),
			PlayerUtil.getPlayer(eOfferPlayer).getName(), 
			pTrade)
開發者ID:Alrik2002,項目名稱:Civ4-MMod,代碼行數:9,代碼來源:DiplomacyUtil.py

示例7: onHelpOffered

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onHelpOffered(argsList):
	#BugUtil.debug("DiplomacyUtil::onHelpOffered %s" %(str(argsList)))
	eOfferPlayer, eTargetPlayer, pTrade = argsList
	BugUtil.debug("DiplomacyUtil - %s offers help to %s: %r",
			PlayerUtil.getPlayer(eOfferPlayer).getName(), 
			PlayerUtil.getPlayer(eTargetPlayer).getName(),
			pTrade)
開發者ID:Alrik2002,項目名稱:Civ4-MMod,代碼行數:9,代碼來源:DiplomacyUtil.py

示例8: onDealCanceled

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onDealCanceled(argsList):
	#BugUtil.debug("DiplomacyUtil::onDealCanceled %s" %(str(argsList)))
	eOfferPlayer, eTargetPlayer, pTrade = argsList
	if eOfferPlayer != -1 and eTargetPlayer != -1 and pTrade is not None:
		BugUtil.debug("DiplomacyUtil - %s cancels deal with %s: %r",
				PlayerUtil.getPlayer(eOfferPlayer).getName(), 
				PlayerUtil.getPlayer(eTargetPlayer).getName(),
				pTrade)
開發者ID:Alrik2002,項目名稱:Civ4-MMod,代碼行數:10,代碼來源:DiplomacyUtil.py

示例9: onVassalOffered

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onVassalOffered(argsList):
    # BugUtil.debug("DiplomacyUtil::onVassalOffered %s" %(str(argsList)))
    eOfferPlayer, eTargetPlayer = argsList
    BugUtil.debug(
        "DiplomacyUtil - %s offers vassalage to %s",
        PlayerUtil.getPlayer(eOfferPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eTargetPlayer).getCivilizationShortDescription(0),
    )
開發者ID:DC123456789,項目名稱:Dawn-of-Civilization,代碼行數:10,代碼來源:DiplomacyUtil.py

示例10: onWarRejected

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onWarRejected(argsList):
    # BugUtil.debug("DiplomacyUtil::onWarRejected %s" %(str(argsList)))
    eTargetPlayer, eDemandPlayer, eVictim = argsList
    BugUtil.debug(
        "DiplomacyUtil - %s rejects demand from %s to declare war on %s",
        PlayerUtil.getPlayer(eTargetPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eDemandPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eVictim).getCivilizationShortDescription(0),
    )
開發者ID:DC123456789,項目名稱:Dawn-of-Civilization,代碼行數:11,代碼來源:DiplomacyUtil.py

示例11: onCivicAccepted

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onCivicAccepted(argsList):
    # BugUtil.debug("DiplomacyUtil::onCivicAccepted %s" %(str(argsList)))
    eTargetPlayer, eDemandPlayer, eCivic = argsList
    BugUtil.debug(
        "DiplomacyUtil - %s accepts demand from %s to switch to %s",
        PlayerUtil.getPlayer(eTargetPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eDemandPlayer).getCivilizationShortDescription(0),
        gc.getCivicInfo(eCivic).getDescription(),
    )
開發者ID:DC123456789,項目名稱:Dawn-of-Civilization,代碼行數:11,代碼來源:DiplomacyUtil.py

示例12: onReligionAccepted

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onReligionAccepted(argsList):
    # BugUtil.debug("DiplomacyUtil::onReligionAccepted %s" %(str(argsList)))
    eTargetPlayer, eDemandPlayer, eReligion = argsList
    BugUtil.debug(
        "DiplomacyUtil - %s accepts demand from %s to convert to %s",
        PlayerUtil.getPlayer(eTargetPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eDemandPlayer).getCivilizationShortDescription(0),
        gc.getReligionInfo(eReligion).getDescription(),
    )
開發者ID:DC123456789,項目名稱:Dawn-of-Civilization,代碼行數:11,代碼來源:DiplomacyUtil.py

示例13: onDealRejected

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onDealRejected(argsList):
    # BugUtil.debug("DiplomacyUtil::onDealRejected %s" %(str(argsList)))
    eTargetPlayer, eOfferPlayer, pTrade = argsList
    BugUtil.debug(
        "DiplomacyUtil - %s accepts trade offered by %s: %r",
        PlayerUtil.getPlayer(eTargetPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eOfferPlayer).getCivilizationShortDescription(0),
        pTrade,
    )
開發者ID:DC123456789,項目名稱:Dawn-of-Civilization,代碼行數:11,代碼來源:DiplomacyUtil.py

示例14: onHelpOffered

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onHelpOffered(argsList):
    # BugUtil.debug("DiplomacyUtil::onHelpOffered %s" %(str(argsList)))
    eOfferPlayer, eTargetPlayer, pTrade = argsList
    BugUtil.debug(
        "DiplomacyUtil - %s offers help to %s: %r",
        PlayerUtil.getPlayer(eOfferPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eTargetPlayer).getCivilizationShortDescription(0),
        pTrade,
    )
開發者ID:DC123456789,項目名稱:Dawn-of-Civilization,代碼行數:11,代碼來源:DiplomacyUtil.py

示例15: onEmbargoAccepted

# 需要導入模塊: import PlayerUtil [as 別名]
# 或者: from PlayerUtil import getPlayer [as 別名]
def onEmbargoAccepted(argsList):
    # BugUtil.debug("DiplomacyUtil::onEmbargoAccepted %s" %(str(argsList)))
    eTargetPlayer, eDemandPlayer, eVictim = argsList
    BugUtil.debug(
        "DiplomacyUtil - %s agrees to demand from %s to stop trading with %s",
        PlayerUtil.getPlayer(eTargetPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eDemandPlayer).getCivilizationShortDescription(0),
        PlayerUtil.getPlayer(eVictim).getCivilizationShortDescription(0),
    )
開發者ID:DC123456789,項目名稱:Dawn-of-Civilization,代碼行數:11,代碼來源:DiplomacyUtil.py


注:本文中的PlayerUtil.getPlayer方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。