本文整理汇总了Python中Player.getItemList方法的典型用法代码示例。如果您正苦于以下问题:Python Player.getItemList方法的具体用法?Python Player.getItemList怎么用?Python Player.getItemList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Player
的用法示例。
在下文中一共展示了Player.getItemList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: useList
# 需要导入模块: import Player [as 别名]
# 或者: from Player import getItemList [as 别名]
def useList(): #Renvoie la liste des objets utilisables
global items, use
items = Player.isItem()
if items == 0:
return "Vous n'avez pas d'objets dans votre inventaire."
else:
use = 1
return "Quel objet voulez-vous utiliser? (Tapez le numero correspondant) ~~~~~~~~~~~~~~~~~~~~~~~~~~ " + Player.getItemList()
示例2: useList
# 需要导入模块: import Player [as 别名]
# 或者: from Player import getItemList [as 别名]
def useList(): #Renvoie la liste des objets utilisables
global items, use
items = Player.isItem()
if items == 0:
return "Your inventory is empty."
else:
use = 1
return "Which item do you want to use? (Type in the corresponding number) ~~~~~~~~~~~~~~~~~~~~~~~~~~ " + Player.getItemList()
示例3: throwList
# 需要导入模块: import Player [as 别名]
# 或者: from Player import getItemList [as 别名]
def throwList(): #Renvoie la liste des objets jetables
global items, throw
items = Player.isItem()
if items == 0:
return "Vous n'avez pas d'objets dans votre inventaire."
else:
throw = 1
return "Quel objet voulez-vous jeter? (Tapez le numero correspondant) ~~~~~~~~~~~~~~~~~~~~~~~~~~ " + Player.getItemList()
示例4: throwList
# 需要导入模块: import Player [as 别名]
# 或者: from Player import getItemList [as 别名]
def throwList(): #Renvoie la liste des objets jetables
global items, throw
items = Player.isItem()
if items == 0:
return "Your inventory is empty."
else:
throw = 1
return "Which item do you want to throw away? (Type in the corresponding number) ~~~~~~~~~~~~~~~~~~~~~~~~~~ " + Player.getItemList()