Files
OpenRA/OpenRa.Game/Traits/Infantry.cs

35 lines
637 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Game.Traits
{
class Infantry : ICrushable
{
public Infantry(Actor self){}
public bool IsCrushableByFriend()
{
// HACK: should be false
return true;
}
public bool IsCrushableByEnemy()
{
// HACK: should be based off crushable tag
return true;
}
public void OnCrush(Actor crusher)
{
Sound.Play("squishy2.aud");
}
public IEnumerable<UnitMovementType> CrushableBy()
{
yield return UnitMovementType.Track;
yield return UnitMovementType.Wheel;
}
}
}