added TurretedUnit

3tnk works; jeep's turret is off-center (and possibly hard-coded?)
This commit is contained in:
Bob
2009-10-06 20:39:40 +13:00
parent e4c3c7e5af
commit f2eeb11d0f
10 changed files with 96 additions and 35 deletions

View File

@@ -4,6 +4,7 @@ using System.Text;
using OpenRa.FileFormats;
using System.Drawing;
using OpenRa.Game.Graphics;
using IjwFramework.Types;
namespace OpenRa.Game
{
@@ -19,8 +20,13 @@ namespace OpenRa.Game
}
Sprite[] currentImages;
public override Sprite[] CurrentImages { get { return currentImages; } }
public override float2 RenderLocation { get { return 24 * location; } }
public override IEnumerable<Pair<Sprite, float2>> CurrentImages
{
get
{
foreach( var x in currentImages )
yield return Pair.New( x, 24 * (float2)location );
}
}
}
}