public void DestroyFireball(Fireball fb) { projectileList.Remove(fb); }
public void Fireball() { if (this.HasFire()) { Fireball fb = new Fireball(xPosition, yPosition, camera); // fb.Draw(); //projectileList.Add(fb); sound.Fireball(); } }
public void CreateFireball(Fireball fb) { projectileList.Add(fb); }
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(); } }