Class Quickstep
Class Quickstep
java.lang.Object
|
+----Figur
|
+----Quickstep
-
class
Quickstep
-
extends Figur
Quickstep: Stores the information of the quickstep figures.
To initialize a spezial figur:
Figur figur = new Quickstep(app, figNum, tempo, audioURL);
Whereat app the applet pointer is, figNum the number of the
slow quickstep 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 initNaturalTurn 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.
-
Version:
-
1.0f 25 Aug 1995
-
Author:
-
Georg Heßmann
-
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.
-
Quickstep(Dance, int, int, URL)
-
Initialze a dance and select a special figur out of this dance.
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.
Quickstep
public Quickstep(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.