migrate from perforce
This commit is contained in:
46
dist/Simulation/Models/SimProjectile.js
vendored
Normal file
46
dist/Simulation/Models/SimProjectile.js
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
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
|
||||
Reference in New Issue
Block a user