Class SlowWaltz
Class SlowWaltz
java.lang.Object
|
+----Figur
|
+----SlowWaltz
- class SlowWaltz
- extends Figur
Slow Waltz: Stores the information of the slow waltz figures.
To initialize a spezial figur:
Figur figur = new SlowWaltz(app, figNum, tempo, audioURL);
Whereat app the applet pointer is, figNum the number of the
slow waltz 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 initNatTurn 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.
-
SlowWaltz(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.
SlowWaltz
public SlowWaltz(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