Gunboat non-orderable (move)

- Give Mobile OnRails property
- Make hax Move not cancellable
This commit is contained in:
alzeih
2010-08-22 00:17:58 +12:00
committed by Paul Chote
parent b3fbefe968
commit 70a92b80cf
4 changed files with 10 additions and 2 deletions

View File

@@ -24,7 +24,8 @@ namespace OpenRA.Traits.Activities
public List<int2> path;
Func<Actor, Mobile, List<int2>> getPath;
public Actor ignoreBuilding;
bool cancellable = true;
MovePart move;
int ticksBeforePathing;
@@ -48,6 +49,7 @@ namespace OpenRA.Traits.Activities
.WithoutLaneBias());
this.destination = destination;
this.nearEnough = 0;
this.cancellable = false;
}
public Move( int2 destination, int nearEnough )
@@ -231,6 +233,8 @@ namespace OpenRA.Traits.Activities
public void Cancel( Actor self )
{
if (!cancellable) return;
path = new List<int2>();
NextActivity = null;
}