harvest order wired into harvester. crashes with noti since the matching activity is noti.

This commit is contained in:
Chris Forbes
2009-11-03 18:21:02 +13:00
parent 1cb3f1ee10
commit d2ddd40902
4 changed files with 21 additions and 5 deletions

View File

@@ -106,7 +106,7 @@ namespace OpenRa.Game
public static Order PlaceBuilding(Player subject, int2 target, string buildingName)
{
return new Order(subject, "PlaceBuilding", null, null, target, buildingName, Cursor.Default);
return new Order(subject, "PlaceBuilding", null, null, target, buildingName, Cursor.None);
}
public static Order DeliverOre(Actor subject, Actor target)
@@ -114,6 +114,11 @@ namespace OpenRa.Game
return new Order(subject.Owner, "DeliverOre", subject, target, int2.Zero, null, Cursor.Enter);
}
public static Order Harvest(Actor subject, int2 target)
{
return new Order(subject.Owner, "Harvest", subject, null, target, null, Cursor.Attack); /* todo: special `harvest` cursor? */
}
public static Order StartProduction(Player subject, string item)
{
return new Order(subject, "StartProduction", null, null, int2.Zero, item, Cursor.Default );