This commit is contained in:
Chris Forbes
2009-11-01 19:57:03 +13:00
parent b9af0d42fe
commit 98e64fc446
2 changed files with 8 additions and 7 deletions

View File

@@ -92,9 +92,10 @@ namespace OpenRa.Game
return new Order(subject.Owner, "Attack", subject, target, int2.Zero, null, Cursor.Attack);
}
public static Order Move(Actor subject, int2 target)
public static Order Move(Actor subject, int2 target, bool isBlocked)
{
return new Order(subject.Owner, "Move", subject, null, target, null, Cursor.Move);
return new Order(subject.Owner, "Move", subject, null, target, null,
isBlocked ? Cursor.MoveBlocked : Cursor.Move);
}
public static Order DeployMcv(Actor subject)