public bool IsEnemy(RosemaryFaction other) { PrepareAllies(); return(!IsAlly(other)); }
public bool IsAlly(RosemaryFaction other) { PrepareAllies(); return(this == other || m_allies.Contains(other)); }
public static void SetEnemies(RosemaryFaction a, RosemaryFaction b) { a.RemoveAlly(b); b.RemoveAlly(a); }
public static void SetAllies(RosemaryFaction a, RosemaryFaction b) { a.AddAlly(b); b.AddAlly(a); }
private bool RemoveAlly(RosemaryFaction other) { PrepareAllies(); return(m_allies.Remove(other)); }
private bool AddAlly(RosemaryFaction other) { PrepareAllies(); return(m_allies.Add(other)); }