Home | Trees | Indices | Help |
|
---|
|
object --+ | FieldPosition
Represents field position.
The representation here is an integer offset where the 50 yard line corresponds to '0'. Being in the own territory corresponds to a negative offset while being in the opponent's territory corresponds to a positive offset.
e.g., NE has the ball on the NE 45, the offset is -5. e.g., NE has the ball on the NYG 2, the offset is 48.
This representation allows for gains in any particular play to be added to the field offset to get the new field position as the result of the play.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Static Methods | |||
a new object with type S, a subtype of T |
|
Properties | |
Inherited from |
Method Details |
|
pos_team is the team on offense, and yardline is a string formatted like 'team-territory yard-line'. e.g., "NE 32". An offset can be given directly by specifying an integer for offset.
|
str(x)
|
Returns a new field position with the yards added to self. Yards may be negative. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Aug 6 00:36:55 2013 | http://epydoc.sourceforge.net |