/// <summary>
 /// Sends an order to a unit who has the right name && type
 /// </summary>
 /// <param name="aName">The name of the unit to issue an order to.</param>
 /// <param name="aUnitType">The type constraint of the unit</param>
 /// <param name="aOrder">The order to give to the unit</param>
 public static void IssueOrder(string aName, UnitType aUnitType, UnitOrderParams aOrder)
 {
     Unit unit = GetUnit(aName,aUnitType);
     if (unit != null && aOrder != null)
     {
         unit.ReceiveOrder(aOrder);
     }
 }
 /// <summary>
 /// Sends an order to a unit who has the right ID
 /// </summary>
 /// <param name="aID">The ID of the unit</param>
 /// <param name="aOrder">The order to issue the unit</param>
 public static void IssueOrder(int aID, UnitOrderParams aOrder)
 {
     Unit unit = GetUnit(aID);
     if (unit != null && aOrder != null)
     {
         unit.ReceiveOrder(aOrder);
     }
 }
示例#3
0
 public void ReceiveOrder(UnitOrderParams aParams)
 {
 }