public class BalanceSheet extends Object implements IBalanceSheet
| Modifier and Type | Field and Description |
|---|---|
private ICity |
city |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private Date |
gameDate |
private int |
officeTrading |
private int[] |
officeTradingDays |
private int |
otherCosts |
private int[] |
otherCostsDays |
private IPlayer |
player |
private int |
propertyTaxes |
private int[] |
propertyTaxesDays |
private int |
rentalIncome |
private int[] |
rentalIncomeDays |
private int |
stewardCost |
private int[] |
stewardCostsDays |
private PeriodicalTimeUpdateFactory |
updateFactory |
private PeriodicalTimeUpdaterV2 |
updater |
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 |
handleDailyUpdate(PeriodicalTimeDayUpdate event) |
private void |
init() |
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
@Autowired private PeriodicalTimeUpdateFactory updateFactory
private PeriodicalTimeUpdaterV2 updater
private int rentalIncome
private int[] rentalIncomeDays
private int wageCosts
private int[] wageCostsDays
private int propertyTaxes
private int[] propertyTaxesDays
private int officeTrading
private int[] officeTradingDays
private int stewardCost
private int[] stewardCostsDays
private int otherCosts
private int[] otherCostsDays
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
public BalanceSheet(BalanceSheet prevWeek)
prevWeek - @PostConstruct private void init()
public void handleDailyUpdate(PeriodicalTimeDayUpdate event)
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.