示例#1
0
    def __init__(self):
        self.logger = logging.getLogger('log.{0}.{1}'.format(
            __name__, self.__class__))
        self.ind = 2 * " "
        self.sep = "======================================================"

        self.py = playyards()
示例#2
0
    def __init__(self, text, debug=False):
        self.name = "fumble"

        self.logger = logging.getLogger('log.{0}.{1}'.format(
            __name__, self.__class__))
        self.ind = 6 * " "
        self.logger.debug("{0}Creating [{1}] Play from text [{2}]".format(
            self.ind, self.name, text))

        self.text = text
        footballplay.__init__(self, self.name, text, debug)
        self.pa = playanalysis(text=text, playtype=self.name)
        self.pa.findReturn()

        self.yds = playyards(text=text, playtype=self)
        self.yds.findYards()

        ## Fumble Specific
        self.rushing = None
        self.passing = None

        ## Player Specific
        self.fumbler = None
        self.recoverer = None
        self.turnover = None

        self.logger.debug("{0}Result of {1} play ==> Keys: {2}".format(
            self.ind, self.name, self.pa.getKeys()))
示例#3
0
    def __init__(self, text, playtype):
        self.logger = logging.getLogger('log.{0}.{1}'.format(
            __name__, self.__class__))
        self.ind = 8 * " "

        self.text = text
        self.yards = None

        self.ptc = playtextclass()

        self.__dict__[playtype] = True
        self.playtype = playtype

        py = playyards(text=text, playtype=playtype)
        self.findYards = py.findYards

        self.called = {}
示例#4
0
    def __init__(self, text, debug=False):
        self.name = "touchdown"

        self.logger = logging.getLogger('log.{0}.{1}'.format(
            __name__, self.__class__))
        self.ind = 6 * " "
        self.logger.debug("{0}Creating [{1}] Play from text [{2}]".format(
            self.ind, self.name, text))

        self.text = text
        footballplay.__init__(self, self.name, text, debug)
        self.pa = playanalysis(text=text, playtype=self.name)
        self.pa.findReturn()

        self.yds = playyards(text=text, playtype=self)
        self.yds.findYards()

        self.logger.debug("{0}Result of {1} play ==> Keys: {2}".format(
            self.ind, self.name, self.pa.getKeys()))
示例#5
0
    def __init__(self, text, debug=False):
        self.name = "passing"

        self.logger = logging.getLogger('log.{0}.{1}'.format(
            __name__, self.__class__))
        self.ind = 6 * " "
        self.logger.debug("{0}Creating [{1}] Play from text [{2}]".format(
            self.ind, self.name, text))

        self.text = text
        footballplay.__init__(self, self.name, text, debug)
        self.pa = playanalysis(text=text, playtype=self.name)
        self.pa.findPassing()

        self.yds = playyards(text=text, playtype=self)
        self.yds.findYards()

        ## Players
        self.quarterback = None
        self.receiver = None

        self.logger.debug("{0}Result of {1} play ==> Keys: {2}".format(
            self.ind, self.name, self.pa.getKeys()))