Exemplo n.º 1
0
 private void AddToTreasury(CityLoyaltySystem system, MaritimeCargo cargo)
 {
     if (system != null)
     {
         if (cargo.City == City)
         {
             system.AddToTreasury(null, cargo.GetAwardAmount() * 1000);
         }
         else
         {
             system.AddToTreasury(null, 100);
         }
     }
 }