OpenRA.Player.IsAlliedWith C# (CSharp) Method

IsAlliedWith() public method

public IsAlliedWith ( Player p ) : bool
p Player
return bool
        public bool IsAlliedWith(Player p)
        {
            // Observers are considered allies to active combatants
            return p == null || Stances[p] == Stance.Ally || (p.Spectating && !NonCombatant);
        }