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


Python Minion.taunt方法代码示例

本文整理汇总了Python中hsgame.game_objects.Minion.taunt方法的典型用法代码示例。如果您正苦于以下问题:Python Minion.taunt方法的具体用法?Python Minion.taunt怎么用?Python Minion.taunt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在hsgame.game_objects.Minion的用法示例。


在下文中一共展示了Minion.taunt方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: create_minion

# 需要导入模块: from hsgame.game_objects import Minion [as 别名]
# 或者: from hsgame.game_objects.Minion import taunt [as 别名]
 def create_minion(self, player):
     minion = Minion(3, 5)
     minion.windfury = True
     minion.charge = True
     minion.divine_shield = True
     minion.taunt = True
     return minion
开发者ID:JonathanFlynn,项目名称:hearthstone-simulator,代码行数:9,代码来源:shaman.py

示例2: create_minion

# 需要导入模块: from hsgame.game_objects import Minion [as 别名]
# 或者: from hsgame.game_objects.Minion import taunt [as 别名]
    def create_minion(self, player):

        # These are basically placeholders to give the agent something to
        # choose
        class Health(Card):
            def __init__(self):
                super().__init__("+5 Health and Taunt", 0,
                                 CHARACTER_CLASS.DRUID, CARD_RARITY.SPECIAL)

        class Attack(Card):
            def __init__(self):
                super().__init__("+5 Attack", 0, CHARACTER_CLASS.DRUID,
                                 CARD_RARITY.SPECIAL)

        health = Health()
        attack = Attack()
        option = player.agent.choose_option(health, attack)
        minion = Minion(5, 5)
        if option is health:
            minion.increase_health(5)
            minion.taunt = True
        else:
            minion.change_attack(5)

        return minion
开发者ID:JonathanFlynn,项目名称:hearthstone-simulator,代码行数:27,代码来源:druid.py

示例3: use

# 需要导入模块: from hsgame.game_objects import Minion [as 别名]
# 或者: from hsgame.game_objects.Minion import taunt [as 别名]
    def use(self, player, game):
        super().use(player, game)
        class MirrorImageMinion(MinionCard):
            def __init__(self):
                super().__init__("Mirror Image", 0, CHARACTER_CLASS.MAGE, CARD_RARITY.SPECIAL, False)

            def create_minion(self, player):
                minion = Minion(0, 2)
                minion.taunt = True
                return minion

        minion1 = Minion(0, 2)
        minion2 = Minion(0, 2)
        minion1.taunt = True
        minion2.taunt = True
        minion1.add_to_board(MirrorImageMinion(), game, player, 0)
        minion2.add_to_board(MirrorImageMinion(), game, player, 0)
开发者ID:RushPu,项目名称:hearthstone-simulator,代码行数:19,代码来源:mage.py

示例4: create_minion

# 需要导入模块: from hsgame.game_objects import Minion [as 别名]
# 或者: from hsgame.game_objects.Minion import taunt [as 别名]
    def create_minion(self, player):
        class Ashbringer(WeaponCard):
            def __init__(self):
                super().__init__("Ashbringer", 5, CHARACTER_CLASS.PALADIN, CARD_RARITY.LEGENDARY)

            def create_weapon(self, player):
                weapon = Weapon(5, 3)
                return weapon

        def equip_ashbringer(minion):
            ashbringer = Ashbringer().create_weapon(player)
            ashbringer.equip(player)

        minion = Minion(6, 6, deathrattle=equip_ashbringer)
        minion.divine_shield = True
        minion.taunt = True
        return minion
开发者ID:JonathanFlynn,项目名称:hearthstone-simulator,代码行数:19,代码来源:paladin.py

示例5: create_minion

# 需要导入模块: from hsgame.game_objects import Minion [as 别名]
# 或者: from hsgame.game_objects.Minion import taunt [as 别名]
 def create_minion(self, player):
     minion = Minion(0, 2)
     minion.taunt = True
     return minion
开发者ID:RushPu,项目名称:hearthstone-simulator,代码行数:6,代码来源:mage.py

示例6: create_minion

# 需要导入模块: from hsgame.game_objects import Minion [as 别名]
# 或者: from hsgame.game_objects.Minion import taunt [as 别名]
 def create_minion(self, player):
     minion = Minion(4, 5)
     minion.divine_shield = True
     minion.taunt = True
     return minion
开发者ID:MaJac,项目名称:hearthstone-simulator,代码行数:7,代码来源:neutral.py

示例7: create_minion

# 需要导入模块: from hsgame.game_objects import Minion [as 别名]
# 或者: from hsgame.game_objects.Minion import taunt [as 别名]
 def create_minion(self, player):
     minion = Minion(3, 5, MINION_TYPE.DEMON, battlecry=destroy_own_crystal)
     minion.taunt = True
     return minion
开发者ID:JonathanFlynn,项目名称:hearthstone-simulator,代码行数:6,代码来源:warlock.py


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