public class BalanceSheet extends Object implements IBalanceSheet
| Modifier and Type | Field and Description |
|---|---|
private ICity |
city |
private Date |
gameDate |
private int |
officeTrading |
private int[] |
officeTradingDays |
private int |
otherCosts |
private int[] |
otherCostsDays |
private IPlayer |
player |
private int |
propertyTaxes |
private int |
rentalIncome |
private int[] |
rentalIncomeDays |
private int |
stewardCost |
private int[] |
stewardCostsDays |
private int |
wageCosts |
private int[] |
wageCostsDays |
| Constructor and Description |
|---|
BalanceSheet(BalanceSheet prevWeek)
Initialize a forcast balance sheet by using the balance sheet of the previous week
|
BalanceSheet(ICity city,
IPlayer player)
Initialize a blank sheet
|
| Modifier and Type | Method and Description |
|---|---|
void |
deductPropertyTaxes(int amount)
Update the property taxes for the whole week.
|
private int |
getWeekIndex() |
void |
updateAutomatedTradingCosts(long costs)
Update the costs incurred by automatic trading for the day
|
void |
updateOtherExpensesOneTime(int costs)
Update the other costs with a one time expense.
|
void |
updateOtherExpensesRegular(int costsPerDay)
Update any regular other costs.
|
void |
updateRentalIncome(int incomePerDay)
Update the income for rented houses.
|
void |
updateSalaries(int saleriesPerDay)
Update the saleries per day.
|
void |
updateStewardCosts(int costPerDay)
Update the costs for the steward.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOfficeTrading, getOtherCosts, getPropertyTaxes, getRentalIncome, getStewardCost, getWageCostsprivate final ICity city
private final IPlayer player
@Autowired private Date gameDate
private int rentalIncome
private int[] rentalIncomeDays
private int wageCosts
private int[] wageCostsDays
private int propertyTaxes
private int officeTrading
private int[] officeTradingDays
private int stewardCost
private int[] stewardCostsDays
private int otherCosts
private int[] otherCostsDays
public BalanceSheet(BalanceSheet prevWeek)
prevWeek - public void updateStewardCosts(int costPerDay)
updateStewardCosts in interface IBalanceSheetcostPerDay - daily salary costs of the stewards in all the trading offices.public void updateRentalIncome(int incomePerDay)
updateRentalIncome in interface IBalanceSheetincomePerDay - amount payed per daypublic void deductPropertyTaxes(int amount)
deductPropertyTaxes in interface IBalanceSheetamount - property taxes for the weekpublic void updateSalaries(int saleriesPerDay)
updateSalaries in interface IBalanceSheetsaleriesPerDay - public void updateAutomatedTradingCosts(long costs)
updateAutomatedTradingCosts in interface IBalanceSheetcosts - public void updateOtherExpensesRegular(int costsPerDay)
updateOtherExpensesRegular in interface IBalanceSheetcostsPerDay - public void updateOtherExpensesOneTime(int costs)
updateOtherExpensesOneTime in interface IBalanceSheetcosts - private int getWeekIndex()
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.