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

@@ -1,4 +1,6 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using IjwFramework.Types;
namespace OpenRa.Game
{
@@ -17,11 +19,7 @@ namespace OpenRa.Game
this.location = location;
}
public override float2 RenderLocation
{
get { return 24.0f * (float2)location; }
}
public override Sprite[] CurrentImages { get { return animation.Images; } }
public override IEnumerable<Pair<Sprite, float2>> CurrentImages { get { yield return Pair.New( animation.Image, 24 * (float2)location ); } }
}
}