当前位置: 首页>>代码示例>>Python>>正文


Python Prototype.__init__方法代码示例

本文整理汇总了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)
开发者ID:sandrobonazzola,项目名称:wizards-magic2,代码行数:12,代码来源:water_cards_deck.py

示例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)
开发者ID:sandrobonazzola,项目名称:wizards-magic2,代码行数:12,代码来源:fire_cards_deck.py

示例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)
开发者ID:sandrobonazzola,项目名称:wizards-magic2,代码行数:14,代码来源:air_cards_deck.py

示例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)
开发者ID:sandrobonazzola,项目名称:wizards-magic2,代码行数:15,代码来源:death_cards_deck.py

示例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)
开发者ID:sandrobonazzola,项目名称:wizards-magic2,代码行数:15,代码来源:earth_cards_deck.py

示例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)
开发者ID:sandrobonazzola,项目名称:wizards-magic2,代码行数:17,代码来源:life_cards_deck.py


注:本文中的base.Prototype.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。