コード例 #1
0
        public static void TestChargeArmy()
        {
            GraphicsEngine.ClearCanvas();

            //LeftArmy.Charge(RightArmy);
            //RightArmy.Charge(LeftArmy);
            GraphicsEngine.TestDrawArmy(LeftArmy, LeftArmyPen);
            GraphicsEngine.TestDrawArmy(RightArmy, RightArmyPen);
        }
コード例 #2
0
        public static void TestInitArmy(PictureBox pictureBox)
        {
            GraphicsEngine.Init(pictureBox);

            LeftArmy.PopulateArmy(100);
            RightArmy.PopulateArmy(200);
            LeftArmy.CreateTestFormation(50, 100, 50);
            RightArmy.CreateTestFormation(300, 350, 50);
            LeftArmyPen  = new Pen(Color.Red, 2);
            RightArmyPen = new Pen(Color.Blue, 2);

            GraphicsEngine.TestDrawArmy(LeftArmy, LeftArmyPen);
            GraphicsEngine.TestDrawArmy(RightArmy, RightArmyPen);
        }