Example #1
0
 private void DestroySmoke(Biplane biplane)
 {
     foreach (Smoke smoke in smokeList)
     {
         if (smoke.biplane == biplane)
         {
             smoke.IsFinished = true;
         }
     }
 }
Example #2
0
 private void DestroyFire(Biplane biplane)
 {
     foreach (Fire fire in fireList)
     {
         if (fire.biplane == biplane)
         {
             fire.IsFinished = true;
         }
     }
 }
Example #3
0
 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);
 }
Example #4
0
        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);
        }
Example #5
0
        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);
        }