from direct.task.Task import Task

from Character import *


class Ability(object):
    def __init__(self, inp, cooldown, ability, base, character):
        self.usable = True
        self.cooldown = cooldown
        self.base = base
        self.ability = ability
        self.character = character
        self.inp = inp

    def use(self):
        if self.usable:
            self.abili()
            self.usable = False
            self.base.taskMgr.doMethodLater(self.cooldown, self.reset, "cooldown")

    def abili(self):
        eval("self.character." + self.ability)

    def reset(self, task):
        self.usable = True
        return Task.done

71d3c20167afaad9b69e6a4608f67022f5996158
<mask token>


class Ability(object):
    <mask token>
    <mask token>

    def abili(self):
        eval('self.character.' + self.ability)

    def reset(self, task):
        self.usable = True
        return Task.done

<mask token>


class Ability(object):

    def __init__(self, inp, cooldown, ability, base, character):
        self.usable = True
        self.cooldown = cooldown
        self.base = base
        self.ability = ability
        self.character = character
        self.inp = inp
    <mask token>

    def abili(self):
        eval('self.character.' + self.ability)

    def reset(self, task):
        self.usable = True
        return Task.done

<mask token>


class Ability(object):

    def __init__(self, inp, cooldown, ability, base, character):
        self.usable = True
        self.cooldown = cooldown
        self.base = base
        self.ability = ability
        self.character = character
        self.inp = inp

    def use(self):
        if self.usable:
            self.abili()
            self.usable = False
            self.base.taskMgr.doMethodLater(self.cooldown, self.reset,
                'cooldown')

    def abili(self):
        eval('self.character.' + self.ability)

    def reset(self, task):
        self.usable = True
        return Task.done

from direct.task.Task import Task
from Character import *


class Ability(object):

    def __init__(self, inp, cooldown, ability, base, character):
        self.usable = True
        self.cooldown = cooldown
        self.base = base
        self.ability = ability
        self.character = character
        self.inp = inp

    def use(self):
        if self.usable:
            self.abili()
            self.usable = False
            self.base.taskMgr.doMethodLater(self.cooldown, self.reset,
                'cooldown')

    def abili(self):
        eval('self.character.' + self.ability)

    def reset(self, task):
        self.usable = True
        return Task.done

from direct.task.Task import Task

from Character import *


class Ability(object):
    def __init__(self, inp, cooldown, ability, base, character):
        self.usable = True
        self.cooldown = cooldown
        self.base = base
        self.ability = ability
        self.character = character
        self.inp = inp

    def use(self):
        if self.usable:
            self.abili()
            self.usable = False
            self.base.taskMgr.doMethodLater(self.cooldown, self.reset, "cooldown")

    def abili(self):
        eval("self.character." + self.ability)

    def reset(self, task):
        self.usable = True
        return Task.done
