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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/i/n/incantus-HEAD/src/engine/Player.py   incantus(Download)
    def you_may_pay(self, source, cost):
        if isinstance(cost, str): cost = ManaCost(cost)
        intent = self.getIntention(prompt="You may pay %s"%cost, msg="Would you like to pay %s"%cost)
        if intent and cost.precompute(source, self) and cost.compute(source, self):
            cost.pay(source, self)