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

@@ -461,7 +461,7 @@ namespace OpenRA
return dataStream.ToArray();
}
public bool IsInMap(CPos xy) { return Bounds.Contains(xy.X, xy.Y); }
public bool Contains(CPos xy) { return Bounds.Contains(xy.X, xy.Y); }
public void Resize(int width, int height) // editor magic.
{
@@ -638,7 +638,7 @@ namespace OpenRA
foreach (var offset in TilesByDistance[i])
{
var t = offset + center;
if (IsInMap(t))
if (Contains(t))
yield return t;
}
}