private void DestroySmoke(Biplane biplane) { foreach (Smoke smoke in smokeList) { if (smoke.biplane == biplane) { smoke.IsFinished = true; } } }
private void DestroyFire(Biplane biplane) { foreach (Fire fire in fireList) { if (fire.biplane == biplane) { fire.IsFinished = true; } } }
public Fire(float X, float Y, string texturePath, ContentManager contentManager, float Scale, Biplane biplane) : base(X, Y, texturePath, contentManager, Scale) { Texture = TextureList[0]; this.biplane = biplane; OriginXY = new Vector2(OriginalWidth / 2, OriginalHeight / 2); }
private void CreateFire(Biplane biplane) { Fire fire = new Fire(biplane.Center.X, biplane.Center.Y, $"{fireAnimationPath}/fire ({1})", Content, FIRE_SCALING, biplane); fireList.Add(fire); }
private void CreateSmoke(Biplane biplane) { Smoke smoke = new Smoke(biplane.Center.X, biplane.Center.Y, $"{smokeAnimationPath}/smoke ({1})", Content, SMOKE_SCALING, biplane); smokeList.Add(smoke); }