planes attacking works; post-attack glitches though

This commit is contained in:
Chris Forbes
2009-12-29 17:40:35 +13:00
parent cea2091504
commit a5d8dc5861
7 changed files with 85 additions and 12 deletions

View File

@@ -2,6 +2,7 @@
using System.Linq;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits.Activities;
namespace OpenRa.Game.Traits
{
@@ -135,5 +136,11 @@ namespace OpenRa.Game.Traits
.Product();
return mi.Speed * modifier;
}
public static IActivity SequenceActivities(params IActivity[] acts)
{
return acts.Reverse().Aggregate((IActivity)null,
(next, a) => { a.NextActivity = next; return a; });
}
}
}