cleaned up unused bits in attackmove

This commit is contained in:
Chris Forbes
2010-10-13 19:20:17 +13:00
parent 260e420f85
commit 8aa180c1f4
3 changed files with 13 additions and 25 deletions

View File

@@ -1,19 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRA.Traits;
using OpenRA.Traits.Activities;
namespace OpenRA.Mods.RA.Activities
{
public class AttackMove : Move
{
public AttackMove(int2 destination) : base(destination) { }
public AttackMove(int2 destination, int nearEnough) : base(destination, nearEnough) { }
public AttackMove(int2 destination, Actor ignoreBuilding) : base(destination, ignoreBuilding) { }
public AttackMove(Actor target, int range) : base(target, range) { }
public AttackMove(Target target, int range) : base(target, range) { }
public AttackMove(Func<List<int2>> getPath) : base(getPath) { }
}
}

View File

@@ -1,13 +1,21 @@
using System;
#region Copyright & License Information
/*
* Copyright 2007-2010 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see LICENSE.
*/
#endregion
using System.Drawing;
using OpenRA.Traits;
using OpenRA.Effects;
using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
class AttackMoveInfo : TraitInfo<AttackMove>
{
//public object Create(ActorInitializer init) { return new AttackMove(init.self); }
public readonly bool JustMove = false;
}
@@ -18,9 +26,8 @@ namespace OpenRA.Mods.RA
public string VoicePhraseForOrder(Actor self, Order order)
{
if (order.OrderString == "AttackMove")
{
return "AttackMove";
}
return null;
}

View File

@@ -77,7 +77,7 @@
<Compile Include="Activities\UnloadCargo.cs" />
<Compile Include="Activities\Wait.cs" />
<Compile Include="AttackBase.cs" />
<Compile Include="AttackMoveTrait.cs" />
<Compile Include="AttackMove.cs" />
<Compile Include="Buildable.cs" />
<Compile Include="Combat.cs" />
<Compile Include="Crates\CloakCrateAction.cs" />