pl/mbogusz3/invaders/model/Projectile.java
/**
	 * Move the projectile.
	 * @param time time for which the projectile has moved.
	 */
Move the projectile.
@param time time for which the projectile has moved.
Move the projectile . @param time time for which the projectile has moved .
public void move(double time) {
		if(this.invalid) {
			return;
		}
		this.positionY += this.speed * time * this.orientation;
		if(this.positionY > 1.0) {
			this.positionY = 1.0;
			this.invalid = true;
		} else if(this.positionY < 0.0) {
			this.positionY = 0.0;
			this.invalid = true;
		}
	}
public void move ( double time ) { if ( this . invalid ) { return ; } this . positionY += this . speed * time * this . orientation ; if ( this . positionY > 1.0 ) { this . positionY = 1.0 ; this . invalid = true ; } else if ( this . positionY < 0.0 ) { this . positionY = 0.0 ; this . invalid = true ; } }
Move the projectile.
Move the projectile .