Change ITargetable TargetableCells -> TargetablePositions.

This commit is contained in:
Paul Chote
2013-07-10 19:08:53 +12:00
parent 7b3c322b13
commit 9b9952dcdf
4 changed files with 6 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ namespace OpenRA.Traits
if (targetable == null)
return new []{actor.CenterPosition};
return targetable.TargetableCells(actor).Select(c => c.CenterPosition);
return targetable.TargetablePositions(actor);
}
}

View File

@@ -201,7 +201,7 @@ namespace OpenRA.Traits
public interface ITargetable
{
string[] TargetTypes { get; }
IEnumerable<CPos> TargetableCells(Actor self);
IEnumerable<WPos> TargetablePositions(Actor self);
bool TargetableBy(Actor self, Actor byActor);
}