public void executeCommand(string campaignid, CommandInfo command) { CampaignController controller = GcmlDataManager.Instance.getController(campaignid); ICommand cmd = controller.getCommand(command.commandId); //cmd.Execute(); cmd.Register(); }
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; }
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; }