Rename ActorMap *UnitsAt* occurences to *ActorsAt*

These enumerate actors in general, not just mobile actors (which the term 'unit' usually refers to).
This commit is contained in:
reaperrr
2015-10-16 00:07:06 +02:00
parent 410f121a1e
commit 2f69711341
23 changed files with 50 additions and 50 deletions

View File

@@ -110,12 +110,12 @@ namespace OpenRA.Mods.Common
public static void NotifyBlocker(this Actor self, CPos position)
{
NotifyBlocker(self, self.World.ActorMap.GetUnitsAt(position));
NotifyBlocker(self, self.World.ActorMap.GetActorsAt(position));
}
public static void NotifyBlocker(this Actor self, IEnumerable<CPos> positions)
{
NotifyBlocker(self, positions.SelectMany(p => self.World.ActorMap.GetUnitsAt(p)));
NotifyBlocker(self, positions.SelectMany(p => self.World.ActorMap.GetActorsAt(p)));
}
public static bool CanHarvestAt(this Actor self, CPos pos, ResourceLayer resLayer, HarvesterInfo harvInfo,