Package nflgame :: Module seq :: Class GenDrives
[frames] | no frames]

Class GenDrives

source code

object --+    
         |    
       Gen --+
             |
            GenDrives

GenDrives implements a sequence type and provides a convenient API for searching drives.

Instance Methods
 
plays(self)
Returns all of the plays, in order, belonging to every drive in the sequence.
source code
 
players(self)
Returns the combined player stats for every player that participated in any of the drives in the sequence.
source code
 
number(self, n, team=None)
Gets the Nth drive where the first drive corresponds to n=1.
source code

Inherited from Gen: __init__, __iter__, __reversed__, __str__, filter, limit, sort

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

number(self, n, team=None)

source code 

Gets the Nth drive where the first drive corresponds to n=1. This is only useful given a complete collection of drives for an entire game.

If the team parameter is specified (i.e., team='NE'), then n will be interpreted as *that* team's Nth drive.