attack if in range of any cell of a building

This commit is contained in:
Bob
2010-11-03 21:06:55 +13:00
committed by Chris Forbes
parent c3fc7b98f3
commit 50b1ba3acc
8 changed files with 56 additions and 7 deletions

View File

@@ -10,7 +10,8 @@
using System.Drawing;
using OpenRA.Graphics;
using System.Linq;
using System.Linq;
using System.Collections.Generic;
namespace OpenRA.Traits
{
@@ -31,6 +32,11 @@ namespace OpenRA.Traits
public virtual string[] TargetTypes
{
get { return Info.TargetTypes;}
}
public virtual IEnumerable<int2> TargetableSquares( Actor self )
{
yield return self.Location;
}
}
}