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