Example #1
0
 /*************************
 *      Constructor
 *************************/
 public ArmyLayout(BattleLayout battleLayout, Army army)
 {
     armyName = army.armyName;
     for (int i = 0; i < army.nbUnit; i++)
     {
         AddUnitLayout(army.unitList[i]);
     }
     //for (int i = 0; i < gameBattle.nbArmy; i++)
     //{
     //    AddArmyLayout(gameBattle.armyList[i]);
     //}
     InitializeArmyFlowLayout(battleLayout);
 }
Example #2
0
        /*************************
        *      Method
        *************************/
        public void InitializeArmyFlowLayout(BattleLayout battleLayout)
        {
            armyFlowLayout.Anchor = ((AnchorStyles)((((AnchorStyles.Top | AnchorStyles.Bottom)
                                                      | AnchorStyles.Left)
                                                     | AnchorStyles.Right)));
            armyFlowLayout.BackColor  = System.Drawing.Color.White;
            armyFlowLayout.AutoScroll = true;
            armyFlowLayout.Location   = new System.Drawing.Point(4, 4);
            armyFlowLayout.Name       = "armyFlowLayout";
            armyFlowLayout.Size       = new System.Drawing.Size(500, 553);
            armyFlowLayout.TabIndex   = 1;

            battleLayout.battleLayout.Controls.Add(armyFlowLayout);
        }