When trying to run the following, I get the error: "The function anziehenX does not exist" and its the same for anziehenY.
Since, I think, I make sure, the Object got that function, I guess it may be some safety mechanism of the compiler? If it is, is there a way to override it?
If not, I would be thankful for any suggestions =)
Feld f = new Feld; class Feld = f.getClass(); float speedy=0;
float speedx=0;
if (mappe.isType(0,Feld)) { speedx=mappe.getObjekt(i).anziehenX(speedx); speedy=mappe.getObjekt(i).anziehenY(speedy); }