public abstract class Objekt
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
dx
Die Geschwindigkeit in x-Richtung.
|
float |
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.
|
float |
x
Die x-Koordinate.
|
float |
y
Die y-Koordinate.
|
Modifier and Type | Method and Description |
---|---|
float |
abstand()
Berechnet den Abstand zum verbündeten Turm.
|
float |
abstand(float x,
float y)
Berechnet den Abstand zum Ort (x, y).
|
float |
abstand(Objekt o)
Berechnet den Abstand zu einem anderen Objekt.
|
public final float x
public final float y
public final float dx
public final float dy
public final int typ
public final int element
public final int sorte
public float abstand()
public float abstand(float x, float y)
public float abstand(Objekt o)