git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1365 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user