From 2f2afd9fc56ec723752c0caf7e8c7e25f2960d99 Mon Sep 17 00:00:00 2001 From: "Ian T. Jacobsen" Date: Tue, 4 Feb 2014 13:49:31 +0000 Subject: [PATCH] Added OnNotifyBlockingMove to Mobile --- OpenRA.Mods.RA/Move/Mobile.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/Move/Mobile.cs b/OpenRA.Mods.RA/Move/Mobile.cs index 6c29aa2686..16c043ab96 100755 --- a/OpenRA.Mods.RA/Move/Mobile.cs +++ b/OpenRA.Mods.RA/Move/Mobile.cs @@ -144,7 +144,7 @@ namespace OpenRA.Mods.RA.Move public int GetInitialFacing() { return InitialFacing; } } - public class Mobile : IIssueOrder, IResolveOrder, IOrderVoice, IPositionable, IMove, IFacing, ISync, INotifyAddedToWorld, INotifyRemovedFromWorld + public class Mobile : IIssueOrder, IResolveOrder, IOrderVoice, IPositionable, IMove, IFacing, ISync, INotifyAddedToWorld, INotifyRemovedFromWorld, INotifyBlockingMove { public readonly Actor self; public readonly MobileInfo Info; @@ -542,5 +542,10 @@ namespace OpenRA.Mods.RA.Move public Activity MoveWithinRange(Target target, WRange range) { return new Move(target, range); } public Activity MoveFollow(Actor self, Target target, WRange range) { return new Follow(self, target, range); } public Activity MoveTo(Func> pathFunc) { return new Move(pathFunc); } - } + + public void OnNotifyBlockingMove(Actor self, Actor blocking) + { + Nudge(self, blocking, true); + } + } }