예제 #1
0
 public Command(StarCraftCommand pCommandID, int pUnitID, int pArg0, int pArg1, int pArg2)
 {
     this.CommandID = pCommandID;
     this.UnitID = pUnitID;
     this.Arg0 = pArg0;
     this.Arg1 = pArg1;
     this.Arg2 = pArg2;
 }
예제 #2
0
 /// <summary> Adds a command to the command queue.
 /// 
 /// </summary>
 /// <param name="command">- the command to execture, see the Orders enumeration
 /// </param>
 /// <param name="unitID">- the unit to control
 /// </param>
 /// <param name="arg0">- the first command argument
 /// </param>
 /// <param name="arg1">- the second command argument
 /// </param>
 /// <param name="arg2">- the third command argument
 /// </param>
 private static void doCommand(this ProxyBot bot, StarCraftCommand command, int unitID, int arg0, int arg1, int arg2)
 {
     lock (bot.commandQueue.SyncRoot)
     {
         bot.commandQueue.Add(new Command(command, unitID, arg0, arg1, arg2));
     }
 }