|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.support.Object | +--ogs.core.Feature | +--ogs.core.details.Gender
A detail that identifies the sex of a creature. Genders are normally associated only with characters or creatures. It can be used to determine physical characteristics of a creature.
Field Summary | |
static int |
BOTH
A bisexual gender, both male and female. |
static int |
FEMALE
A female gender. |
static int |
MALE
A male gender. |
static int |
NONE
An asexual gender, neither male or female. |
static int |
UNKNOWN
An unknown or undefined gender. |
Fields inherited from class ogs.support.Object |
listeners |
Constructor Summary | |
Gender(int value)
Create a new gender. |
Method Summary | |
int |
getValue()
Determine the gender. |
String |
toString()
Format a string representation of this gender. |
Methods inherited from class ogs.core.Feature |
attachObject, canAttach, canDetach, detachObject, getObject |
Methods inherited from class ogs.support.Object |
addListener, handleEvent, notifyListeners, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNKNOWN
public static final int MALE
public static final int FEMALE
public static final int NONE
public static final int BOTH
Constructor Detail |
public Gender(int value)
value
- MALE, FEMALE, NONE, BOTH, or UNKNOWN.Method Detail |
public int getValue()
public String toString()
toString
in class Object
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |