Projectile
This commit is contained in:
@@ -66,9 +66,20 @@ public abstract class Projectile extends GameObject {
|
|||||||
|
|
||||||
public Coordinate getJumpStep(double elapsedTime) {
|
public Coordinate getJumpStep(double elapsedTime) {
|
||||||
// TODO zie naar worm hoe dit moet, implementatie moet wel anders!
|
// TODO zie naar worm hoe dit moet, implementatie moet wel anders!
|
||||||
|
if (Double.isNaN(elapsedTime) || elapsedTime > this.getJumpTime(jumpTimeStep) || elapsedTime < 0)
|
||||||
|
throw new IllegalArgumentException();
|
||||||
|
|
||||||
|
double velocity = this.jumpVelocity();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double jumpVelocity() {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
public double getJumpTime(double jumpTimeStep) {
|
public double getJumpTime(double jumpTimeStep) {
|
||||||
|
|
||||||
// TODO zie naar worm hoe dit moet, implementatie moet wel anders!
|
// TODO zie naar worm hoe dit moet, implementatie moet wel anders!
|
||||||
|
Reference in New Issue
Block a user