Exemple #1
0
 public ClossBomb(
     IAudioEngine so,
     SceneBattle p,
     int pX,
     int pY,
     Panel.COLOR u,
     int po,
     int s,
     Vector2 v,
     Point end,
     int t,
     ClossBomb.TYPE ty,
     bool cluster,
     ClossBomb.TYPE cty,
     bool poizon = false,
     bool short_ = false)
     : base(so, p, pX, pY, u, po, ChipBase.ELEMENT.normal)
 {
     this.poizon         = poizon;
     this.ctype          = cty;
     this.cluster        = cluster;
     this.hitting        = false;
     this.speed          = s;
     this.positionDirect = v;
     this.time           = t;
     this.position       = end;
     this.invincibility  = false;
     this.endposition    = new Vector2(end.X * 40 + 20, end.Y * 24 + 80);
     this.movex          = (v.X - this.endposition.X) / t;
     this.movey          = (v.Y - this.endposition.Y) / t;
     this.plusy          = 0.0f;
     this.speedy         = 6f;
     this.plusing        = this.speedy / (this.time / 2);
     this.rebirth        = this.union == Panel.COLOR.red;
     this.type           = ty;
     if (poizon)
     {
         this.invincibility    = true;
         this.badstatus[5]     = true;
         this.badstatustime[5] = 600;
         this.element          = ChipBase.ELEMENT.aqua;
         if (short_)
         {
             this.time /= 2;
             this.plusy = 0.0f;
         }
         this.soundName = SoundEffect.waveshort;
     }
     else
     {
         this.soundName = SoundEffect.bomb;
     }
 }
