Esempio n. 1
0
 public AnimatedImage GetBitmap(string s)
 {
     if (_Bitmaps.ContainsKey(s))
     {
         return(_Bitmaps[s]);
     }
     else
     {
         AnimatedImage anim = new AnimatedImage();
         anim._AnimatedBitmap = _DataBase.Get(s);
         if (anim._AnimatedBitmap == null)
         {
             throw new Exception(s + " animation not found");
         }
         anim.Load();
         _Bitmaps[s] = anim;
         return(anim);
     }
 }
Esempio n. 2
0
 public void SetAnimation(Anims _Anims )
 {
     _PlayerCurrentAnimation = GetBitmap(PlModel + _Anims);
     _GunCurrentAnimation = GetBitmap(GunModel + _Anims);
 }
Esempio n. 3
0
 public AnimatedImage GetBitmap(string s)
 {
     if (_Bitmaps.ContainsKey(s))
         return _Bitmaps[s];
     else
     {
         AnimatedImage anim = new AnimatedImage();
         anim._AnimatedBitmap = _DataBase.Get(s);
         if (anim._AnimatedBitmap == null)
         {
             throw new Exception(s + " animation not found");
         }
         anim.Load();
         _Bitmaps[s] = anim;
         return anim;
     }
 }