This commit is contained in:
Chris Forbes
2009-11-18 20:53:10 +13:00
parent 36721e9566
commit 9a2f2f1cd7
8 changed files with 88 additions and 3 deletions

View File

@@ -87,6 +87,11 @@ namespace OpenRa.Game
return Game.world.Actors.Where(x => x.ActorID == aID).First();
}
public static Order Chat(Player subject, string text)
{
return new Order(subject, "Chat", null, null, int2.Zero, text, null);
}
public static Order Attack(Actor subject, Actor target)
{
return new Order(subject.Owner, "Attack", subject, target, int2.Zero, null, Cursor.Attack);