Example #1
0
 public bool IsEnemy(RosemaryFaction other)
 {
     PrepareAllies();
     return(!IsAlly(other));
 }
Example #2
0
 public bool IsAlly(RosemaryFaction other)
 {
     PrepareAllies();
     return(this == other || m_allies.Contains(other));
 }
Example #3
0
 public static void SetEnemies(RosemaryFaction a, RosemaryFaction b)
 {
     a.RemoveAlly(b);
     b.RemoveAlly(a);
 }
Example #4
0
 public static void SetAllies(RosemaryFaction a, RosemaryFaction b)
 {
     a.AddAlly(b);
     b.AddAlly(a);
 }
Example #5
0
 private bool RemoveAlly(RosemaryFaction other)
 {
     PrepareAllies();
     return(m_allies.Remove(other));
 }
Example #6
0
 private bool AddAlly(RosemaryFaction other)
 {
     PrepareAllies();
     return(m_allies.Add(other));
 }