def __init__(self): self.logger = logging.getLogger('log.{0}.{1}'.format( __name__, self.__class__)) self.ind = 2 * " " self.sep = "======================================================" self.py = playyards()
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()))
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 = {}
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()))
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()))