git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1365 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-28 10:30:40 +00:00
parent 5d6fbbdfc9
commit 48e5da3945
13 changed files with 252 additions and 230 deletions

View File

@@ -22,22 +22,37 @@ namespace OpenRa.Game
public void Apply( Game game )
{
Unit.AcceptMoveOrder( Destination );
Unit.nextOrder = UnitMissions.Move( Unit, Destination );
}
}
class DeployMcvOrder : IOrder
{
public Mcv Mcv;
Unit unit;
public DeployMcvOrder( Mcv mcv )
public DeployMcvOrder( Unit unit )
{
this.Mcv = mcv;
this.unit = unit;
}
public void Apply( Game game )
{
Mcv.AcceptDeployOrder();
unit.nextOrder = UnitMissions.Deploy( unit );
}
}
class HarvestOrder : IOrder
{
Unit unit;
public HarvestOrder( Unit unit )
{
this.unit = unit;
}
public void Apply( Game game )
{
unit.nextOrder = UnitMissions.Harvest( unit );
}
}
}