added Shroud.Explore overload in prep for spyplane
This commit is contained in:
@@ -78,18 +78,23 @@ namespace OpenRa
|
||||
|
||||
return IsExplored(x,y);
|
||||
}
|
||||
|
||||
public void Explore(Actor a)
|
||||
|
||||
public void Explore(World w, int2 center, int range)
|
||||
{
|
||||
foreach (var t in a.World.FindTilesInCircle(
|
||||
(1f / Game.CellSize * a.CenterLocation).ToInt2(),
|
||||
a.Info.Traits.Get<OwnedActorInfo>().Sight))
|
||||
foreach (var t in w.FindTilesInCircle(center, range))
|
||||
{
|
||||
explored[t.X, t.Y] = true;
|
||||
gapField[t.X, t.Y] = 0;
|
||||
}
|
||||
dirty = true;
|
||||
}
|
||||
|
||||
public void Explore(Actor a)
|
||||
{
|
||||
Explore(a.World,
|
||||
(1f / Game.CellSize * a.CenterLocation).ToInt2(),
|
||||
a.Info.Traits.Get<OwnedActorInfo>().Sight);
|
||||
}
|
||||
|
||||
static readonly byte[][] SpecialShroudTiles =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user