First try integrating a Arc. Status: Still alot to do

This commit is contained in:
Awlex
2016-11-19 02:33:15 +01:00
parent 5c5f6bd621
commit 6f5f17da74
9 changed files with 197 additions and 62 deletions

View File

@@ -31,6 +31,8 @@ public abstract class Mover {
protected double endX;
protected double endY;
private GameObject end;
public Mover(GameObject start, GameObject end, int dir) {
this.dir = dir;
@@ -40,6 +42,7 @@ public abstract class Mover {
this.endY = end.start.y;
this.startT = start.getEndTime();
this.totalT = end.getTime() - startT;
this.end = end;
}
protected final double getT(int time) {
@@ -48,5 +51,8 @@ public abstract class Mover {
public abstract double[] getPointAt(int time);
public abstract String getName();
public GameObject getEnd() {
return end;
}
}