public NapalmBomb( IAudioEngine so, SceneBattle p, int pX, int pY, Panel.COLOR u, int po, int s, Vector2 v, Point end, int t, NapalmBomb.TYPE ty, int heattime) : base(so, p, pX, pY, u, po, ChipBase.ELEMENT.normal) { this.heattime = heattime; this.breaking = true; 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; }
public Bronzer(IAudioEngine s, SceneBattle p, int pX, int pY, byte n, Panel.COLOR u, byte v) : base(s, p, pX, pY, n, u, v) { for (int index = 0; index < this.dropchips.Length; ++index) { this.dropchips[index] = new ChipFolder(this.sound); } this.picturename = "bronzer"; this.race = EnemyBase.ENEMY.virus; this.guard = CharacterBase.GUARD.guard; this.Flying = false; this.wide = 40; this.height = 32; this.printNumber = false; this.speed = 4; switch (this.version) { case 0: this.manyshoot = 8; this.name = ShanghaiEXE.Translate("Enemy.BronzerName1"); this.power = 150; this.hp = 800; this.speed = 1; break; case 1: this.manyshoot = 1; this.name = ShanghaiEXE.Translate("Enemy.BronzerName2"); this.power = 20; this.hp = 80; break; case 2: this.manyshoot = 2; this.name = ShanghaiEXE.Translate("Enemy.BronzerName3"); this.power = 60; this.hp = 100; break; case 3: this.manyshoot = 3; this.name = ShanghaiEXE.Translate("Enemy.BronzerName4"); this.power = 120; this.hp = 150; break; case 4: this.manyshoot = 4; this.name = ShanghaiEXE.Translate("Enemy.BronzerName5"); this.power = 120; this.hp = 180; break; default: this.manyshoot = 4; this.power = 120 + (version - 4) * 20; this.hp = 180 + (version - 4) * 40; this.name = ShanghaiEXE.Translate("Enemy.BronzerName6") + (version - 3).ToString(); break; } this.type = NapalmBomb.TYPE.single; this.roop = this.number; this.hpmax = this.hp; this.hpprint = this.hp; this.printhp = true; this.effecting = false; this.PositionDirectSet(); this.element = ChipBase.ELEMENT.normal; switch (this.version) { case 0: this.dropchips[0].chip = new BronzeNapalm(this.sound); this.dropchips[0].codeNo = 0; this.dropchips[1].chip = new BronzeNapalm(this.sound); this.dropchips[1].codeNo = 1; this.dropchips[2].chip = new BronzeNapalm(this.sound); this.dropchips[2].codeNo = 2; this.dropchips[3].chip = new BronzeNapalm(this.sound); this.dropchips[3].codeNo = 2; this.dropchips[4].chip = new BronzeNapalm(this.sound); if (this.Random.Next(4) < 3) { this.dropchips[4].codeNo = 0; } else { this.dropchips[4].codeNo = 3; } this.havezenny = 300; break; case 1: this.dropchips[0].chip = new BronzeNapalm(this.sound); this.dropchips[0].codeNo = 0; this.dropchips[1].chip = new BronzeNapalm(this.sound); this.dropchips[1].codeNo = 1; this.dropchips[2].chip = new BronzeNapalm(this.sound); this.dropchips[2].codeNo = 2; this.dropchips[3].chip = new BronzeNapalm(this.sound); this.dropchips[3].codeNo = 2; this.dropchips[4].chip = new BronzeNapalm(this.sound); if (this.Random.Next(4) < 3) { this.dropchips[4].codeNo = 2; } else { this.dropchips[4].codeNo = 3; } this.havezenny = 300; break; case 2: this.dropchips[0].chip = new MetalNapalm(this.sound); this.dropchips[0].codeNo = 1; this.dropchips[1].chip = new MetalNapalm(this.sound); this.dropchips[1].codeNo = 0; this.dropchips[2].chip = new MetalNapalm(this.sound); this.dropchips[2].codeNo = 2; this.dropchips[3].chip = new MetalNapalm(this.sound); this.dropchips[3].codeNo = 2; this.dropchips[4].chip = new MetalNapalm(this.sound); this.dropchips[4].codeNo = 3; this.havezenny = 600; break; case 3: this.dropchips[0].chip = new MithrillNapalm(this.sound); this.dropchips[0].codeNo = 0; this.dropchips[1].chip = new MithrillNapalm(this.sound); this.dropchips[1].codeNo = 0; this.dropchips[2].chip = new MithrillNapalm(this.sound); this.dropchips[2].codeNo = 3; this.dropchips[3].chip = new MithrillNapalm(this.sound); this.dropchips[3].codeNo = 2; this.dropchips[4].chip = new MithrillNapalm(this.sound); this.dropchips[4].codeNo = 1; this.havezenny = 800; break; case 8: this.dropchips[0].chip = new FuhathuNapalm(this.sound); this.dropchips[0].codeNo = 3; this.dropchips[1].chip = new FuhathuNapalm(this.sound); this.dropchips[1].codeNo = 3; this.dropchips[2].chip = new FuhathuNapalm(this.sound); this.dropchips[2].codeNo = 2; this.dropchips[3].chip = new FuhathuNapalm(this.sound); this.dropchips[3].codeNo = 0; this.dropchips[4].chip = new MetalNapalmX(this.sound); this.dropchips[4].codeNo = this.Random.Next(4); this.havezenny = 8000; break; default: this.dropchips[0].chip = new FuhathuNapalm(this.sound); this.dropchips[0].codeNo = 3; this.dropchips[1].chip = new FuhathuNapalm(this.sound); this.dropchips[1].codeNo = 3; this.dropchips[2].chip = new FuhathuNapalm(this.sound); this.dropchips[2].codeNo = 2; this.dropchips[3].chip = new FuhathuNapalm(this.sound); this.dropchips[3].codeNo = 0; this.dropchips[4].chip = new FuhathuNapalm(this.sound); this.dropchips[4].codeNo = 1; this.havezenny = 800; break; } this.neutlal = true; }