java.lang.ObjectKreis
Ball
public class Ball
| Constructor Summary | |
|---|---|
Ball(double x,
double y,
double rad,
double richtung,
double geschwindigkeit)
Konstruktur mit Mittelpunkt, Radius, Richtungswinkel und Geschwindigkeit |
|
Ball(double x,
double y,
double rad,
double richtung,
double geschwindigkeit,
Bildschirm b)
Konstruktur mit Mittelpunkt, Radius, Richtungswinkel und Geschwindigkeit |
|
| Method Summary | |
|---|---|
void |
bewege()
Verschiebt den Ball um 1 Einheit in die aktuelle Richtung. |
double |
getDir()
Liefert den Richtungswinkel in Grad |
void |
SetzeGeschwindigkeit(double geschwindigkeit)
Setzt die Geschwindigkeit |
void |
SetzeRichtung(double richtung)
Setzt den Richtungswinkel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ball(double x,
double y,
double rad,
double richtung,
double geschwindigkeit)
x - x-Koordinate des Mittelpunktesy - y-Koordinate des Mittelpunktesrad - Radius des Ballesrichtung - Richtungswinkel in Gradgeschwindigkeit - Faktor für Tempo
public Ball(double x,
double y,
double rad,
double richtung,
double geschwindigkeit,
Bildschirm b)
x - x-Koordinate des Mittelpunktesy - y-Koordinate des Mittelpunktesrad - Radius des Ballesrichtung - Richtungswinkel in Gradgeschwindigkeit - Faktor für Tempob - Bildschirm (aus StiftUndCo)| Method Detail |
|---|
public void bewege()
public double getDir()
public void SetzeGeschwindigkeit(double geschwindigkeit)
geschwindigkeit - public void SetzeRichtung(double richtung)
richtung - Richtungswinkel in Grad