Tabnine Logo
IBalanceSheet
Code IndexAdd Tabnine to your IDE (free)

How to use
IBalanceSheet
in
ch.sahits.game.openpatrician.model

Best Java code snippets using ch.sahits.game.openpatrician.model.IBalanceSheet (Showing top 16 results out of 315)

origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    int forcast = 0;
    IBalanceSheet bal = office.getCurrentWeek();
    forcast += bal.getOtherCosts() + bal.getPropertyTaxes() + bal.getStewardCost() + bal.getWageCosts();
    forcast -= (bal.getOfficeTrading() + bal.getRentalIncome());
    return String.valueOf(forcast);
  }
};
origin: ch.sahits.game/OpenPatricianEngine

  Preconditions.checkArgument(optMainOffice.isPresent(), "There must be a trading office in the hometown.");
  IBalanceSheet balanceSheet = optMainOffice.get().getCurrentWeek();
  balanceSheet.updateRentalIncome(rentalIncome);
  balanceSheet.updateStewardCosts(stewardCosts);
  balanceSheet.updateSalaries(wageCosts);
  balanceSheet.updateOtherExpensesRegular(otherCosts);
} else {
  player.getCompany().updateCashDirectly(sum);
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getRentalIncome());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getPropertyTaxes());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getOfficeTrading());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getStewardCost());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getOtherCosts());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getWageCosts());
  }
};
origin: ch.sahits.game/OpenPatricianEngine

int maxPrice = automatedTrading.getPrice(ware);
int totalPrice = tradeService.buyFromCityToStorage(office, office.getOwner(), city, ware, maxAmount, Optional.of(maxPrice), office.getSteward());
balanceSheet.updateAutomatedTradingCosts(totalPrice);
if (amount > 0) { // check if there is anything to sell
  int price = tradeService.sellFromStorageToCity(office, office.getOwner(), city, ware, amount, Optional.of(avgPrice));
  balanceSheet.updateAutomatedTradingCosts(price);
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getRentalIncome());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getPropertyTaxes());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getOfficeTrading());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getStewardCost());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getBalanceLastWeek().getOtherCosts());
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    IBalanceSheet bal = office.getBalanceLastWeek();
    int lastWeek =0;
    lastWeek += bal.getOtherCosts() + bal.getPropertyTaxes() + bal.getStewardCost() + bal.getWageCosts();
    lastWeek -= (bal.getOfficeTrading() + bal.getRentalIncome());
    return String.valueOf(lastWeek);
  }
};
origin: ch.sahits.game/OpenPatricianDisplay

  @Override
  protected String computeValue() {
    return String.valueOf(office.getCurrentWeek().getRentalIncome());
  }
};
ch.sahits.game.openpatrician.modelIBalanceSheet

Most used methods

  • getOfficeTrading
  • getOtherCosts
  • getPropertyTaxes
  • getRentalIncome
  • getStewardCost
  • getWageCosts
  • updateAutomatedTradingCosts
  • updateOtherExpensesRegular
  • updateRentalIncome
  • updateSalaries
  • updateStewardCosts
  • updateStewardCosts

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Permission (java.security)
    Legacy security code; do not use.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • BoxLayout (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now