|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.pegacat.vcf.data.WorldResource
Represents available and potential resources on a world or moon. Creation date: (3/06/2001 9:21:46 PM)
Field Summary | |
static int |
ABUNDANT
|
static int |
COMMON
|
static int |
EXACT
|
static int |
NEGLIGIBLE
|
static int |
NONE
|
static int |
PLENTIFUL
|
static int[] |
QTYAVERAGES
an average value for each of the numeric approximate quantity values |
static java.lang.String[] |
QTYNAMES
string name for each of the numeric approximate quantity values |
static int |
RARE
|
protected int |
remainingApprox
approximate remaining amount, or EXACT if exact amount known. |
protected int |
remainingExact
exact remaining amount if known |
static int |
REPLENISHING
|
protected ResourceType |
resource
the resource |
static int |
VERY_RARE
|
protected int |
warehouse
|
Constructor Summary | |
WorldResource(java.lang.String name,
java.lang.String remaining,
int warehouse)
Create a world resource record - analyses the 'remaining' string, and the warehouse level, and attempts to determine the resource type if not already known. |
Method Summary | |
java.lang.Object |
clone()
Insert the method's description here. |
int |
getRemaining()
Gets remining numeric level, either exact or approximate Creation date: (3/06/2001 9:25:26 PM) |
int |
getRemainingApprox()
|
int |
getRemainingExact()
|
java.lang.String |
getRemainingString()
Gets remining level as string Creation date: (3/06/2001 9:25:26 PM) |
ResourceType |
getResource()
|
int |
getWarehouse()
|
void |
setRemainingApprox(int newRemainingApprox)
|
void |
setRemainingExact(int newRemainingExact)
|
void |
setResource(ResourceType newResource)
|
void |
setWarehouse(int newWarehouse)
|
java.lang.String |
toString()
Returns a String that represents the value of this object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ResourceType resource
protected int remainingExact
protected int remainingApprox
public static final int EXACT
public static final int NONE
public static final int NEGLIGIBLE
public static final int VERY_RARE
public static final int RARE
public static final int COMMON
public static final int PLENTIFUL
public static final int ABUNDANT
public static final int REPLENISHING
public static final java.lang.String[] QTYNAMES
public static final int[] QTYAVERAGES
protected int warehouse
Constructor Detail |
public WorldResource(java.lang.String name, java.lang.String remaining, int warehouse)
Also converts the 'remaining' string into an exact or approximate quantity. Creation date: (3/06/2001 9:37:53 PM)
Method Detail |
public int getRemainingApprox()
public int getRemainingExact()
public int getRemaining()
public java.lang.String getRemainingString()
public ResourceType getResource()
public int getWarehouse()
public void setRemainingApprox(int newRemainingApprox)
public void setRemainingExact(int newRemainingExact)
public void setResource(ResourceType newResource)
public void setWarehouse(int newWarehouse)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- The exception description.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |