rename some of Mobile's Activity-builders

This commit is contained in:
Bob
2010-11-07 12:51:54 +13:00
parent a265d11a5f
commit 47ed79b912
6 changed files with 12 additions and 12 deletions

View File

@@ -373,11 +373,11 @@ namespace OpenRA.Mods.RA.Move
}
}
public IActivity MoveTo( int2 cell ) { return new Move( cell ); }
public IActivity MoveTo( int2 cell, int range ) { return new Move( cell, range ); }
public IActivity ScriptedMove( int2 cell ) { return new Move( cell ); }
public IActivity MoveTo( int2 cell, int nearEnough ) { return new Move( cell, nearEnough ); }
public IActivity MoveTo( int2 cell, Actor ignoredActor ) { return new Move( cell, ignoredActor ); }
public IActivity MoveTo( Actor target, int range ) { return new Move( target, range ); }
public IActivity MoveTo( Target target, int range ) { return new Move( target, range ); }
public IActivity MoveWithinRange( Actor target, int range ) { return new Move( target, range ); }
public IActivity MoveWithinRange( Target target, int range ) { return new Move( target, range ); }
public IActivity MoveTo( Func<List<int2>> pathFunc ) { return new Move( pathFunc ); }
}
}

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA.Move
this.nearEnough = 0;
}
public Move( int2 destination, int nearEnough )
public Move( int2 destination, int nearEnough )
{
this.getPath = (self,mobile) => self.World.WorldActor.Trait<PathFinder>().FindUnitPath( mobile.toCell, destination, self );
this.destination = destination;