Some Mobile and Harvester clean-ups

Made Harvester interface implementations explicit.
Made Mobile internal VisualMove activity private.
This commit is contained in:
reaperrr
2018-05-05 03:47:59 +02:00
parent 545ca5da61
commit ff8f147955
2 changed files with 8 additions and 9 deletions

View File

@@ -555,7 +555,7 @@ namespace OpenRA.Mods.Common.Traits
public Activity ScriptedMove(CPos cell) { return new Move(self, cell); }
public Activity MoveTo(Func<List<CPos>> pathFunc) { return new Move(self, pathFunc); }
public Activity VisualMove(Actor self, WPos fromPos, WPos toPos, CPos cell)
Activity VisualMove(Actor self, WPos fromPos, WPos toPos, CPos cell)
{
var speed = MovementSpeedForCell(self, cell);
var length = speed > 0 ? (toPos - fromPos).Length / speed : 0;