本文整理汇总了Python中base.Prototype.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Prototype.__init__方法的具体用法?Python Prototype.__init__怎么用?Python Prototype.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base.Prototype
的用法示例。
在下文中一共展示了Prototype.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import __init__ [as 别名]
def __init__(self):
self.name = "IceGuard"
self.element = "water"
self.level = 5
self.info = _("Reduces all damage done to owner by 50%. " "Suffers 200% damage from fire.")
self.power = 4
self.cast = False
self.health = 19
self.imagefile = "ice_guard.gif"
Prototype.__init__(self)
示例2: __init__
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import __init__ [as 别名]
def __init__(self):
self.name = "Cerberus"
self.element = "fire"
self.level = 4
self.power = 4
self.info = _("Attacks adjacent enemy units at a half of it`s strength.")
self.cast = False
self.health = 6
self.imagefile = "cerberus.gif"
Prototype.__init__(self)
示例3: __init__
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import __init__ [as 别名]
def __init__(self):
self.name = "Nymph"
self.element = "air"
self.level = 3
self.power = 1
self.cast = False
self.info = _(
"Owner receives 1 Air at the beginning of Owners turn."
)
self.health = 12
self.imagefile = 'nymph.gif'
Prototype.__init__(self)
示例4: __init__
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import __init__ [as 别名]
def __init__(self):
self.name = "Vampire"
self.element = "death"
self.level = 9
self.power = 6
self.health = 22
self.cast = False
self.info = _(
"When attacks living creature, restores health equal to "
"50% of damage dealt. Maximum 30 health."
)
self.imagefile = 'vampire.gif'
Prototype.__init__(self)
示例5: __init__
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import __init__ [as 别名]
def __init__(self):
self.name = "Golem"
self.element = "earth"
self.level = 5
self.power = 4
self.cast = False
self.health = 15
self.info = _(
"Regenerates 3 health every turn. "
"While owner's Earth less than 3, it suffers 3 damage instead."
)
self.imagefile = 'golem.gif'
Prototype.__init__(self)
示例6: __init__
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import __init__ [as 别名]
def __init__(self):
self.name = "Priest"
self.element = "life"
self.level = 4
self.cast = False
self.power = 1
self.health = 9
self.info = _(
"Increases owner`s Life by 1 every turn, "
"decreasing Death by the same amount. "
"Decreases owner`s Life by 3 every time owner "
"casts Death spells."
)
self.imagefile = 'priest.gif'
Prototype.__init__(self)