shroud: it works. perf is pretty ugly, and there are a lot of small bugs.

This commit is contained in:
Chris Forbes
2010-01-05 22:12:22 +13:00
parent 27b2d20cab
commit 77da5c89de
11 changed files with 142 additions and 5 deletions

View File

@@ -18,7 +18,16 @@ namespace OpenRa.Game.Traits
public int2 toCell
{
get { return self.Location; }
set { Game.UnitInfluence.Remove(self, this); self.Location = value; Game.UnitInfluence.Add(self, this); }
set
{
if (self.Location != value)
{
Game.UnitInfluence.Remove(self, this);
self.Location = value;
self.Owner.Shroud.Explore(self);
}
Game.UnitInfluence.Add(self, this);
}
}
public Mobile(Actor self)