|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.Star
Instances of this very simple class represent a star in the game. One or more stars can be found in a star system. This object does not keep track of the planets which orbit it -- this is handled by the star system in which the star is found.
SystemBase
,
Serialized FormField Summary | |
private SimpleAccrete.StarMakeup |
myMakeup
|
private java.lang.String |
myName
|
Constructor Summary | |
Star()
Must allow default constructor for serialization to work. |
|
Star(java.lang.String name,
SimpleAccrete.StarMakeup sm)
Designated constructor for instances of this class. |
Method Summary | |
java.lang.String |
getName()
Returns the name of the receiving star. |
SimpleAccrete.StarMakeup |
getStarMakeup()
Returns the stellar make-up of the receiving instance. |
void |
setName(java.lang.String newName)
Sets the name of the receiving star. |
void |
setStarMakeup(SimpleAccrete.StarMakeup sm)
Sets the stellar make-up of the receiving instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String myName
private SimpleAccrete.StarMakeup myMakeup
Constructor Detail |
public Star(java.lang.String name, SimpleAccrete.StarMakeup sm)
name
- The name of the system.sm
- Stellar make-up of system's star.
SchemeUnkownException
- When scheme is unable to generate necessary objects.public Star()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String newName)
newName
- The new name of the star.public SimpleAccrete.StarMakeup getStarMakeup()
public void setStarMakeup(SimpleAccrete.StarMakeup sm)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |