Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(1)  |  Derive(3)  |  Import(4)

src/i/n/incantus-HEAD/src/engine/Ability/StaticAbility.py   incantus(Download)
from functools import partial
from engine.pydispatch.dispatcher import CONTINUOUS_PRIORITY
from engine.GameEvent import ControllerChanged, TimestepEvent
from engine.MtGObject import MtGObject
from Ability import Ability
class StaticAbility(Ability):
    def __init__(self, effects, zone="battlefield", txt='', keyword=''):
        self.effect_generator = effects
        self.effect_tracking = None
        self.zone = zone

src/i/n/incantus-HEAD/src/engine/Ability/StackAbility.py   incantus(Download)
import copy
from engine.GameEvent import AbilityAnnounced, AbilityCanceled, AbilityCountered, AbilityResolved, TimestepEvent
from Ability import Ability
 
__all__ = ["StackAbility"]
 
class StackAbility(Ability):

src/i/n/incantus-HEAD/src/engine/Ability/TriggeredAbility.py   incantus(Download)
from engine.Util import isiterable
from engine.CardRoles import card_method
from Ability import Ability
from StackAbility import StackAbility
from EffectsUtilities import robustApply
class TriggeredAbility(Ability):
    def __init__(self, triggers, effects, zone="battlefield", txt='', keyword=''):
        if not isiterable(triggers): triggers=(triggers,)
        self.triggers = triggers
        self.effect_generator = effects