| 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 long |
companyValue |
private ICity |
homeTown |
private IPlayer |
owner |
private IJavaFXApplicationThreadExecution |
threadExecutor |
| Constructor and Description |
|---|
Company(ICity homeTown,
long cash,
long random) |
| 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 |
setOwner(IPlayer player) |
void |
updateCash(long diff)
Add or subtract some cash on the UI thread
|
void |
updateCashDirectly(long diff)
Add or subtract some cash directly.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompanyValue, getHomeTown, setCompanyValuepublic javafx.beans.property.LongProperty cashProperty
cashProperty in interface ICompanygetCash()private IPlayer owner
private ICity homeTown
private long companyValue
private javafx.beans.property.LongProperty cash
@Autowired private IJavaFXApplicationThreadExecution threadExecutor
public Company(ICity homeTown, long cash, long random)
public void setOwner(IPlayer player)
public long getCash()
public void updateCash(long diff)
updateCash in interface ICompanydiff - amount of money that is transferredpublic void updateCashDirectly(long diff)
updateCashDirectly in interface ICompanydiff - public javafx.beans.property.LongProperty cashProperty()
ICompanycashProperty in interface ICompanygetCash()Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.