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

@@ -31,9 +31,9 @@ namespace OpenRA.Mods.RA
public string[] TargetTypes { get { return info.TargetTypes; } }
public bool TargetableBy(Actor self, Actor byActor) { return true; }
public IEnumerable<CPos> TargetableCells( Actor self )
public IEnumerable<WPos> TargetablePositions(Actor self)
{
return self.Trait<Building>().OccupiedCells().Select(c => c.First);
return self.Trait<Building>().OccupiedCells().Select(c => c.First.CenterPosition);
}
}
}