Removed: Unused AttackMoveInteraction

This commit is contained in:
geckosoft
2010-11-11 23:19:59 +01:00
committed by Bob
parent b3ddf1ae86
commit 5d3622b79d
2 changed files with 0 additions and 34 deletions

View File

@@ -1,33 +0,0 @@
using System.Linq;
using OpenRA.Orders;
using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
public class AttackMoveInteractionInfo : TraitInfo<AttackMoveInteraction>
{
}
public class AttackMoveInteraction : INotifyKeyPress
{
public bool KeyPressed(Actor self, KeyInput e)
{
if (self.World.LocalPlayer == null) return false;
if (e.KeyChar == 'a' && e.Modifiers == Modifiers.None)
{
StartAttackMoveOrder(self.World);
return true;
}
return false;
}
public static void StartAttackMoveOrder(World world)
{
if (world.Selection.Actors.Count() > 0)
world.OrderGenerator = new GenericSelectTarget(world.Selection.Actors, "AttackMove", "attackmove", MouseButton.Right);
}
}
}

View File

@@ -228,7 +228,6 @@ World:
EndMessage: The game will end in {0} seconds.
ValidateOrder:
GotoNextBase:
AttackMoveInteraction:
MINP:
Mine: