Exemplo n.º 1
0
 public Country(EContinent continent, string name, string fullName, string iso, bool isAccredited = true)
 {
     this.Continent    = continent;
     this.Name         = name;
     this.FullName     = fullName;
     this.Iso          = iso;
     this.IsAccredited = isAccredited;
     this.Translations = new List <CountryNameTranslation>();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Erstellt einen neuen Staat
 /// </summary>
 /// <param name="id">ID des Staates</param>
 /// <param name="name">Name des Staates</param>
 /// <param name="flag">Flaggenkürzel des Staates</param>
 /// <param name="continent">Kontinent des Staates</param>
 public State(int id, string name, string flag, EContinent continent)
     : base(id, name)
 {
     Flag      = flag;
     Continent = continent;
 }
Exemplo n.º 3
0
 private bool PlayerOwnsAllCountriesOfGivenContinent(EContinent continent)
 {
     return gameInformation.GetAllCountries().Where(c => c.Continent == continent).All(c => c.Owner == player);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Erstellt einen neuen Staat und fügt ihn der Liste hinzu
 /// </summary>
 /// <param name="name">Name des Staates</param>
 /// <param name="flag">Flaggenkürzel des Staates</param>
 /// <param name="continent">Kontinent des Staates</param>
 public void Create(string name, string flag, EContinent continent)
 {
     Add(new State(GetNewID(), name, flag, continent));
 }
Exemplo n.º 5
0
 private Country GetCountry(EContinent continent, int number)
 {
     return(countries.Single(country => country.Continent == continent && country.Number == number));
 }
Exemplo n.º 6
0
 private bool PlayerOwnsAllCountriesOfGivenContinent(EContinent continent)
 {
     return(gameInformation.GetAllCountries().Where(c => c.Continent == continent).All(c => c.Owner == player));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Erstellt einen neuen Staat
 /// </summary>
 /// <param name="id">ID des Staates</param>
 /// <param name="name">Name des Staates</param>
 /// <param name="flag">Flaggenkürzel des Staates</param>
 /// <param name="continent">Kontinent des Staates</param>
 public State(int id, string name, string flag, EContinent continent)
     : base(id, name)
 {
     Flag = flag;
     Continent = continent;
 }
Exemplo n.º 8
0
 private Country GetCountry(EContinent continent, int number)
 {
     return countries.Single(country => country.Continent == continent && country.Number == number);
 }