Added attack order. Cursor is currently incorrect.

This commit is contained in:
Bob
2009-10-26 23:25:35 +13:00
parent 612490e5b8
commit 3ef0f90b00
5 changed files with 52 additions and 22 deletions

View File

@@ -65,10 +65,12 @@ namespace OpenRa.Game
public Order Order( int2 xy, bool lmb )
{
if (Owner != Game.LocalPlayer)
return null;
return null;
var underCursor = Game.UnitInfluence.GetUnitAt( xy ) ?? Game.BuildingInfluence.GetBuildingAt( xy );
return traits.WithInterface<Traits.IOrder>()
.Select( x => x.Order( this, xy, lmb ) )
.Select( x => x.Order( this, xy, lmb, underCursor ) )
.FirstOrDefault( x => x != null );
}