|
|||||||||
| Home >> All >> com >> textflex >> [ txtfl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.textflex.txtfl
Class Play

java.lang.Objectcom.textflex.txtfl.Play
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class Play
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
- extends java.lang.Object
Football plays, whether offensive or defensive, passing, rushing, kickoff, or the like.
| Field Summary | |
private java.lang.String |
category
|
private int |
dist
|
private java.lang.String |
name
|
private java.lang.String[][] |
players
|
private int |
playersIndex
|
private java.lang.String |
side
|
private java.lang.String |
width
|
| Constructor Summary | |
Play()
Constructs a play to set manually. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the object in compliance with the Cloneable interface. |
java.lang.String |
getCategory()
Gets the category of the play. |
int |
getDist()
Gets the distance of the play. |
java.lang.String |
getName()
Gets the name of the play. |
java.lang.String[][] |
getPlayers()
Gets the player assignments of the play. |
java.lang.String |
getSide()
Gets the side of the play. |
java.lang.String |
getWidth()
Gets the width setting of the play. |
int |
getWidthYds()
Gets the yards along the width of the field from the centerline. |
boolean |
isOffense()
Checks if the play is an offensive one. |
boolean |
isPositionSet(java.lang.String position)
Checks if the position has already been assigned in the play. |
void |
setCategory(java.lang.String aCategory)
Sets the category of the play. |
void |
setDist(int aDist)
Sets the distance of the play. |
void |
setName(java.lang.String aName)
Sets the name of the play. |
void |
setPlayer(java.lang.String player)
Adds the player to the player assignment list, a array of 2-element arrays, consisting of first the position and then the name of a specifically assigned player, if necessary. |
void |
setSide(java.lang.String aSide)
Sets the side of the play. |
void |
setWidth(java.lang.String aWidth)
Sets the width setting of the play. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
name
private java.lang.String name
category
private java.lang.String category
side
private java.lang.String side
dist
private int dist
width
private java.lang.String width
players
private java.lang.String[][] players
playersIndex
private int playersIndex
| Constructor Detail |
Play
public Play()
- Constructs a play to set manually.
| Method Detail |
getWidthYds
public int getWidthYds()
- Gets the yards along the width of the field from the centerline.
Right is taken as positive; left is negative.
getName
public java.lang.String getName()
- Gets the name of the play.
getCategory
public java.lang.String getCategory()
- Gets the category of the play.
getSide
public java.lang.String getSide()
- Gets the side of the play.
getDist
public int getDist()
- Gets the distance of the play.
The distance refers to the focal point of the play from the line
of scrimmage.
For example, the distance of a passing play would be the point of
reception, and that of a defensive pass/run blocking play would
be where the defense concentrates its coverage.
getWidth
public java.lang.String getWidth()
- Gets the width setting of the play.
The setting can be either left, middle, or right, referring to the
side of the field from the offense's perspective.
getPlayers
public java.lang.String[][] getPlayers()
- Gets the player assignments of the play.
The array consists of 2-element arrays, which in turn consist of
first a position and then the player assignged to it.
setName
public void setName(java.lang.String aName)
- Sets the name of the play.
setCategory
public void setCategory(java.lang.String aCategory)
- Sets the category of the play.
setSide
public void setSide(java.lang.String aSide)
- Sets the side of the play.
setDist
public void setDist(int aDist)
- Sets the distance of the play.
setWidth
public void setWidth(java.lang.String aWidth)
- Sets the width setting of the play.
setPlayer
public void setPlayer(java.lang.String player)
- Adds the player to the player assignment list, a array of
2-element arrays, consisting of first the position and then
the name of a specifically assigned player, if necessary.
Default maximum of 15 players in the player assignment list.
isPositionSet
public boolean isPositionSet(java.lang.String position)
- Checks if the position has already been assigned in the play.
isOffense
public boolean isOffense()
- Checks if the play is an offensive one.
clone
public java.lang.Object clone()
- Clones the object in compliance with the Cloneable interface.
|
|||||||||
| Home >> All >> com >> textflex >> [ txtfl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.textflex.txtfl.Play