Codota Logo
IBalanceSheet
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • getContentResolver (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now