本文整理汇总了Python中base.Prototype.cast_action方法的典型用法代码示例。如果您正苦于以下问题:Python Prototype.cast_action方法的具体用法?Python Prototype.cast_action怎么用?Python Prototype.cast_action使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base.Prototype
的用法示例。
在下文中一共展示了Prototype.cast_action方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: cast_action
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import cast_action [as 别名]
def cast_action(self):
if self.parent.player.mana['life'] >= 2:
# если хватает маны, то активируем фокус
Prototype.cast_action(self)
for card in self.get_enemy_cards():
if card.element == "death":
card.light_switch(True)
示例2: cast_action
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import cast_action [as 别名]
def cast_action(self):
if self.parent.player.mana['air'] >= 2:
# if player have mana for cast
Prototype.cast_action(self) # activating focus-cast
for card in self.get_enemy_cards():
if card.cast: # if it`s caster
card.light_switch(True) # enable lighting
示例3: cast_action
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import cast_action [as 别名]
def cast_action(self):
Prototype.cast_action(self) # enable focus-cast
for card in self.get_self_cards():
if card.element == "fire" and card != self:
card.light_switch(True)
else:
continue
示例4: cast_action
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import cast_action [as 别名]
def cast_action(self):
Prototype.cast_action(self)
for card in self.get_self_cards():
if card != self:
card.light_switch(True)
示例5: cast_action
# 需要导入模块: from base import Prototype [as 别名]
# 或者: from base.Prototype import cast_action [as 别名]
def cast_action(self):
if self.parent.player.mana['death'] >= 3:
Prototype.cast_action(self)
for card in self.get_enemy_cards():
if card.level <= 3:
card.light_switch(True)