|
||||||||||
| 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.ConstructionSite
public class ConstructionSite
A building construction site.
| Field Summary | |
|---|---|
static java.lang.String |
ADD_CONSTRUCTION_STAGE_EVENT
|
static java.lang.String |
CREATE_BUILDING_EVENT
|
static java.lang.String |
END_UNDERGOING_CONSTRUCTION_EVENT
|
static java.lang.String |
START_UNDERGOING_CONSTRUCTION_EVENT
|
| Method Summary | |
|---|---|
void |
addConstructionListener(ConstructionListener newListener)
Adds a listener |
void |
addNewStage(ConstructionStage stage)
Adds a new construction stage to the site. |
Building |
createBuilding(BuildingManager manager)
Creates a new building from the construction site. |
java.lang.String |
getBuildingName()
Gets the building name the site will construct. |
ConstructionStage |
getCurrentConstructionStage()
Gets the current construction stage at the site. |
java.lang.String |
getNextStageType()
Gets the next construction stage type. |
boolean |
hasStage(ConstructionStageInfo stage)
Checks if this site contains a given stage. |
boolean |
hasUnfinishedStage()
Checks if the site's current stage is unfinished. |
boolean |
isAllConstructionComplete()
Checks if all construction is complete at the site. |
boolean |
isUndergoingConstruction()
Checks if site is currently undergoing construction. |
void |
removeConstructionListener(ConstructionListener oldListener)
Removes a listener |
void |
setUndergoingConstruction(boolean undergoingConstruction)
Sets if site is currently undergoing construction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String START_UNDERGOING_CONSTRUCTION_EVENT
public static final java.lang.String END_UNDERGOING_CONSTRUCTION_EVENT
public static final java.lang.String ADD_CONSTRUCTION_STAGE_EVENT
public static final java.lang.String CREATE_BUILDING_EVENT
| Method Detail |
|---|
public boolean isAllConstructionComplete()
public boolean isUndergoingConstruction()
public void setUndergoingConstruction(boolean undergoingConstruction)
undergoingConstruction - true if undergoing construction.public ConstructionStage getCurrentConstructionStage()
public java.lang.String getNextStageType()
public void addNewStage(ConstructionStage stage)
throws java.lang.Exception
stage - the new construction stage.
java.lang.Exception - if error adding construction stage.
public Building createBuilding(BuildingManager manager)
throws java.lang.Exception
manager - the settlement's building manager.
java.lang.Exception - if error constructing building.public java.lang.String getBuildingName()
public boolean hasUnfinishedStage()
public boolean hasStage(ConstructionStageInfo stage)
stage - the stage info.
public final void addConstructionListener(ConstructionListener newListener)
newListener - the listener to add.public final void removeConstructionListener(ConstructionListener oldListener)
oldListener - the listener to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||