当前位置: 首页>>代码示例>>C#>>正文


C# IOrderTargeter类代码示例

本文整理汇总了C#中IOrderTargeter的典型用法代码示例。如果您正苦于以下问题:C# IOrderTargeter类的具体用法?C# IOrderTargeter怎么用?C# IOrderTargeter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IOrderTargeter类属于命名空间,在下文中一共展示了IOrderTargeter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: IssueOrder

        public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued )
        {
            if( order.OrderID == "SetRallyPoint" )
                return new Order(order.OrderID, self, false) { TargetLocation = target.CenterPosition.ToCPos() };

            return null;
        }
开发者ID:Generalcamo,项目名称:OpenRA,代码行数:7,代码来源:RallyPoint.cs

示例2: IssueOrder

        public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
        {
            if (order.OrderID == "RepairBridge")
                return new Order(order.OrderID, self, queued) { TargetActor = target.Actor };

            return null;
        }
开发者ID:CH4Code,项目名称:OpenRA,代码行数:7,代码来源:RepairsBridges.cs

示例3: IssueOrder

        public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued )
        {
            if( order.OrderID == "Unload" )
                return new Order( order.OrderID, self, queued );

            return null;
        }
开发者ID:jeff-1amstudios,项目名称:OpenRA,代码行数:7,代码来源:Cargo.cs

示例4: IssueOrder

		public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
		{
			if (order.OrderID == "SetRallyPoint")
				return new Order(order.OrderID, self, false) { TargetLocation = self.World.Map.CellContaining(target.CenterPosition), SuppressVisualFeedback = true };

			return null;
		}
开发者ID:JackKucan,项目名称:OpenRA,代码行数:7,代码来源:RallyPoint.cs

示例5: IssueOrder

        public Order IssueOrder( Actor self, IOrderTargeter order, Target target )
        {
            if( order.OrderID == "Disguise" )
                return new Order( order.OrderID, self, target.Actor );

            return null;
        }
开发者ID:pdovy,项目名称:OpenRA,代码行数:7,代码来源:RenderSpy.cs

示例6: IssueOrder

        public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued )
        {
            if( order.OrderID == "EnterTransport" )
                return new Order( order.OrderID, self, target.Actor, queued );

            return null;
        }
开发者ID:geckosoft,项目名称:OpenRA,代码行数:7,代码来源:Passenger.cs

示例7: IssueOrder

		public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
		{
			if (order.OrderID == "DeployTransform")
				return new Order(order.OrderID, self, queued);

			return null;
		}
开发者ID:JackKucan,项目名称:OpenRA,代码行数:7,代码来源:Transforms.cs

示例8: IssueOrder

        public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
        {
            if (order.OrderID == "ChronoshiftJump" && chargeTick <= 0)
                self.World.OrderGenerator = new ChronoTankOrderGenerator(self);

            return new Order("ChronoshiftJump", self, false); // Hack until we can return null
        }
开发者ID:Generalcamo,项目名称:OpenRA,代码行数:7,代码来源:ChronoshiftDeploy.cs

示例9: IssueOrder

        public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
        {
            if (!(order is BeginMinefieldOrderTargeter))
                return null;

            var start = target.CenterPosition.ToCPos();
            self.World.OrderGenerator = new MinefieldOrderGenerator(self, start);
            return new Order("BeginMinefield", self, false) { TargetLocation = start };
        }
开发者ID:RunCraze,项目名称:OpenRA,代码行数:9,代码来源:Minelayer.cs

示例10: IssueOrder

        public Order IssueOrder( Actor self, IOrderTargeter order, Target target )
        {
            if( order.OrderID == "Enter" )
                return new Order( order.OrderID, self, target.Actor );

            if( order.OrderID == "Move" )
                return new Order( order.OrderID, self, Util.CellContaining( target.CenterLocation ) );

            return null;
        }
开发者ID:pdovy,项目名称:OpenRA,代码行数:10,代码来源:Helicopter.cs

示例11: IssueOrder

        public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
        {
            if (order.OrderID == "PortableChronoDeploy" && CanTeleport)
                self.World.OrderGenerator = new PortableChronoOrderGenerator(self, Info);

            if (order.OrderID == "PortableChronoTeleport")
                return new Order(order.OrderID, self, queued) { TargetLocation = self.World.Map.CellContaining(target.CenterPosition) };

            return new Order(order.OrderID, self, queued) { TargetActor = target.Actor };
        }
开发者ID:pchote,项目名称:OpenRA,代码行数:10,代码来源:PortableChrono.cs

示例12: IssueOrder

        public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued )
        {
            if( order.OrderID == "Enter" )
                return new Order(order.OrderID, self, queued) { TargetActor = target.Actor };

            if( order.OrderID == "Move" )
                return new Order(order.OrderID, self, queued) { TargetLocation = Util.CellContaining(target.CenterLocation) };

            return null;
        }
开发者ID:FMode,项目名称:OpenRA,代码行数:10,代码来源:Helicopter.cs

示例13: IssueOrder

		public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
		{
			if (order.OrderID != "CaptureActor")
				return null;

			if (target.Type == TargetType.FrozenActor)
				return new Order(order.OrderID, self, queued) { ExtraData = target.FrozenActor.ID };

			return new Order(order.OrderID, self, queued) { TargetActor = target.Actor };
		}
开发者ID:JackKucan,项目名称:OpenRA,代码行数:10,代码来源:Captures.cs

示例14: IssueOrder

 public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued )
 {
     if( order is BeginMinefieldOrderTargeter )
     {
         var start = Traits.Util.CellContaining( target.CenterLocation );
         self.World.OrderGenerator = new MinefieldOrderGenerator( self, start );
         return new Order("BeginMinefield", self, false) { TargetLocation = start };
     }
     return null;
 }
开发者ID:sonygod,项目名称:OpenRA-Dedicated-20120504,代码行数:10,代码来源:Minelayer.cs

示例15: IssueOrder

 public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
 {
     switch (order.OrderID)
     {
         case "BeginMinefield":
             var start = self.World.Map.CellContaining(target.CenterPosition);
             self.World.OrderGenerator = new MinefieldOrderGenerator(self, start);
             return new Order("BeginMinefield", self, false) { TargetLocation = start };
         case "PlaceMine":
             return new Order("PlaceMine", self, false) { TargetLocation = self.Location };
         default:
             return null;
     }
 }
开发者ID:CH4Code,项目名称:OpenRA,代码行数:14,代码来源:Minelayer.cs


注:本文中的IOrderTargeter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。