Example #1
0
 public static void UnitChargeTest()
 {
     if (a != null)
     {
         if (a.Health <= 0)
         {
             a = null;
         }
         else
         {
             //a.Charge();
         }
     }
     if (b != null)
     {
         if (b.Health <= 0)
         {
             b = null;
         }
         else
         {
             // b.Charge();
         }
     }
     GraphicsEngine.DrawUnits();
 }
Example #2
0
        public static void UnitTestInit(PictureBox pictureBox)
        {
            GraphicsEngine.Init(pictureBox);
            b.Range  = 2000;
            a.Target = b;
            b.Target = a;

            a.Location = new Point(0, 0);
            b.Location = new Point(200, 300);

            GraphicsEngine.DrawUnits();
        }