Пример #1
0
        public void executeCommand(string campaignid, CommandInfo command)
        {
            CampaignController controller = GcmlDataManager.Instance.getController(campaignid);
            ICommand cmd = controller.getCommand(command.commandId);

            //cmd.Execute();
            cmd.Register();
        }
Пример #2
0
 public CommandInfo getInfo()
 {
     CommandInfo nfo = new CommandInfo();
     nfo.commandId = this.CommandId;
     nfo.actingUnitId = "";
     nfo.commandType = this.GetType().ToString();
     nfo.strInfo = "Plazieren auf Sektor " + TargetSektor.strUniqueID;
     nfo.targetId = TargetSektor.strUniqueID;
     return nfo;
 }
Пример #3
0
Файл: Move.cs Проект: hche/GCML
 public CommandInfo getInfo()
 {
     CommandInfo nfo = new CommandInfo();
     nfo.commandId = this.CommandId;
     nfo.actingUnitId = this.Unit.Id;
     nfo.commandType = this.GetType().ToString();
     nfo.strInfo = this.strInfo;
     nfo.isActive = (this.Unit.aktCommand == this) ? true : false;
     return nfo;
 }