|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.openpatrician.model.impl.Company
public final class Company
| Field Summary | |
|---|---|
private long |
cash
|
private long |
companyValue
|
private ICity |
homeTown
|
private static org.apache.log4j.Logger |
logger
|
private IPlayer |
owner
|
| Constructor Summary | |
|---|---|
Company(IPlayer owner,
ICity homeTown,
long cash)
|
|
| Method Summary | |
|---|---|
long |
getCash()
Retrieve the cash avalable to the company |
long |
getCompanyValue()
Retrieve the total value of the company |
ICity |
getHomeTown()
Retrieve the home town of the company |
void |
notify(DateObject date)
The time defined as period has passed and it is now date |
void |
updateCash(long diff)
Add or subtract some cash |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger logger
private final IPlayer owner
private ICity homeTown
private long companyValue
private long cash
| Constructor Detail |
|---|
public Company(IPlayer owner,
ICity homeTown,
long cash)
| Method Detail |
|---|
public ICity getHomeTown()
ICompany
getHomeTown in interface ICompanypublic long getCompanyValue()
ICompany
getCompanyValue in interface ICompanypublic void notify(DateObject date)
IPeriodicalUpdatedate
notify in interface IPeriodicalUpdatedate - current date timepublic long getCash()
ICompany
getCash in interface ICompanypublic void updateCash(long diff)
updateCash in interface ICompanydiff - amount of money that is transferred
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||