| Type | Property and Description |
|---|---|
javafx.beans.property.LongProperty |
cash
Retrieve the cash property.
|
| Modifier and Type | Field and Description |
|---|---|
private javafx.beans.property.LongProperty |
cash |
private CityFactory |
cityFactory |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private long |
companyValue |
private ICity |
homeTown |
private static org.apache.log4j.Logger |
logger |
private IPlayer |
owner |
private PeriodicalTimeUpdateFactory |
updateFactory |
| Constructor and Description |
|---|
Company(IPlayer owner,
ICity homeTown,
long cash) |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.LongProperty |
cashProperty()
Retrieve the cash property.
|
long |
getCash()
Gets the value of the property cash.
|
void |
handelDailyUpdates(PeriodicalTimeDayUpdate event) |
private void |
initialzeUpdates()
Register the periodical update timer for cash changes.
|
void |
updateCash(long diff)
Add or subtract some cash
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompanyValue, getHomeTowncashProperty in interface ICompanyprivate static final org.apache.log4j.Logger logger
private final IPlayer owner
private ICity homeTown
private long companyValue
private javafx.beans.property.LongProperty cash
@Autowired private CityFactory cityFactory
@Autowired private PeriodicalTimeUpdateFactory updateFactory
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@PostConstruct private void initialzeUpdates()
public void handelDailyUpdates(PeriodicalTimeDayUpdate event)
public long getCash()
public void updateCash(long diff)
updateCash in interface ICompanydiff - amount of money that is transferredpublic javafx.beans.property.LongProperty cashProperty()
ICompanycashProperty in interface ICompanyCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.