exclusive force fire on husks and bridges

This commit is contained in:
Matthias Mailänder
2014-03-22 10:46:01 +01:00
parent af1db08503
commit c76ebbdc46
9 changed files with 31 additions and 2 deletions

View File

@@ -85,6 +85,11 @@ namespace OpenRA.Traits
return true;
}
public bool RequiresForceFire
{
get { return targetable != null && targetable.RequiresForceFire; }
}
// Representative position - see Positions for the full set of targetable positions.
public WPos CenterPosition
{

View File

@@ -233,6 +233,7 @@ namespace OpenRA.Traits
string[] TargetTypes { get; }
IEnumerable<WPos> TargetablePositions(Actor self);
bool TargetableBy(Actor self, Actor byActor);
bool RequiresForceFire { get; }
}
public interface INotifyStanceChanged