Remove *PxPosition from IOccupySpace/IPositionable.

This commit is contained in:
Paul Chote
2013-07-21 12:17:40 +12:00
parent 19165d259d
commit 6a435752fd
12 changed files with 19 additions and 51 deletions

View File

@@ -26,14 +26,14 @@ namespace OpenRA.Mods.RA.Move
this.length = length;
}
public override Activity Tick( Actor self )
public override Activity Tick(Actor self)
{
var mobile = self.Trait<Mobile>();
var pos = length > 1
? WPos.Lerp(start, end, ticks, length - 1)
: end;
mobile.AdjustPxPosition(self, PPos.FromWPos(pos));
mobile.SetVisualPosition(self, pos);
if (++ticks >= length)
{
mobile.IsMoving = false;
@@ -44,12 +44,12 @@ namespace OpenRA.Mods.RA.Move
return this;
}
public override IEnumerable<Target> GetTargets( Actor self )
public override IEnumerable<Target> GetTargets(Actor self)
{
yield return Target.FromPos(end);
}
// Cannot be cancelled
public override void Cancel( Actor self ) { }
public override void Cancel(Actor self) { }
}
}