IActivity no longer passed Mobiles around.

This commit is contained in:
Bob
2009-11-25 18:18:17 +13:00
parent 2aea110497
commit 5c3da9387b
9 changed files with 26 additions and 23 deletions

View File

@@ -18,7 +18,7 @@ namespace OpenRa.Game.Traits.Activities
public IActivity NextActivity { get; set; }
public IActivity Tick( Actor self, Mobile mobile )
public IActivity Tick( Actor self )
{
if (Target == null || Target.IsDead)
return NextActivity;
@@ -29,7 +29,7 @@ namespace OpenRa.Game.Traits.Activities
return null;
}
public void Cancel(Actor self, Mobile mobile)
public void Cancel(Actor self)
{
Target = null;
}