示例#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
文件: PlaceUnit.cs 项目: hche/GCML
 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;
 }