示例#1
0
 public void DestroyFireball(Fireball fb)
 {
     projectileList.Remove(fb);
 }
示例#2
0
        public void Fireball()
        {
            if (this.HasFire())
            {
                Fireball fb = new Fireball(xPosition, yPosition, camera);
                // fb.Draw();
                //projectileList.Add(fb);

                sound.Fireball();
            }
        }
示例#3
0
 public void CreateFireball(Fireball fb)
 {
     projectileList.Add(fb);
 }
示例#4
0
 public void ShootFireball()
 {
     if (CurrentState != MarioStates.Dead && marioHasFire)
     {
         CurrentState = MarioStates.shootingFireball;
         CurrentSprite = new Sprites.MarioFireBallingSprite();
         Fireball fireball = new Fireball(myMario.xPosition, myMario.yPosition, camera);
         fireball.shoot();
     }
 }