| Constructor | Description |
|---|---|
Company(ICity homeTown,
long cash,
long random) |
| Modifier and Type | Method | Description |
|---|---|---|
javafx.beans.property.LongProperty |
cashProperty() |
Retrieve the cash property.
|
long |
getCash() |
Retrieve the cash avalable to the company
|
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.
|
getCompanyValue, getHomeTown, setCompanyValuepublic Company(ICity homeTown, long cash, long random)
public void setOwner(IPlayer player)
public long getCash()
ICompanypublic void updateCash(long diff)
updateCash in interface ICompanydiff - amount of money that is transferredpublic void updateCashDirectly(long diff)
updateCashDirectly in interface ICompanydiff - delta that is to be updated (positive or negative)public javafx.beans.property.LongProperty cashProperty()
ICompanycashProperty in interface ICompanyCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.