org.gjt.universe
Class WeatherType
java.lang.Object
|
+--org.gjt.universe.Classification
|
+--org.gjt.universe.WeatherType
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- WeatherType.CalmWeatherType, WeatherType.NoneWeatherType, WeatherType.NormalWeatherType, WeatherType.TurbulentWeatherType, WeatherType.ViolentWeatherType
- public abstract class WeatherType
- extends Classification
- See Also:
- Serialized Form
Nested Class Summary |
static class |
WeatherType.CalmWeatherType
This standard subclass is used to represent planetary
weather which is much less energetic than that of Earth. |
static class |
WeatherType.NoneWeatherType
This standard subclass is used to represent planetary
weather which is much less energetic than that of Earth. |
static class |
WeatherType.NormalWeatherType
This standard subclass is used to represent planetary
weather which is no more violent than that of Earth. |
static class |
WeatherType.TurbulentWeatherType
This standard subclass is used to represent planetary
weather which is slightly violent than that of Earth. |
static class |
WeatherType.ViolentWeatherType
This standard subclass is used to represent planetary
weather which is much more violent than that of Earth. |
Constructor Summary |
protected |
WeatherType(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 |
allInstances
private static java.util.Vector allInstances
VIOLENT
public static WeatherType VIOLENT
TURBULENT
public static WeatherType TURBULENT
NORMAL
public static WeatherType NORMAL
CALM
public static WeatherType CALM
NONE
public static WeatherType NONE
WeatherType
protected WeatherType(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 weather types should
be created automatically.
- Parameters:
aName
- The short localized name of the weather type.aBackStory
- A localized description of the weather type.
instanceForMakeup
public static WeatherType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
- This class method returns the weather 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.