import { GdProjectileEffect } from "../data/GdProjectileEffect";
import { Vector2 } from "../util/Vector2";

export class SimProjectile {
	index: number;
	prevPosition: Vector2;
	position: Vector2;
	targetEnemyIdx: number;
	spawnStep: number;
	size: number;
	dead: boolean;
	projectileEffect: GdProjectileEffect;

	constructor(spawnStep: number, index: number, position: Vector2, targetEnemyIdx: number, size: number, projectileEffect: GdProjectileEffect) {
		this.index = index;
		this.position = position.clone();
		this.prevPosition = position.clone();
		this.targetEnemyIdx = targetEnemyIdx;
		this.spawnStep = spawnStep;
		this.size = size;
		this.projectileEffect = projectileEffect;
		this.dead = false;
	}
}