示例#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));
 }