Files
OpenRA/OpenRa.Game/GameRules/WarheadInfo.cs
2009-10-21 21:34:34 +13:00

23 lines
579 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.FileFormats;
using OpenRa.Game.Graphics;
namespace OpenRa.Game.GameRules
{
class WarheadInfo
{
public readonly int Spread = 1;
public readonly float[] Verses = { 1, 1, 1, 1, 1 };
public readonly bool Wall = false;
public readonly bool Wood = false;
public readonly bool Ore = false;
public readonly int Explosion = 0;
public readonly int InfDeath = 0;
public float EffectivenessAgainst(ArmorType at) { return Verses[ (int)at ]; }
}
}