Reveal-map crate

This commit is contained in:
Paul Chote
2010-08-15 01:43:24 +12:00
parent 839043ea1b
commit ddd56e6f9b
5 changed files with 17 additions and 2 deletions

View File

@@ -170,6 +170,16 @@ namespace OpenRA.Traits
Dirty();
}
public void ExploreAll(World world)
{
for (int i = map.TopLeft.X; i < map.BottomRight.X; i++)
for (int j = map.TopLeft.Y; j < map.BottomRight.Y; j++)
exploredCells[i, j] = true;
exploredBounds = new Rectangle(world.Map.TopLeft.X,world.Map.TopLeft.Y,world.Map.Width,world.Map.Height);
Dirty();
}
public void ResetExploration() // for `hide map` crate
{