Beispiel #1
0
 /// <summary>
 /// Creates a new unit of a given type at the given location using unit factory
 /// </summary>
 /// <param name="row"> the row index of the unit's location </param>
 /// <param name="col"> the column index of the unit's location </param>
 /// <param name="UnitType"> the type of unit </param>
 public void CreateUnit(int row, int col, Enums.UnitType UnitType)
 {
     currentState.UnitGrid[row, col] = UnitFactory.CreateUnit(UnitType, row, col);
 }