Esempio n. 1
0
 public Leaves()
 {
     Health         = 5;
     MinDamageToHit = 1;
     Texture        = Battle.leaves;
     Body           = new System.Windows.Shapes.Rectangle
     {
         Width  = standartSize,
         Height = standartSize,
         Fill   = HelpfulFunctions.BitmapToBrush(Texture)
     };
     Panel.SetZIndex(Body, 10);
 }
Esempio n. 2
0
 public Bomb()
 {
     Health  = 1;
     Texture = Battle.bomb;
     Body    = new System.Windows.Shapes.Rectangle
     {
         Width  = standartSize,
         Height = standartSize,
         Fill   = HelpfulFunctions.BitmapToBrush(Texture)
     };
     Panel.SetZIndex(Body, 50);
     timer = new DispatcherTimer
     {
         Interval = new TimeSpan(0, 0, 0, 0, 10)
     };
     Iterator = 0;
 }
Esempio n. 3
0
 public Gabaijito()
 {
     Speed  = 2;
     Health = 20;
     Buffs  = new ushort[maxNumberOfBuffs];
     for (int i = 0; i < maxNumberOfBuffs; ++i)
     {
         Buffs[i] = 0;
     }
     Texture = Battle.mob;
     Body    = new System.Windows.Shapes.Rectangle
     {
         Width  = standartSize,
         Height = standartSize,
         Fill   = HelpfulFunctions.BitmapToBrush(Texture)
     };
     Panel.SetZIndex(Body, 40);
 }