Exemple #1
0
 internal void upgrade(Agent byWhom)
 {
     upgrading = true;
     constructionNeeds.add(getUpgradeNeeds().getCopy());
     if (byWhom.getCountry().economy.getValue() != Economy.PlannedEconomy)
     {
         byWhom.payWithoutRecord(this, Game.market.getCost(getUpgradeNeeds()));
     }
 }
Exemple #2
0
 internal void open(Agent byWhom)
 {
     if (byWhom.getCountry().economy.getValue() != Economy.PlannedEconomy)
     {
         salary.set(getProvince().getLocalMinSalary());
         if (byWhom != this)
         {
             byWhom.payWithoutRecord(this, getReopenCost());
         }
     }
     working          = true;
     daysUnprofitable = 0;
     daysClosed       = 0;
 }