示例#1
0
        public override void Updata()
        {
            this.FlameControl(this.interval);
            if (!this.moveflame)
            {
                return;
            }
            List <EffectBase> effects = this.parent.effects;

            if (this.manymake >= this.positions.Count)
            {
                return;
            }

            IAudioEngine sound    = this.sound;
            SceneBattle  parent   = this.parent;
            Point        position = this.positions[this.manymake];
            int          x        = position.X;

            position = this.positions[this.manymake];
            int    y      = position.Y;
            int    type   = (int)this.type;
            Bomber bomber = new Bomber(sound, parent, x, y, (Bomber.BOMBERTYPE)type, 2);

            effects.Add(bomber);
            ++this.manymake;
            if (this.manymake >= this.many)
            {
                this.flag = false;
            }
        }
示例#2
0
 public FireBall(IAudioEngine s, Vector2 pd, Point posi, bool mute = false)
     : base(s, null, posi.X, posi.Y)
 {
     this.positionDirect   = pd;
     this.animationpoint.X = 0;
     this.f      = 30;
     this.bomber = new Bomber(s, null, Bomber.BOMBERTYPE.flashbomber, new Vector2(pd.X + 24f, pd.Y - 24f), 3, new Point(0, 0));
     this.mute   = mute;
 }