hide-map crate

This commit is contained in:
Paul Chote
2010-03-21 21:14:09 +13:00
parent 061f43bdf6
commit cce0c8f228
4 changed files with 51 additions and 1 deletions

View File

@@ -98,7 +98,12 @@ namespace OpenRA
return IsExplored(x,y);
}
public void ResetExplored()
{
explored = new bool[map.MapSize, map.MapSize];
}
Rectangle MakeRect(int2 center, int range)
{
return new Rectangle(center.X - range, center.Y - range, 2 * range + 1, 2 * range + 1);