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,8 +9,8 @@ namespace OpenRa.Game
{
class Mcv : Unit
{
public Mcv( int2 location, Player owner )
: base( "mcv", location, owner, new float2( 12, 12 ) )
public Mcv( int2 location, Player owner, Game game )
: base( "mcv", location, owner, new float2( 12, 12 ), game )
{
}
@@ -25,11 +25,7 @@ namespace OpenRa.Game
world.AddFrameEndTask( delegate
{
world.Remove( this );
world.Add( new ConstructionYard( fromCell - new int2( 1, 1 ), owner ) );
world.Add( new Refinery( fromCell - new int2( 1, -2 ), owner ) );
world.orderGenerator = new Harvester( fromCell - new int2( 0, -4 ), owner );
world.Add( (Actor)world.orderGenerator );
world.Add( new ConstructionYard( fromCell - new int2( 1, 1 ), owner, game ) );
} );
currentOrder = null;
};