Tidy up Activity.Cancel(), make Tick abstract

This commit is contained in:
Paul Chote
2011-04-16 13:18:22 +12:00
parent 0a67c68c45
commit 4f83e994d0
14 changed files with 47 additions and 54 deletions

View File

@@ -233,10 +233,10 @@ namespace OpenRA.Mods.RA.Move
return Pair.New(nextCell, subCell);
}
protected override bool OnCancel( Actor self )
public override void Cancel( Actor self )
{
path = new List<int2>();
return true;
base.Cancel(self);
}
public override IEnumerable<Target> GetTargets( Actor self )
@@ -267,9 +267,10 @@ namespace OpenRA.Mods.RA.Move
this.moveFractionTotal = ( ( to - from ) * 3 ).Length;
}
protected override bool OnCancel( Actor self )
public override void Cancel( Actor self )
{
return move.OnCancel( self );
move.Cancel( self );
base.Cancel( self );
}
public override void Queue( Activity activity )