public override AbstractProjectileContainer prepareShot(int tx, int ty, int dmg) { LaserBolt baseProjectile = new LaserBolt(this.x, this.y, tx, ty, "base", dmg); FireDecorator fireWrapper = new FireDecorator(this.x, this.y); fireWrapper.setProjectile(baseProjectile); return(fireWrapper); }
public override AbstractProjectileContainer prepareShot(int tx, int ty, int dmg) { TeslaZap baseProjectile = new TeslaZap(this.x, this.y, tx, ty, "base", dmg); FireDecorator fireWrapper = new FireDecorator(this.x, this.y); AreaDecorator areaWrapper = new AreaDecorator(this.x, this.y); fireWrapper.setProjectile(baseProjectile); areaWrapper.setProjectile(fireWrapper); return(baseProjectile); }