Files
HexTowerDefense/dist/Simulation/Models/SimProjectile.js
2026-04-19 01:16:27 +02:00

46 lines
1019 B
JavaScript

export class SimProjectile {
_gdEffect;
_position;
_targetEnemyIdx = -1;
_spawnStep = -1;
_speed = -1;
_size = -1;
_dead = false;
constructor(level, effect, position, targetEnemyIdx, size) {
this._gdEffect = effect;
this._speed = effect.speed;
this._position = position;
this._size = size;
this._targetEnemyIdx = targetEnemyIdx;
this._spawnStep = level.currentStep;
}
;
get gdEffect() {
return this._gdEffect;
}
get position() {
return this._position;
}
set position(value) {
this._position = value;
}
get targetEnemyIdx() {
return this._targetEnemyIdx;
}
get spawnStep() {
return this._spawnStep;
}
get speed() {
return this._speed;
}
get size() {
return this._size;
}
get dead() {
return this._dead;
}
set dead(value) {
this._dead = value;
}
}
//# sourceMappingURL=SimProjectile.js.map