frame0 runs continuously until game start (currently hacked onto F8)

This commit is contained in:
Chris Forbes
2009-12-01 19:04:50 +13:00
parent 454a302f56
commit 235ff36792
4 changed files with 46 additions and 17 deletions

View File

@@ -15,8 +15,10 @@ namespace OpenRa.Game
public readonly Actor TargetActor;
public readonly int2 TargetLocation;
public readonly string TargetString;
public bool IsImmediate;
Order(Player player, string orderString, Actor subject, Actor targetActor, int2 targetLocation, string targetString)
Order(Player player, string orderString, Actor subject,
Actor targetActor, int2 targetLocation, string targetString)
{
this.Player = player;
this.OrderString = orderString;
@@ -71,7 +73,7 @@ namespace OpenRa.Game
targetString = r.ReadString();
var player = Game.players.Where( x => x.Value.Index == playerID ).First().Value;
return new Order( player, order, subject, targetActor, targetLocation, targetString );
return new Order( player, order, subject, targetActor, targetLocation, targetString);
}
default:
throw new NotImplementedException();
@@ -88,7 +90,8 @@ namespace OpenRa.Game
// Now that Orders are resolved by individual Actors, these are weird; you unpack orders manually, but not pack them.
public static Order Chat(Player subject, string text)
{
return new Order(subject, "Chat", null, null, int2.Zero, text);
return new Order(subject, "Chat", null, null, int2.Zero, text)
{ IsImmediate = true };
}
public static Order Attack(Actor subject, Actor target)