Example #1
0
 public void Init()
 {
     _name           = "Armurerie";
     _productionType = "Armes";
     _yield          = 3;
     _corporation    = new Corporation(_name, _productionType, _yield);
 }
Example #2
0
 /// <summary>
 /// Ajoute une corporation à la ville
 /// </summary>
 /// <param name="corporation"></param>
 public void NewCorporation(Corporation corporation)
 {
     if (_listCorporation == null) //vérifie que la liste soit vide
     {
         this._listCorporation = new List <Corporation>();
     }
     _listCorporation.Add(corporation);
     this.PublicOpinion(); //appelle la méthode
 }