public abstract class Interaktionsobjekt
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
dx
Die Geschwindigkeit in x-Richtung.
|
double |
dy
Die Geschwindigkeit in y-Richtung.
|
int |
element
Das Element des Objekts (= typ / 10).
|
int |
sorte
Die Sorte des Objekts (= typ % 10).
|
int |
typ
Der Typ des Objekts.
|
double |
x
Die x-Koordinate.
|
double |
y
Die y-Koordinate.
|
Modifier and Type | Method and Description |
---|---|
double |
abstand()
Berechnet den Abstand zum verbündeten Turm.
|
double |
abstand(double x,
double y)
Berechnet den Abstand zum Ort (x, y).
|
double |
abstand(Interaktionsobjekt o)
Berechnet den Abstand zu einem anderen Objekt.
|
public final double dx
public final double dy
public final int element
public final int sorte
public final int typ
public final double x
public final double y
public double abstand()
public double abstand(double x, double y)
public double abstand(Interaktionsobjekt o)