refinery comes with a harvester

git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1344 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
(no author)
2007-07-24 10:22:34 +00:00
parent 60e6f36042
commit ced4d24793
11 changed files with 43 additions and 26 deletions

View File

@@ -9,9 +9,21 @@ namespace OpenRa.Game
{
class Refinery : Building
{
public Refinery( int2 location, Player owner )
: base( "proc", location, owner )
public Refinery( int2 location, Player owner, Game game )
: base( "proc", location, owner, game )
{
animation.PlayThen("make", delegate
{
animation.PlayRepeating("idle");
game.world.AddFrameEndTask(delegate
{
Unit harvester = new Harvester(location + new int2(1, 2), owner, game);
harvester.facing = 8;
game.world.Add(harvester);
game.world.orderGenerator = harvester;
});
});
}
}
}