|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.core.structure.construction.SalvageValues
public class SalvageValues
Calculates values for salvaging buildings at a settlement.
| Method Summary | |
|---|---|
void |
destroy()
Prepare object for garbage collection. |
double |
getAllSalvageSitesProfit(int constructionSkill)
Gets the overall salvage profit of all existing construction sites at a settlement that can be worked on with a given construction skill. |
double |
getNewBuildingSalvageProfit(Building building,
int constructionSkill)
Gets the profit from salvaging a given existing building. |
double |
getNewSalvageSiteProfit(int constructionSkill)
Gets the profit of creating a new salvage construction site at a settlement. |
double |
getSalvageSiteProfit(ConstructionSite site)
Gets the salvage profit of an existing construction site at a settlement. |
double |
getSalvageSiteProfit(ConstructionSite site,
int constructionSkill)
Gets the salvage profit of an existing construction site at a settlement. |
double |
getSettlementSalvageProfit()
Gets the overall profit for construction salvage at the settlement. |
double |
getSettlementSalvageProfit(int constructionSkill)
Gets the overall profit for construction salvage at the settlement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public double getSettlementSalvageProfit()
Exception - if error determining profit.public double getSettlementSalvageProfit(int constructionSkill)
constructionSkill - the architect's construction skill.
Exception - if error determining profit.public double getAllSalvageSitesProfit(int constructionSkill)
constructionSkill - the architect's construction skill.
Exception - if error determining profit.public double getSalvageSiteProfit(ConstructionSite site)
site - the construction site.
Exception - if error determining profit.
public double getSalvageSiteProfit(ConstructionSite site,
int constructionSkill)
site - the construction site.constructionSkill - the architect's construction skill.
Exception - if error determining profit.public double getNewSalvageSiteProfit(int constructionSkill)
constructionSkill - the architect's construction skill.
Exception - if error determining profit.
public double getNewBuildingSalvageProfit(Building building,
int constructionSkill)
building - the building.constructionSkill - the architect's construction skill.
Exception - if error determining salvage profit.public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||