Change Squad.IsEmpty -> IsValid.

This commit is contained in:
Paul Chote
2013-08-24 10:29:00 +12:00
parent fd311502f5
commit 233ba81976
6 changed files with 28 additions and 18 deletions

View File

@@ -61,14 +61,11 @@ namespace OpenRA.Mods.RA.AI
public void Update()
{
if (IsEmpty) return;
fsm.Update(this);
if (IsValid)
fsm.Update(this);
}
public bool IsEmpty
{
get { return !units.Any(); }
}
public bool IsValid { get { return units.Any(); } }
public Actor Target
{