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.
 
Field Summary
private static java.util.Vector allInstances
           
static GravityType HIGH
           
static GravityType LOW
           
static GravityType NORMAL
           
static GravityType ULTRA_HIGH
           
static GravityType ZERO
           
 
Fields inherited from class org.gjt.universe.Classification
 
Constructor Summary
protected GravityType(java.lang.String aName, java.lang.String aBackStory)
          This constructor is used to construct instances of this class.
 
Method Summary
static GravityType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
          This class method returns the gravity type instance which best matches the given planetary make-up.
 
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

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
Constructor Detail

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.
Method Detail

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.