예제 #1
0
 public bool CanAttack(Territory attackedTerritory)
 {
     return(GetAttackableNeighbours(true).Contains(attackedTerritory));
 }
예제 #2
0
 public void TakeOwnership(Territory loser)
 {
     loser.Owner        = this.Owner;
     loser.NrOfSoldiers = this.NrOfSoldiers - 1;
     this.NrOfSoldiers  = 1;
 }