moved Activity to Actor (from Mobile)

This commit is contained in:
Bob
2009-11-25 18:34:30 +13:00
parent 5c3da9387b
commit 74ab0c7a13
6 changed files with 55 additions and 62 deletions

View File

@@ -41,7 +41,7 @@ namespace OpenRa.Game.Traits.Activities
}
else
{
mobile.QueueActivity( new Move(
self.QueueActivity( new Move(
() =>
{
var search = new PathSearch
@@ -53,7 +53,7 @@ namespace OpenRa.Game.Traits.Activities
search.AddInitialCell( self.Location );
return Game.PathFinder.FindPath( search );
} ) );
mobile.QueueActivity( new Harvest() );
self.QueueActivity( new Harvest() );
return NextActivity;
}
}