本文整理汇总了C#中IOrderTargeter类的典型用法代码示例。如果您正苦于以下问题:C# IOrderTargeter类的具体用法?C# IOrderTargeter怎么用?C# IOrderTargeter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IOrderTargeter类属于命名空间,在下文中一共展示了IOrderTargeter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: IssueOrder
public Order IssueOrder( Actor self, IOrderTargeter order, Target target )
{
if( order is AttackOrderTargeter )
{
if( target.IsActor )
return new Order( IsHeal ? "Heal" : "Attack", self, target.Actor );
else
return new Order( IsHeal ? "Heal" : "Attack", self, Util.CellContaining( target.CenterLocation ) );
}
return null;
}
开发者ID:pdovy,项目名称:OpenRA,代码行数:11,代码来源:AttackBase.cs
示例17: IssueOrder
// Note: Returns a valid order even if the unit can't move to the target
public Order IssueOrder( Actor self, IOrderTargeter order, Target target )
{
if( order is MoveOrderTargeter )
{
if( Info.OnRails ) return null;
return new Order( "Move", self, Util.CellContaining( target.CenterLocation ), false );
}
return null;
}
开发者ID:pdovy,项目名称:OpenRA,代码行数:10,代码来源:Mobile.cs
示例18: IssueOrder
public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
{
if (order.OrderID == "Deliver")
return new Order(order.OrderID, self, queued) { TargetActor = target.Actor };
if (order.OrderID == "Harvest")
return new Order(order.OrderID, self, queued) { TargetLocation = self.World.Map.CellContaining(target.CenterPosition) };
return null;
}
开发者ID:RobotCaleb,项目名称:OpenRA,代码行数:10,代码来源:Harvester.cs
示例19: IssueOrder
public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
{
if (order.OrderID == "Deliver")
return new Order(order.OrderID, self, queued) { TargetActor = target.Actor };
if (order.OrderID == "Harvest")
return new Order(order.OrderID, self, queued) { TargetLocation = target.CenterLocation.ToCPos() };
return null;
}
开发者ID:Iran,项目名称:ClassicRA,代码行数:10,代码来源:Harvester.cs
示例20: IssueOrder
public Order IssueOrder( Actor self, IOrderTargeter order, Target target )
{
if( order.OrderID == "Unload" )
return new Order( order.OrderID, self );
if( order.OrderID == "ReverseEnterTransport" )
return new Order( order.OrderID, self, target.Actor );
return null;
}
开发者ID:pdovy,项目名称:OpenRA,代码行数:10,代码来源:Cargo.cs
注:本文中的IOrderTargeter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论