Remove StateBase.AverageUnitsPosition.

This commit is contained in:
Paul Chote
2013-08-24 10:57:57 +12:00
parent 7ab0e00948
commit f6730a6740
3 changed files with 5 additions and 20 deletions

View File

@@ -11,6 +11,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRA.FileFormats;
using OpenRA.Traits;
using XRandom = OpenRA.Thirdparty.Random;
@@ -78,5 +79,7 @@ namespace OpenRA.Mods.RA.AI
get { return (target != null && !target.IsDead() && !target.Destroyed
&& target.IsInWorld && !target.HasTrait<Husk>()); }
}
public WPos CenterPosition { get { return units.Select(u => u.CenterPosition).Average(); } }
}
}