Exemple #2
0
        public Zarinear(IAudioEngine s, SceneBattle p, int pX, int pY, byte n, Panel.COLOR u, byte v)
            : base(s, p, pX, pY, n, u, v)
        {
            this.helpPosition.X = -8;
            for (int index = 0; index < this.dropchips.Length; ++index)
            {
                this.dropchips[index] = new ChipFolder(this.sound);
            }
            this.picturename = "zarinear";
            this.race        = EnemyBase.ENEMY.virus;
            this.Flying      = false;
            this.wide        = 48;
            this.height      = 40;
            this.printNumber = false;
            switch (this.version)
            {
            case 0:
                this.name  = ShanghaiEXE.Translate("Enemy.ZarinearName1");
                this.power = 150;
                this.hp    = 1000;
                this.speed = 3;
                break;

            case 1:
                this.name  = ShanghaiEXE.Translate("Enemy.ZarinearName2");
                this.power = 20;
                this.hp    = 70;
                this.speed = 7;
                break;

            case 2:
                this.name  = ShanghaiEXE.Translate("Enemy.ZarinearName3");
                this.power = 60;
                this.hp    = 140;
                this.speed = 5;
                break;

            case 3:
                this.name  = ShanghaiEXE.Translate("Enemy.ZarinearName4");
                this.power = 120;
                this.hp    = 230;
                this.speed = 4;
                break;

            case 4:
                this.name  = ShanghaiEXE.Translate("Enemy.ZarinearName5");
                this.power = 150;
                this.hp    = 260;
                this.speed = 3;
                break;

            default:
                this.name  = ShanghaiEXE.Translate("Enemy.ZarinearName6") + (version - 3).ToString();
                this.power = 150 + (version - 4) * 20;
                this.hp    = 260 + (version - 4) * 20;
                this.speed = 3;
                break;
            }
            this.roop      = this.number;
            this.hpmax     = this.hp;
            this.hpprint   = this.hp;
            this.printhp   = true;
            this.effecting = false;
            this.PositionDirectSet();
            this.element = ChipBase.ELEMENT.aqua;
            switch (this.version)
            {
            case 1:
                this.dropchips[0].chip   = new BubbleBlust1(this.sound);
                this.dropchips[0].codeNo = 2;
                this.dropchips[1].chip   = new BubbleBlust1(this.sound);
                this.dropchips[1].codeNo = 1;
                this.dropchips[2].chip   = new BubbleBlust1(this.sound);
                this.dropchips[2].codeNo = 0;
                this.dropchips[3].chip   = new BubbleBlust1(this.sound);
                this.dropchips[3].codeNo = 0;
                this.dropchips[4].chip   = new BubbleBlust1(this.sound);
                if (this.Random.Next(4) < 3)
                {
                    this.dropchips[4].codeNo = 0;
                }
                else
                {
                    this.dropchips[4].codeNo = 3;
                }
                this.havezenny = 300;
                this.type      = ClossBomb.TYPE.single;
                break;

            case 2:
                this.dropchips[0].chip   = new BubbleBlust2(this.sound);
                this.dropchips[0].codeNo = 3;
                this.dropchips[1].chip   = new BubbleBlust2(this.sound);
                this.dropchips[1].codeNo = 3;
                this.dropchips[2].chip   = new BubbleBlust2(this.sound);
                this.dropchips[2].codeNo = 0;
                this.dropchips[3].chip   = new BubbleBlust2(this.sound);
                this.dropchips[3].codeNo = 1;
                this.dropchips[4].chip   = new BubbleBlust2(this.sound);
                this.dropchips[4].codeNo = 2;
                this.havezenny           = 600;
                this.type = ClossBomb.TYPE.closs;
                break;

            case 3:
                this.dropchips[0].chip   = new BubbleBlust3(this.sound);
                this.dropchips[0].codeNo = 3;
                this.dropchips[1].chip   = new BubbleBlust3(this.sound);
                this.dropchips[1].codeNo = 3;
                this.dropchips[2].chip   = new BubbleBlust3(this.sound);
                this.dropchips[2].codeNo = 2;
                this.dropchips[3].chip   = new BubbleBlust3(this.sound);
                this.dropchips[3].codeNo = 1;
                this.dropchips[4].chip   = new BubbleBlust3(this.sound);
                this.dropchips[4].codeNo = 0;
                this.havezenny           = 800;
                this.type = ClossBomb.TYPE.big;
                break;

            default:
                this.dropchips[0].chip   = new BubbleBlust1(this.sound);
                this.dropchips[0].codeNo = 1;
                this.dropchips[1].chip   = new BubbleBlust1(this.sound);
                this.dropchips[1].codeNo = 2;
                this.dropchips[2].chip   = new BubbleBlust2(this.sound);
                this.dropchips[2].codeNo = 2;
                this.dropchips[3].chip   = new BubbleBlust3(this.sound);
                this.dropchips[3].codeNo = 0;
                this.dropchips[4].chip   = new BubbleBlust1(this.sound);
                this.dropchips[4].codeNo = 3;
                this.havezenny           = 800;
                this.type = ClossBomb.TYPE.big;
                if (this.version >= 8)
                {
                    this.dropchips[4].chip   = new BubbleBlustX(this.sound);
                    this.dropchips[4].codeNo = this.Random.Next(4);
                    this.havezenny           = 8000;
                    break;
                }
                break;
            }
            this.neutlal = true;
        }
