|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.Classification | +--org.gjt.universe.PlanetType
Field Summary | |
private static java.util.Vector |
allInstances
|
private AtmosphereType |
myAtmosphereType
|
private GravityType |
myGravityType
|
private TemperatureType |
myTemperatureType
|
private TerrainType |
myTerrainType
|
Fields inherited from class org.gjt.universe.Classification |
|
Constructor Summary | |
protected |
PlanetType(java.lang.String aName,
java.lang.String aBackStory,
GravityType aGravityType,
AtmosphereType aAtmosphereType,
TemperatureType aTemperatureType,
TerrainType aTerrainType)
This constructor is used to construct instances of this class. |
Method Summary | |
private static java.lang.String |
compositeName(GravityType aGravityType,
AtmosphereType aAtmosphereType,
TemperatureType aTemperatureType,
TerrainType aTerrainType)
This method returns the briefest possible name describing the particular collection of sub-classifications. |
AtmosphereType |
getAtmosphereType()
This method returns the classification of the planet's atmosphere. |
java.awt.Color |
getColor()
|
GravityType |
getGravityType()
This method returns the classification of the planet's surface gravity. |
TemperatureType |
getTemperatureType()
This method returns the classification of the planet's surface temperature. |
TerrainType |
getTerrainType()
This method returns the classification of the planet's surface terrain. |
static PlanetType |
instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
This class method returns the planet type instance which best matches the given planetary make-up. |
static PlanetType |
sharedInstance(GravityType aGravityType,
AtmosphereType aAtmosphereType,
TemperatureType aTemperatureType,
TerrainType aTerrainType)
This method returns the shared instance which matches the given set of subclassifications, creating the new instance if necessary. |
Methods inherited from class org.gjt.universe.Classification |
getBackStory, getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.Vector allInstances
private GravityType myGravityType
private AtmosphereType myAtmosphereType
private TemperatureType myTemperatureType
private TerrainType myTerrainType
Constructor Detail |
protected PlanetType(java.lang.String aName, java.lang.String aBackStory, GravityType aGravityType, AtmosphereType aAtmosphereType, TemperatureType aTemperatureType, TerrainType aTerrainType)
aName
- The short localized name of the planet type.aBackStory
- A localized description of the planet type.Method Detail |
public static PlanetType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
aMakeup
- A planetary make-up to be matched against.public static PlanetType sharedInstance(GravityType aGravityType, AtmosphereType aAtmosphereType, TemperatureType aTemperatureType, TerrainType aTerrainType)
private static java.lang.String compositeName(GravityType aGravityType, AtmosphereType aAtmosphereType, TemperatureType aTemperatureType, TerrainType aTerrainType)
public GravityType getGravityType()
public AtmosphereType getAtmosphereType()
public TemperatureType getTemperatureType()
public TerrainType getTerrainType()
public java.awt.Color getColor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |