|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.beings.Gender
Encapsulates all data about the gender of living beings.
| Field Summary | |
|---|---|
static Gender |
FEMALE
the female gender |
static Gender |
MALE
the male gender |
static Gender |
NEUTER
the neutral gender |
| Constructor Summary | |
|---|---|
Gender(java.lang.String attribute,
int[] modifiers)
Creates a new gender instance. |
|
| Method Summary | |
|---|---|
int |
getAttributeModifier(int attributeIndex)
Returns the attribute modifier for a given gender. |
java.lang.String |
toString()
Returns the attribute representation of the given gender. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Gender MALE
public static final Gender FEMALE
public static final Gender NEUTER
| Constructor Detail |
|---|
public Gender(java.lang.String attribute,
int[] modifiers)
attribute - the gender attribute| Method Detail |
|---|
public int getAttributeModifier(int attributeIndex)
attributeIndex - the index of the attribute
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||