Exemple #3
0
        public Gelpark(IAudioEngine s, SceneBattle p, int pX, int pY, byte n, Panel.COLOR u, byte v)
            : base(s, p, pX, pY, n, u, v)
        {
            this.helpPosition.X = -2;
            this.helpPosition.Y = -8;
            for (int index = 0; index < this.dropchips.Length; ++index)
            {
                this.dropchips[index] = new ChipFolder(this.sound);
            }
            this.picturename = "gelpark";
            this.race        = EnemyBase.ENEMY.virus;
            this.Flying      = false;
            this.wide        = 56;
            this.height      = 48;
            this.speed       = 7 - Math.Min(5, (int)this.version);
            this.name        = ShanghaiEXE.Translate("Enemy.GelparkName1");
            this.printNumber = true;
            switch (this.version)
            {
            case 0:
                this.name        = ShanghaiEXE.Translate("Enemy.GelparkName2");
                this.printNumber = false;
                this.power       = 180;
                this.hp          = 1500;
                this.speed       = 4;
                this.waitlimit   = 20;
                break;

            case 1:
                this.power     = 40;
                this.hp        = 60;
                this.waitlimit = 40;
                break;

            case 2:
                this.power     = 80;
                this.hp        = 100;
                this.waitlimit = 30;
                break;

            case 3:
                this.power     = 150;
                this.hp        = 150;
                this.waitlimit = 20;
                break;

            case 4:
                this.name        = ShanghaiEXE.Translate("Enemy.GelparkName3");
                this.printNumber = false;
                this.power       = 180;
                this.hp          = 230;
                this.waitlimit   = 10;
                break;

            default:
                this.printNumber = false;
                this.name        = ShanghaiEXE.Translate("Enemy.GelparkName4") + (version - 3).ToString();
                this.power       = 180 + (version - 4) * 40;
                this.hp          = 230 + (version - 4) * 40;
                this.waitlimit   = 10;
                break;
            }
            this.waitingtime = this.waitlimit;
            this.guard       = CharacterBase.GUARD.guard;
            this.roop        = this.number;
            this.hpmax       = this.hp;
            this.hpprint     = this.hp;
            this.printhp     = true;
            this.effecting   = false;
            this.PositionDirectSet();
            this.element = ChipBase.ELEMENT.eleki;
            switch (this.version)
            {
            case 1:
                this.dropchips[0].chip   = new Hakkero1(this.sound);
                this.dropchips[0].codeNo = 0;
                this.dropchips[1].chip   = new Hakkero1(this.sound);
                this.dropchips[1].codeNo = 1;
                this.dropchips[2].chip   = new Hakkero1(this.sound);
                this.dropchips[2].codeNo = 2;
                this.dropchips[3].chip   = new Hakkero1(this.sound);
                this.dropchips[3].codeNo = 2;
                this.dropchips[4].chip   = new Hakkero1(this.sound);
                if (this.Random.Next(4) < 3)
                {
                    this.dropchips[4].codeNo = 2;
                }
                else
                {
                    this.dropchips[4].codeNo = 3;
                }
                this.havezenny = 300;
                this.type      = ClossBomb.TYPE.single;
                break;

            case 2:
                this.dropchips[0].chip   = new Hakkero2(this.sound);
                this.dropchips[0].codeNo = 3;
                this.dropchips[1].chip   = new Hakkero2(this.sound);
                this.dropchips[1].codeNo = 2;
                this.dropchips[2].chip   = new Hakkero2(this.sound);
                this.dropchips[2].codeNo = 0;
                this.dropchips[3].chip   = new Hakkero2(this.sound);
                this.dropchips[3].codeNo = 1;
                this.dropchips[4].chip   = new Hakkero2(this.sound);
                this.dropchips[4].codeNo = 1;
                this.havezenny           = 600;
                this.type = ClossBomb.TYPE.closs;
                break;

            case 3:
                this.dropchips[0].chip   = new Hakkero3(this.sound);
                this.dropchips[0].codeNo = 2;
                this.dropchips[1].chip   = new Hakkero3(this.sound);
                this.dropchips[1].codeNo = 2;
                this.dropchips[2].chip   = new Hakkero3(this.sound);
                this.dropchips[2].codeNo = 1;
                this.dropchips[3].chip   = new Hakkero3(this.sound);
                this.dropchips[3].codeNo = 3;
                this.dropchips[4].chip   = new Hakkero3(this.sound);
                this.dropchips[4].codeNo = 0;
                this.havezenny           = 800;
                this.type = ClossBomb.TYPE.big;
                break;

            default:
                this.dropchips[0].chip   = new Hakkero1(this.sound);
                this.dropchips[0].codeNo = 0;
                this.dropchips[1].chip   = new Hakkero1(this.sound);
                this.dropchips[1].codeNo = 1;
                this.dropchips[2].chip   = new Hakkero2(this.sound);
                this.dropchips[2].codeNo = 2;
                this.dropchips[3].chip   = new Hakkero3(this.sound);
                this.dropchips[3].codeNo = 2;
                this.dropchips[4].chip   = new Hakkero1(this.sound);
                this.dropchips[4].codeNo = 3;
                this.havezenny           = 1600;
                this.type = ClossBomb.TYPE.big;
                break;
            }
            this.neutlal = true;
        }