本文整理匯總了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())
示例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())
示例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())
示例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())
示例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())
示例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)
示例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)
示例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)
示例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),
)
示例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),
)
示例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(),
)
示例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(),
)
示例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,
)
示例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,
)
示例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),
)