Package ch.sahits.game.openpatrician.model

Examples of ch.sahits.game.openpatrician.model.IBalanceSheet


   * @throws IOException
   */
  private void drawBalanceSum(Graphics2D g2d, ITradingOffice office,
      BufferedImage coin, int y) throws FontFormatException, IOException {
    int lastWeek =0;
    IBalanceSheet bal = office.getBalanceLastWeek();
    lastWeek += bal.getOtherCosts() + bal.getPropertyTaxes() + bal.getStewardCost() + bal.getWageCosts();
    lastWeek -= (bal.getOfficeTrading() + bal.getRentalIncome());
    int forcast = 0;
    bal = office.getCurrentWeek();
    forcast += bal.getOtherCosts() + bal.getPropertyTaxes() + bal.getStewardCost() + bal.getWageCosts();
    forcast -= (bal.getOfficeTrading() + bal.getRentalIncome());
    drawBalanceRow(g2d, coin, y, lastWeek, forcast);
  }
View Full Code Here



  @Override
  public void notify(DateObject date) {
    this.currentWeek.startUpdate();
    IBalanceSheet newWeek = new BalanceSheet((BalanceSheet) currentWeek);
    newWeek.startUpdate();
    this.lastWeek = this.currentWeek;
    this.currentWeek = newWeek;   
  }
View Full Code Here

TOP

Related Classes of ch.sahits.game.openpatrician.model.IBalanceSheet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.