|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.DBItem | +--org.gjt.universe.PlanetBase | +--org.gjt.universe.scheme001.Planet_001
Planet definition for Scheme 001.
Field Summary | |
private float |
habitation
|
private static Distribution |
habitationDistribution
|
private static float |
homePlanetHabitation
|
private static float |
homePlanetMining
|
private float |
mining
|
private static Distribution |
miningDistribution
|
Fields inherited from class org.gjt.universe.PlanetBase |
|
Constructor Summary | |
private |
Planet_001(SystemID in_sysID,
int starIndex,
java.lang.String in_name)
Private constructor - called by new Planet() |
Method Summary | |
void |
drawInfoPanelOne(GUIFactoryOne gui,
javax.swing.JPanel panel)
|
(package private) float |
getHabitation()
|
(package private) float |
getMining()
|
void |
getSpecificTableInfo(CivID AID,
DisplayReturn DR)
This function allows additional values to be presented in the planet table. |
(package private) static PlanetID |
newPlanet(SystemID SID,
int starIndex,
java.lang.String in_name)
This factory class method returns a newly created planet in the given system, orbiting the given star, and having the given name. |
(package private) static void |
setHabitationDistribution(Distribution habDis)
|
(package private) static void |
setHomePlanetValues(java.lang.String str)
|
(package private) static void |
setMiningDistribution(Distribution minDis)
|
void |
setToHomePlanetValues()
|
VectorDisplayReturn |
specificDisplay()
This method returns the ID of the receiving instance |
VectorDisplayReturn |
specificDisplayDebug()
Method used for getting debugging information. |
Methods inherited from class org.gjt.universe.PlanetBase |
addGroundStation, fleetArrived, fleetDeparted, getFleetsInOrbit, getGravityString, getGroundStationList, getID, getID, getIndex, getLocation, getName, getOwner, getPlanetaryPrimaryID, getPlanetMakeup, getPlanetType, getRadiusString, getStarIndex, getSystemID, getTemperatureString, isInhabited, isInhabitedByAnotherCiv, isInhabitedByCiv, isMoon, setName, setOwner, setPlanetaryPrimaryID, setPlanetMakeup, setStarIndex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Distribution miningDistribution
private static Distribution habitationDistribution
private static float homePlanetMining
private static float homePlanetHabitation
private float mining
private float habitation
Constructor Detail |
private Planet_001(SystemID in_sysID, int starIndex, java.lang.String in_name)
in_sysID
- The system to which the planet is to be added.starIndex
- The index of the star in the system which the planet is orbiting.in_name
- The name of the planet.Method Detail |
static PlanetID newPlanet(SystemID SID, int starIndex, java.lang.String in_name)
SID
- The unique ID of the star syste to which the planet is being added.starIndex
- The index of the star within that system which the planet is orbiting.in_name
- The name to be assigned to the planet.static void setMiningDistribution(Distribution minDis)
static void setHabitationDistribution(Distribution habDis)
static void setHomePlanetValues(java.lang.String str)
public void setToHomePlanetValues()
setToHomePlanetValues
in class PlanetBase
float getMining()
float getHabitation()
public void getSpecificTableInfo(CivID AID, DisplayReturn DR)
PlanetBase
getSpecificTableInfo
in class PlanetBase
public VectorDisplayReturn specificDisplay()
PlanetBase
specificDisplay
in class PlanetBase
public VectorDisplayReturn specificDisplayDebug()
specificDisplayDebug
in class DBItem
public void drawInfoPanelOne(GUIFactoryOne gui, javax.swing.JPanel panel)
drawInfoPanelOne
in class PlanetBase
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |