Class BalanceSheet
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.impl.BalanceSheet
-
- All Implemented Interfaces:
IBalanceSheet
public class BalanceSheet extends java.lang.Object implements IBalanceSheet
- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Dec 9, 2013
-
-
Constructor Summary
Constructors Constructor Description BalanceSheet(ICity city, IPlayer player)Initialize a blank sheetBalanceSheet(BalanceSheet prevWeek)Initialize a forcast balance sheet by using the balance sheet of the previous week
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeductPropertyTaxes(int amount)Update the property taxes for the whole week.voidupdateAutomatedTradingCosts(long costs)Update the costs incurred by automatic trading for the dayvoidupdateOtherExpensesOneTime(int costs)Update the other costs with a one time expense.voidupdateOtherExpensesRegular(int costsPerDay)Update any regular other costs.voidupdateRentalIncome(int incomePerDay)Update the income for rented houses.voidupdateSalaries(int saleriesPerDay)Update the saleries per day.voidupdateStewardCosts(int costPerDay)Update the costs for the steward.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.IBalanceSheet
getOfficeTrading, getOtherCosts, getPropertyTaxes, getRentalIncome, getStewardCost, getWageCosts
-
-
-
-
Constructor Detail
-
BalanceSheet
public BalanceSheet(BalanceSheet prevWeek)
Initialize a forcast balance sheet by using the balance sheet of the previous week- Parameters:
prevWeek- BalanceSheet of the previous week.
-
-
Method Detail
-
updateStewardCosts
public void updateStewardCosts(int costPerDay)
Update the costs for the steward.- Specified by:
updateStewardCostsin interfaceIBalanceSheet- Parameters:
costPerDay- daily salary costs of the stewards in all the trading offices.
-
updateRentalIncome
public void updateRentalIncome(int incomePerDay)
Update the income for rented houses.- Specified by:
updateRentalIncomein interfaceIBalanceSheet- Parameters:
incomePerDay- amount payed per day
-
deductPropertyTaxes
public void deductPropertyTaxes(int amount)
Update the property taxes for the whole week.- Specified by:
deductPropertyTaxesin interfaceIBalanceSheet- Parameters:
amount- property taxes for the week
-
updateSalaries
public void updateSalaries(int saleriesPerDay)
Update the saleries per day.- Specified by:
updateSalariesin interfaceIBalanceSheet- Parameters:
saleriesPerDay- salery of workers per day
-
updateAutomatedTradingCosts
public void updateAutomatedTradingCosts(long costs)
Update the costs incurred by automatic trading for the day- Specified by:
updateAutomatedTradingCostsin interfaceIBalanceSheet- Parameters:
costs- for automatic trading
-
updateOtherExpensesRegular
public void updateOtherExpensesRegular(int costsPerDay)
Update any regular other costs.- Specified by:
updateOtherExpensesRegularin interfaceIBalanceSheet- Parameters:
costsPerDay- regular expences per day
-
updateOtherExpensesOneTime
public void updateOtherExpensesOneTime(int costs)
Update the other costs with a one time expense.- Specified by:
updateOtherExpensesOneTimein interfaceIBalanceSheet- Parameters:
costs- one time expenses
-
-