force-move; cleaning some dead bits; etc

This commit is contained in:
Chris Forbes
2009-12-23 21:48:15 +13:00
parent 8fa02ea6a3
commit 982fde6d0a
6 changed files with 31 additions and 24 deletions

View File

@@ -29,10 +29,13 @@ namespace OpenRa.Game.Traits
self.InflictDamage(crusher, self.Health, Rules.WarheadInfo["Crush"]);
}
public IEnumerable<UnitMovementType> CrushableBy()
public bool CrushableBy(UnitMovementType umt)
{
yield return UnitMovementType.Track;
//yield return UnitMovementType.Wheel; // Can infantry be crushed by wheel?
switch (umt)
{
case UnitMovementType.Track: return true;
default: return false;
}
}
}
}