Esempio n. 1
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()))
Esempio n. 2
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()))
Esempio n. 3
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()))