Refactor per-player shrouds & fix shellmap shroud.
This commit is contained in:
@@ -92,5 +92,10 @@ namespace OpenRA
|
||||
}
|
||||
|
||||
public Dictionary<Player, Stance> Stances = new Dictionary<Player, Stance>();
|
||||
public bool IsAlliedWith(Player p)
|
||||
{
|
||||
// Observers are considered as allies
|
||||
return p == null || Stances[p] == Stance.Ally;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user