Merge branch 'master' of git://github.com/chrisforbes/OpenRA

This commit is contained in:
Paul Chote
2010-01-08 22:28:12 +13:00
7 changed files with 38 additions and 28 deletions

View File

@@ -2,28 +2,5 @@
namespace OpenRa.Game.Traits
{
class GpsSatellite : ITick
{
int frame = 0;
int revealTicks = 30 * 25; // 30 second delay between launch and reveal
bool fired = false;
public GpsSatellite(Actor self) {}
public void Tick(Actor self)
{
// HACK: Launch after 5 seconds
if (++frame == 150)
Activate(self);
if (fired && --revealTicks == 0)
{
self.Owner.Shroud.HasGPS = true;
}
}
public void Activate(Actor self)
{
Game.world.AddFrameEndTask(w => w.Add(new SatelliteLaunch(self)));
fired = true;
}
}
class GpsSatellite { public GpsSatellite(Actor self) { } }
}