Rename FlyTimed to FlyForward
This commit is contained in:
@@ -14,13 +14,13 @@ using OpenRA.Mods.Common.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.Common.Activities
|
namespace OpenRA.Mods.Common.Activities
|
||||||
{
|
{
|
||||||
public class FlyTimed : Activity
|
public class FlyForward : Activity
|
||||||
{
|
{
|
||||||
readonly Aircraft aircraft;
|
readonly Aircraft aircraft;
|
||||||
readonly WDist cruiseAltitude;
|
readonly WDist cruiseAltitude;
|
||||||
int remainingTicks;
|
int remainingTicks;
|
||||||
|
|
||||||
public FlyTimed(int ticks, Actor self)
|
public FlyForward(int ticks, Actor self)
|
||||||
{
|
{
|
||||||
remainingTicks = ticks;
|
remainingTicks = ticks;
|
||||||
aircraft = self.Trait<Aircraft>();
|
aircraft = self.Trait<Aircraft>();
|
||||||
@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
if (hasTarget)
|
if (hasTarget)
|
||||||
{
|
{
|
||||||
QueueChild(new Fly(self, target));
|
QueueChild(new Fly(self, target));
|
||||||
QueueChild(new FlyTimed(-1, self));
|
QueueChild(new FlyForward(-1, self));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
if (aircraft.Info.VTOL && self.World.Map.DistanceAboveTerrain(aircraft.CenterPosition) != aircraft.Info.CruiseAltitude)
|
if (aircraft.Info.VTOL && self.World.Map.DistanceAboveTerrain(aircraft.CenterPosition) != aircraft.Info.CruiseAltitude)
|
||||||
QueueChild(new TakeOff(self));
|
QueueChild(new TakeOff(self));
|
||||||
|
|
||||||
QueueChild(new FlyTimed(-1, self));
|
QueueChild(new FlyForward(-1, self));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool Tick(Actor self)
|
public override bool Tick(Actor self)
|
||||||
|
|||||||
Reference in New Issue
Block a user