org.gjt.universe
Class GravityType
java.lang.Object
|
+--org.gjt.universe.Classification
|
+--org.gjt.universe.GravityType
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- GravityType.HighGravityType, GravityType.LowGravityType, GravityType.NormalGravityType, GravityType.UltraHighGravityType, GravityType.ZeroGravityType
- public abstract class GravityType
- extends Classification
- See Also:
- Serialized Form
Nested Class Summary |
static class |
GravityType.HighGravityType
This standard subclass is used to classify a surface
gravity which is slightly heavier than that of Earth
and which most beings would find oppressive. |
static class |
GravityType.LowGravityType
This standard subclass is used to classify a surface
gravity which is much less than that of Earth, but still
enough that objects won't simply fly of the surface. |
static class |
GravityType.NormalGravityType
This standard subclass is used to classify a surface
gravity which is essentially the same as that of Earth. |
static class |
GravityType.UltraHighGravityType
This standard subclass is used to classify a surface
gravity which is so heavy that most beings would be
instantly crushed into paste by it. |
static class |
GravityType.ZeroGravityType
This standard subclass is used to classify a surface
gravity which is so weak that it is eseentially non-
existent (e.g. |
Constructor Summary |
protected |
GravityType(java.lang.String aName,
java.lang.String aBackStory)
This constructor is used to construct instances of
this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ULTRA_HIGH
public static GravityType ULTRA_HIGH
HIGH
public static GravityType HIGH
NORMAL
public static GravityType NORMAL
LOW
public static GravityType LOW
ZERO
public static GravityType ZERO
allInstances
private static java.util.Vector allInstances
GravityType
protected GravityType(java.lang.String aName,
java.lang.String aBackStory)
- This constructor is used to construct instances of
this class. It should not be necessary for callers
to invoke this directly, since all gravity types should
be created automatically.
- Parameters:
aName
- The short localized name of the gravity type.aBackStory
- A localized description of the gravity type.
instanceForMakeup
public static GravityType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
- This class method returns the gravity type instance
which best matches the given planetary make-up.
- Parameters:
aMakeup
- A planetary make-up to be matched against.
Copyright © 2001 Universe Dev Team All Rights Reserved.