Пример #1
0
 public void AddAlly(Faction otherFaction)
 {
     AddAllyInt(this, otherFaction);
     AddAllyInt(otherFaction, this);
 }
Пример #2
0
 public void AddEnemy(Faction otherFaction)
 {
     AddEnemyInt(this, otherFaction);
     AddEnemyInt(otherFaction, this);
 }
Пример #3
0
 public bool AreAlliesWith(Faction otherFaction)
 {
     return(AlliesWith.Contains(otherFaction));
 }
Пример #4
0
 public bool CanBeAttacked(Faction otherFaction)
 {
     return(AreEnemiesWith(otherFaction) || !AreAlliesWith(otherFaction));
 }
Пример #5
0
 public bool AreEnemiesWith(Faction otherFaction)
 {
     return(EnemiesWith.Contains(otherFaction));
 }