Class Tango
Class Tango
java.lang.Object
|
+----Figur
|
+----Tango
- class Tango
- extends Figur
Tango: Stores the information of the tango figures.
To initialize a spezial figur:
Figur figur = new Tango(app, figNum, tempo, audioURL);
Whereat app the applet pointer is, figNum the number of the
tango figur you want, tempo the speed of the sound defined
by the audioURL.
To add a new figur:
- Add the name of the figur into FigNames_{eng,ger}.
- Add an initialization function (use initLeftTurn as template)
- Add your initialization function into the switch statement of
the constructor.
If you don't have more than 4 figures, you don't have to change anything
in class Dance. If you have more figures, you only have to add more space
for the figur-buttons.
-
FigNames_eng
- Array of the english names of all implemented figures.
-
FigNames_ger
- Array of the german names of all implemented figures.
-
Name_eng
- English name of this dance.
-
Name_ger
- German name of this dance.
-
Tango(Dance, int, int, URL)
- Initialze a dance and select a special figur out of this dance.
-
toString()
- Returns a String object representing.
Name_eng
public final static String Name_eng
- English name of this dance.
Name_ger
public final static String Name_ger
- German name of this dance.
FigNames_eng
public final static String FigNames_eng[]
- Array of the english names of all implemented figures.
FigNames_ger
public final static String FigNames_ger[]
- Array of the german names of all implemented figures.
Tango
public Tango(Dance app,
int danceNum,
int temp,
URL audioURL)
- Initialze a dance and select a special figur out of this dance.
- Parameters:
- app - pointer to the dance applet.
- danceNum - number of the choosen figur. The number is defined
relative to the names in the FigNames_* array.
- tempo - of the given audio file
- audioURL - URL description of the given audio file.
Might be null if "no music" is selected.
toString
public String toString()
- Returns a String object representing.
- Overrides:
- toString in class Figur