|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universe.server.KeyedItem | +--universe.server.database.RaceBase
Field Summary | |
private static java.util.Vector |
raceList
|
Fields inherited from class universe.server.KeyedItem |
|
Constructor Summary | |
RaceBase()
no-arg constructor as required for objects which subclass this to be serializable |
|
RaceBase(java.lang.String key)
This constructor is used to construct instances of this class. |
Method Summary | |
static void |
addRace(RaceBase newRace)
This method registers the given race as one that will be allowed to exist in the current game (which might be a smaller subset of those which are defined by the loaded scheme). |
static void |
deleteRaces()
This method deletes all races currently allowed in the game. |
static RaceBase |
FindByKey(java.lang.String aKey)
This class method returns the species instance matching the given key, or null if there isn't one. |
java.lang.String |
getName()
This method simply calls getDescription (see parent class). |
static RaceBase |
getRace(java.lang.String name)
This method returns the race corresponding to the given name. |
static java.util.Vector |
getRaces()
This method returns a vector containing all of the races which are allowed to exist in the current game. |
void |
performLocalization()
This method overrides that of our abstract base class to set the description and back story of the receiving RaceBase object. |
static RaceBase |
randomlySelectedRace()
This method returns a race randomly selected from those currently allowed in the game. |
Methods inherited from class universe.server.KeyedItem |
FindByDescriptionAndSpace, FindByKeyAndSpace, getBackStory, getDescription, getKey, hashCode, setBackStory, setDescription, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static java.util.Vector raceList
Constructor Detail |
public RaceBase()
public RaceBase(java.lang.String key)
key
- The localization invariant unique key word used to uniquely identify a particular type of species.FindByKey
Method Detail |
public static RaceBase FindByKey(java.lang.String aKey)
aKey
- The key word identifying the desired instance.public void performLocalization()
performLocalization
in class KeyedItem
getDescription
,
getBackStory
public java.lang.String getName()
public static void addRace(RaceBase newRace)
newRace
- A race to be permitted in the game.getRaces
,
deleateRaces
public static java.util.Vector getRaces()
public static void deleteRaces()
getRaces
public static RaceBase randomlySelectedRace()
public static RaceBase getRace(java.lang.String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |