|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.openpatrician.model.building.impl.Storage
public class Storage
| Field Summary | |
|---|---|
private ICity |
city
|
static int |
GUARD_COST_PER_DAY
|
private int |
nbGuards
|
private IPlayer |
owner
|
static int |
RENT_COST_PER_DAY_AND_BALE
|
private int |
rentOutStorage
|
| Constructor Summary | |
|---|---|
Storage(IPlayer owner,
ICity city)
|
|
| Method Summary | |
|---|---|
int |
getCostsPerDay()
Retrieve the daily cost for rent storage |
int |
getGuardCostsPerDay()
Retrieve the costs for the guards |
private int |
getNbWareHouses()
Retrieve the number of warehouses |
int |
getNumberGuards()
Retrieve the number of guards |
int |
getRentOutStorage()
Retrieve the amount of storage in barrels that is rented by someone else |
ELevel |
getSecurityLevel()
Retrieve the security level |
void |
notify(DateObject date)
The time defined as period has passed and it is now date |
void |
updateGuardsNumber(int update)
Increase or decrease the number of guards |
void |
updateRendedSpace(int nbBarrels)
Update the rented out space |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GUARD_COST_PER_DAY
public static final int RENT_COST_PER_DAY_AND_BALE
private final IPlayer owner
private final ICity city
private int rentOutStorage
private int nbGuards
| Constructor Detail |
|---|
public Storage(IPlayer owner,
ICity city)
| Method Detail |
|---|
private int getNbWareHouses()
public int getRentOutStorage()
IStorage
getRentOutStorage in interface IStoragepublic void updateRendedSpace(int nbBarrels)
IStorage
updateRendedSpace in interface IStoragepublic int getCostsPerDay()
IStorage
getCostsPerDay in interface IStoragepublic int getNumberGuards()
IStorage
getNumberGuards in interface IStoragepublic int getGuardCostsPerDay()
IStorage
getGuardCostsPerDay in interface IStoragepublic ELevel getSecurityLevel()
IStorage
getSecurityLevel in interface IStoragepublic void updateGuardsNumber(int update)
IStorage
updateGuardsNumber in interface IStoragepublic void notify(DateObject date)
IPeriodicalUpdatedate
notify in interface IPeriodicalUpdatedate - current date time
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||