import { SimProjectile } from "../sim/SimProjectile";
import { Vector2 } from "../util/Vector2";

export class VisProjectile {
    positions: Vector2[];
    private simProjectile: SimProjectile;

    constructor(simProjectile: SimProjectile) {
        this.simProjectile = simProjectile;
        this.positions = [simProjectile.position, simProjectile.position];
    }

    public advanceStep() {
        this.positions = [this.positions[1], this.simProjectile.position];
    }
}
