Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <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);
     }
 }
Exemplo n.º 3
0
 public void ReceiveOrder(UnitOrderParams aParams)
 {
 }