| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A land resource.
Constructor Summary | |
LandResource(double value, double min, double max, boolean visible, String determination) Create a new land resource with the given value. |
Method Summary | |
double | extract(double amount) Extract the given amount from this land resource. |
String | getDetermination() How should the value of this resource be presented to the player. |
String | getName() Get the name of this land resource. |
String | getState() Get the state of this land resource. |
double | getValue() The value of this land resource. |
double | getVisibleValue() Get the visible value of this land resource. |
String | getVisibleValueAsString() Get the visible value of this land resource. |
boolean | isBoundary() Check whether the value of the landresources is still within the bounds. |
boolean | isVisible() Is this land resource visible? |
protected void | setBounds(double min, double max) Set the bounds for this landresource. |
protected void | setDetermination(String determination) Set how the value of this resource should be presented to the player. |
protected void | setValue(double value) Set the value of this land resource. |
void | setVisible(boolean visible) Set the visibility of this land resource. |
Constructor Detail |
public LandResource(double value, double min, double max, boolean visible, String determination)
Method Detail |
public double extract(double amount)
public String getDetermination()
public String getName()
public String getState()
public double getValue()
public double getVisibleValue()
public String getVisibleValueAsString()
public boolean isBoundary()
public boolean isVisible()
protected void setBounds(double min, double max)
protected void setDetermination(String determination)
protected void setValue(double value)
public void setVisible(boolean visible)
Association Links |
| a gvijf production | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |