コード例 #1
0
ファイル: LaserTower.cs プロジェクト: SimphonX/TowerDefence
        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);
        }
コード例 #2
0
        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);
        }