added AttackTurreted.

This commit is contained in:
Bob
2009-10-18 23:51:00 +13:00
parent 62207efbd9
commit 5f2d89fd63
8 changed files with 144 additions and 54 deletions

View File

@@ -35,7 +35,8 @@ namespace OpenRa.Game.Traits
static float2[] fvecs = Util.MakeArray<float2>(32,
i => -float2.FromAngle(i / 16.0f * (float)Math.PI) * new float2(1f, 1.3f));
int GetFacing(float2 d)
// TODO: move this somewhere more appropriate, now that AttackTurreted uses it.
public int GetFacing(float2 d)
{
if (float2.WithinEpsilon(d, float2.Zero, 0.001f))
return facing;