本文整理汇总了Python中Character.Character.cmbtWindow方法的典型用法代码示例。如果您正苦于以下问题:Python Character.cmbtWindow方法的具体用法?Python Character.cmbtWindow怎么用?Python Character.cmbtWindow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Character.Character
的用法示例。
在下文中一共展示了Character.cmbtWindow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Character
# 需要导入模块: from Character import Character [as 别名]
# 或者: from Character.Character import cmbtWindow [as 别名]
'''
Created on May 4, 2015
@author: Weston
'''
from Character import Character
'''
["Name", mt, hit, crit, type, [list of ranges], worthPerUse, uses, rank, wExp given per hit]
'''
tome = ["tome", 0, 75, 0, 8, [1], 20, 1, 71, 3]
steelSword = ["Steel Sword", 0, 75, 0, 0, [1], 20, 1, 71, 3]
'''
[name, currentHp, level, experience, statList, growthList, wepExpList, Inventory]
'''
ike = Character(["Ike", 11, 3, 24, [100, 15, 3, 12, 13, 2, 5, 8], [75, 50, 20, 50, 55, 35, 40, 40], [71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [steelSword]])
mia = Character(["Mia", 15, 6, 98, [15, 13, 7, 10, 20, 14, 7, 5], [50, 40, 30, 45, 60, 45, 20, 25], [88, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0], [tome, steelSword]])
print(mia.inv.wep.name)
print(mia.stats)
mia.cmbtWindow(ike)
print(mia.stats)
print(mia.inv.ranks)