public ParaizeThunder( IAudioEngine so, SceneBattle p, int pX, int pY, Panel.COLOR u, int po, ParaizeThunder.MOTION m) : base(so, p, pX, pY, u, po, ChipBase.ELEMENT.eleki) { if (this.parent.panel[this.position.X, this.position.Y].state == Panel.PANEL._break) { return; } this.canCounter = false; this.element = ChipBase.ELEMENT.normal; this.speed = 2; this.knock = false; this.invincibility = false; this.animationpoint.X = 0; this.hitrange = new Point(0, 0); this.hitting = false; this.rebirth = this.union == Panel.COLOR.blue; this.positionre = this.position; this.positionDirect = new Vector2(this.position.X * 40 + 20, this.position.Y * 24 + 82); this.sound.PlaySE(SoundEffect.thunder); this.motion = m; this.frame = 0; this.badstatus[3] = true; this.badstatustime[3] = 60; }
public override void Updata() { if (this.over) { return; } if (this.moveflame) { switch (this.motion) { case ParaizeThunder.MOTION.init: this.animationpoint.X = this.frame; if (this.frame >= 3) { this.hitting = true; this.motion = ParaizeThunder.MOTION.set; break; } break; case ParaizeThunder.MOTION.set: this.PanelBright(); this.animationpoint.X = this.frame; if (this.frame >= 3) { this.hitting = false; this.frame = 0; this.motion = ParaizeThunder.MOTION.end; break; } break; case ParaizeThunder.MOTION.end: this.flag = false; break; } } this.FlameControl(); }