Map: Rename IsInMap -> Contains.

This commit is contained in:
Paul Chote
2014-06-26 21:45:55 +12:00
parent e0df669de9
commit 5560f276ca
27 changed files with 43 additions and 43 deletions

View File

@@ -71,7 +71,7 @@ namespace OpenRA.Traits
public IEnumerable<Actor> GetUnitsAt(CPos a)
{
if (!map.IsInMap(a))
if (!map.Contains(a))
yield break;
for (var i = influence[a]; i != null; i = i.Next)
@@ -81,7 +81,7 @@ namespace OpenRA.Traits
public IEnumerable<Actor> GetUnitsAt(CPos a, SubCell sub)
{
if (!map.IsInMap(a))
if (!map.Contains(a))
yield break;
for (var i = influence[a]; i != null; i = i.Next)

View File

@@ -130,7 +130,7 @@ namespace OpenRA.Traits
public bool AllowResourceAt(ResourceType rt, CPos cell)
{
if (!world.Map.IsInMap(cell))
if (!world.Map.Contains(cell))
return false;
if (!rt.Info.AllowedTerrainTypes.Contains(world.Map.GetTerrainInfo(cell).Type))

View File

@@ -217,7 +217,7 @@ namespace OpenRA.Traits
public bool IsExplored(CPos cell)
{
if (!map.IsInMap(cell))
if (!map.Contains(cell))
return false;
if (Disabled || !self.World.LobbyInfo.GlobalSettings.Shroud)
@@ -233,7 +233,7 @@ namespace OpenRA.Traits
public bool IsVisible(CPos cell)
{
if (!map.IsInMap(cell))
if (!map.Contains(cell))
return false;
if (Disabled || !self.World.LobbyInfo.GlobalSettings.Fog)