public BattleUnitsStacksMoveOrder(BattleArmy Army) { BattleUnitsStack[] units = Army.getcArmy(); Array.Sort(units); cOrder = new List <BattleUnitsStack>(units); notInWaitOrder = units.Length; }
public Battle(BattleArmy.BattleArmy army1, BattleArmy.BattleArmy army2, Map content) { BS = BattleState.START; Army1 = army1; Army2 = army2; map = content; }
public Battle(Army Army1, Army Army2) { BS = BattleState.START; this.Army1 = new BattleArmy.BattleArmy(true, Army1); this.Army2 = new BattleArmy.BattleArmy(false, Army2); Cell[,] q = new Cell[8, 14]; foreach (BattleUnitsStack battleUnitsStack in this.Army1) { q[battleUnitsStack.getcPos().getX, battleUnitsStack.getcPos().getY] = new Cell(CellContent.UNIT1); } foreach (BattleUnitsStack battleUnitsStack in this.Army2) { q[battleUnitsStack.getcPos().getX, battleUnitsStack.getcPos().getY] = new Cell(CellContent.UNIT2); } map = new Map(8, 14, q); }
public Battle(Army Army1, Army Army2, Cell[,] content) { // Debug.Log(Army1.ToString()); // moves = new StreamReader("Assets/Moves.txt"); BS = BattleState.START; this.Army1 = new BattleArmy.BattleArmy(true, Army1); this.Army2 = new BattleArmy.BattleArmy(false, Army2); Cell[,] q = content; foreach (BattleUnitsStack battleUnitsStack in this.Army1) { q[battleUnitsStack.getcPos().getX, battleUnitsStack.getcPos().getY] = new Cell(CellContent.UNIT1); } foreach (BattleUnitsStack battleUnitsStack in this.Army2) { q[battleUnitsStack.getcPos().getX, battleUnitsStack.getcPos().getY] = new Cell(CellContent.UNIT2); } map = new Map(8, 14, q); }