public static void TestChargeGeneral() { GraphicsEngine.ClearCanvas(); //leftGeneral.Charge(rightGeneral); //rightGeneral.Charge(leftGeneral); GraphicsEngine.TestDrawGenerals(leftGeneral, leftGeneralPen); GraphicsEngine.TestDrawGenerals(rightGeneral, rightGeneralPen); }
public static void TestInitGeneral(PictureBox pictureBox) { GraphicsEngine.Init(pictureBox); leftGeneral.PopulateArmies(2, new int[] { 100, 50 }); rightGeneral.PopulateArmies(3, new int[] { 100, 100, 150 }); leftGeneralPen = new Pen(Color.Red, 2); rightGeneralPen = new Pen(Color.Blue, 2); leftGeneral.MakeTestFormation(50, 100); rightGeneral.MakeTestFormation(300, 500); GraphicsEngine.TestDrawGenerals(leftGeneral, leftGeneralPen); GraphicsEngine.TestDrawGenerals(rightGeneral, rightGeneralPen); }