|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.pegacat.vcf.data.VoyagerObject | +--com.pegacat.vcf.data.Body
A voyager body - a world or a moon. Creation date: (22/05/2001 1:47:11 PM)
Field Summary | |
static int |
ABSOLUTE_ZERO
|
static int |
ASTEROID
Size options |
protected int |
atmosphere
|
static java.lang.String[] |
ATMOSPHERENAMES
|
protected java.lang.String |
atmosphereString
|
protected int |
burps
|
static int |
CH4
Atmospheres |
static int |
CL2
Atmospheres |
static java.lang.String |
CloudCover
|
static int |
CO2
Atmospheres |
static int |
COLD
|
protected java.lang.String |
description
the actual world description - several lines of text |
protected int |
eco
|
protected int |
empire
|
protected java.lang.String |
extraInfo
extra info - includes cloud cover and the like |
static int |
EXTREMELY_HOT
|
static int |
F2
Atmospheres |
static int |
GAS_GIANT
Size options |
static int |
GIANT
Size options |
static int |
H2
Atmospheres |
static int |
HOT
|
static int |
LARGE
Size options |
static int |
LARGE_GAS_GIANT
Size options |
protected java.lang.String |
liquid
liquid - text version, see slp for numeric liquid level |
protected int |
liveability
|
static int |
MEDIUM
Size options |
static int |
MILD
|
protected boolean |
moon
true for moons, false for worlds! |
static int |
NH3
Atmospheres |
protected int |
orbit
Orbits |
static int |
OXYGEN
Atmospheres |
protected int |
radiation
|
protected boolean |
resource_surveyed
true if resources are from the cargo report, so we have an reu there. |
protected WorldResource[] |
resources
array of resources on the world, or null if none. |
static int |
RING
Size options |
protected int |
shp
|
protected int |
size
size is one of the constants from ASTEROID to LARGE_GAS_GIANT |
static java.lang.String[] |
SIZENAMES
strings corresponding to sizes |
static int[] |
SIZEVALUES
values for each sizename - needed to handle duplicates |
protected int |
slp
|
protected java.lang.String |
slpType
the slp type, i.e. |
static int |
SMALL
Size options |
protected int |
smp
|
protected int |
spp
|
static int |
SULPHUR
Atmospheres |
protected double |
surveyDate
date of world survey |
protected boolean |
surveyed
Do we have a world survey? Note some fields may be set from star survey Also a world can be surveyed even if it's star isn't! |
protected int |
temperature
|
protected java.lang.String |
temperatureString
|
static java.lang.String[] |
TEMPNAMES
strings corresponding to temperatures |
static int |
TINY
Size options |
static int |
ULTRA_HOT
|
static java.lang.String |
UNK_STRING
voyager unknown field flag, also used to indicate unknown strings |
static int |
UNKNOWN
value for all unknown integer fields |
static int |
VACUUM
Atmospheres |
protected int |
veg
numeric veg level from a world survey |
protected java.lang.String |
vegString
string veg level from a star survey - can be '-' if there is cloud cover |
static int |
VERY_COLD
|
static int |
VERY_HOT
|
Fields inherited from class com.pegacat.vcf.data.VoyagerObject |
location, name, text |
Constructor Summary | |
Body(java.lang.String name,
VoyagerLocation location)
Construct from a name and a location. |
Method Summary | |
int |
getAtmosphere()
|
java.lang.String |
getAtmosphereString()
|
int |
getBurps()
|
java.lang.String |
getDescription()
|
int |
getEco()
|
int |
getEmpire()
|
java.lang.String |
getExtraInfo()
|
java.lang.String |
getLiquid()
|
int |
getLiveability()
|
int |
getOrbit()
|
int |
getRadiation()
|
WorldResource[] |
getResources()
|
int |
getShp()
|
int |
getSize()
|
java.lang.String |
getSizeString()
get the size as a string Creation date: (22/05/2001 7:21:02 PM) |
int |
getSlp()
|
java.lang.String |
getSlpType()
|
int |
getSmp()
|
int |
getSpp()
|
double |
getSurveyDate()
|
int |
getTemperature()
|
java.lang.String |
getTemperatureString()
|
int |
getVeg()
|
java.lang.String |
getVegString()
|
boolean |
isMoon()
|
boolean |
isResource_surveyed()
|
boolean |
isSurveyed()
|
void |
setAtmosphere(java.lang.String newAtmosphere)
This sets the atmosphere String to the passed newAtmosphere parameter. |
void |
setBurps(int newBurps)
|
void |
setDescription(java.lang.String newDescription)
|
void |
setEco(int newEco)
|
void |
setEmpire(int newEmpire)
|
void |
setExtraInfo(java.lang.String newExtraInfo)
|
void |
setLiquid(java.lang.String newLiquid)
|
void |
setLiveability(int newLiveability)
|
void |
setMoon(boolean newMoon)
|
void |
setOrbit(int newOrbit)
|
void |
setRadiation(int newRadiation)
|
void |
setResource_surveyed(boolean newResource_surveyed)
|
void |
setResources(WorldResource[] newResources)
Sets the resources, unless the world has already been flagged as resource_surveyed, in which case the resources are already up to date. |
void |
setResources(WorldResource[] newResources,
boolean resource_survey_data)
Sets the resources, and the resource surveyed flag if resource_survey_data is true. |
void |
setShp(int newShp)
|
void |
setSize(int newSize)
|
void |
setSlp(int newSlp)
|
void |
setSlpType(java.lang.String newSlpType)
|
void |
setSmp(int newSmp)
|
void |
setSpp(int newSpp)
|
void |
setSurveyDate(double newSurveyDate)
|
void |
setSurveyed(boolean newSurveyed)
|
void |
setTemperature(java.lang.String newTemperature)
Set the temperature string, and attempt to match it with a known temperature in the standard temperature name array. |
void |
setVeg(int newVeg)
|
void |
setVegString(java.lang.String newVegString)
|
java.lang.String |
toString()
Returns a String that represents the value of this object. |
Methods inherited from class com.pegacat.vcf.data.VoyagerObject |
getLocation, getName, getNamedPosition, getText, getX, getY, getZ |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNKNOWN
public static final java.lang.String UNK_STRING
public static final java.lang.String CloudCover
protected java.lang.String extraInfo
protected boolean moon
protected boolean surveyed
protected double surveyDate
public static final int ASTEROID
public static final int RING
public static final int TINY
public static final int SMALL
public static final int MEDIUM
public static final int LARGE
public static final int GIANT
public static final int GAS_GIANT
public static final int LARGE_GAS_GIANT
public static final java.lang.String[] SIZENAMES
public static final int[] SIZEVALUES
protected int orbit
public static final int VACUUM
public static final int OXYGEN
public static final int CO2
public static final int NH3
public static final int CH4
public static final int CL2
public static final int SULPHUR
public static final int F2
public static final int H2
public static final java.lang.String[] ATMOSPHERENAMES
protected int atmosphere
protected java.lang.String atmosphereString
protected java.lang.String liquid
protected int liveability
protected int radiation
protected int shp
protected int size
protected int slp
protected java.lang.String slpType
protected int smp
protected int spp
public static final int ULTRA_HOT
public static final int EXTREMELY_HOT
public static final int VERY_HOT
public static final int HOT
public static final int MILD
public static final int COLD
public static final int VERY_COLD
public static final int ABSOLUTE_ZERO
public static final java.lang.String[] TEMPNAMES
protected java.lang.String temperatureString
protected int temperature
protected int veg
protected java.lang.String vegString
protected int burps
protected java.lang.String description
protected int eco
protected int empire
protected boolean resource_surveyed
protected WorldResource[] resources
Constructor Detail |
public Body(java.lang.String name, VoyagerLocation location)
name
- the world/moon name, i.e. 123b1location
- the location, generally constructed from the name.Method Detail |
public int getOrbit()
public boolean isSurveyed()
public void setOrbit(int newOrbit)
public void setSurveyed(boolean newSurveyed)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAtmosphereString()
public int getAtmosphere()
public java.lang.String getLiquid()
public int getLiveability()
public int getRadiation()
public int getShp()
public int getSize()
public java.lang.String getSizeString()
public int getSlp()
public int getSmp()
public int getSpp()
public java.lang.String getTemperatureString()
public int getTemperature()
public int getVeg()
public java.lang.String getVegString()
public void setAtmosphere(java.lang.String newAtmosphere)
public void setLiquid(java.lang.String newLiquid)
public void setLiveability(int newLiveability)
public void setRadiation(int newRadiation)
public void setShp(int newShp)
public void setSize(int newSize)
public void setSlp(int newSlp)
public void setSmp(int newSmp)
public void setSpp(int newSpp)
public void setTemperature(java.lang.String newTemperature)
public void setVeg(int newVeg)
public void setVegString(java.lang.String newVegString)
public double getSurveyDate()
public void setSurveyDate(double newSurveyDate)
public java.lang.String getExtraInfo()
public boolean isMoon()
public void setExtraInfo(java.lang.String newExtraInfo)
public void setMoon(boolean newMoon)
public int getBurps()
public java.lang.String getDescription()
public int getEco()
public int getEmpire()
public WorldResource[] getResources()
public java.lang.String getSlpType()
public boolean isResource_surveyed()
public void setBurps(int newBurps)
public void setDescription(java.lang.String newDescription)
public void setEco(int newEco)
public void setEmpire(int newEmpire)
public void setResource_surveyed(boolean newResource_surveyed)
public void setResources(WorldResource[] newResources)
newResources
- com.pegacat.vcf.data.WorldResource[]public void setResources(WorldResource[] newResources, boolean resource_survey_data)
newResources
- com.pegacat.vcf.data.WorldResource[]resource_survey_data
- true if this data is from the cargo report.public void setSlpType(java.lang.String newSlpType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |